Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Contributor
richie-agarwal
Posts: 27
Registered: ‎03-24-2011
My Device: Playbook, Developer
Accepted Solution

Playbook Video

I'm trying to play video through web works for playbook. 

Here is the HTML code i use to play video. 

 

It works on the browser but does not play video in the playbook simulator. Please help me as app need to be submitted  within 31st of this month.

 

Or plese tell me how to play videos in playbook.

 

         <video width="640" height="360" controls autoplay>
 <source src="V1Pushup.m4v"  type="video/mp4" />
 <source src="V1Pushup.m4v"  type="video/ogg" />
 <object width="640" height="360" type="application/x-shockwave-flash" data="__FLASH__.SWF">
 <param name="movie" value="__FLASH__.SWF" />
 <param name="flashvars" value="autostart=true&amp;controlbar=over&amp;image=__POSTER__.JPG&amp;file=V1Pushup.m4v" />
 <img src="icon.png" width="640" height="360" alt="__TITLE__"
     title="No video playback capabilities, please download the video below" />
 </object>
</video>

 

 

 

 

Retired
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Playbook Video

HTML5 Video does not yet play in the PlayBook Simulator.  There are a combination of bugs in the 0.9.4 beta that are causing this.

 

1) There are no codecs distributed with the simulator so it cannot play audio/video

2) There's a bug where locally packaged audio/video will not run in a WebWorks application.  Remote audio/video works on the device, but not locally packaged content

 

Both of these issues are being addressed.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Contributor
richie-agarwal
Posts: 27
Registered: ‎03-24-2011
My Device: Playbook, Developer

Re: Playbook Video

Thank you for the reply.

 

But isn't there any alternative ?

my application is almost complete if i'm able to sort this i can upload it to the app world.

 

What if i add all my videos to the server and stream it from there. Does this work ?

Retired
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Playbook Video

External video will not play on the simultor either because of the lack of codecs.

 

On the physical device running 0.9.4 it will run external videos, just not local videos.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Contributor
richie-agarwal
Posts: 27
Registered: ‎03-24-2011
My Device: Playbook, Developer

Re: Playbook Video

Thank you Tim,

 

Thank you for the support it cleared most of my doubts.

Contributor
richie-agarwal
Posts: 27
Registered: ‎03-24-2011
My Device: Playbook, Developer

Re: Playbook Video

Playbook simulator does not play video/audio but the actual device can play remote videos.

 

So if i send the signed .bar file through support forums will you be able to test the application for  me.

New Contributor
surajreddy
Posts: 4
Registered: ‎03-28-2011
My Device: Playbook

Re: Playbook Video

I'm in the same boat. I'm trying to make a html5 alarm app, and am unable to test the sounds.

 

Does the playbook support the javascript audio loading method? For example:

var alarm = new Audio("alarm.mp3");

alarm.play();

 

What html5 audio formats work on the playbook?

 

What's your recommendation on submitting the app if the sounds are untestable?

 

Thanks,

 

-Suraj

Retired
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Playbook Video

App World isn't testing to ensure that every aspect of your application is working.  They are mostly looking for violations of the submission guidelines.

 

As long as your app isn't completely inoperable you won't likely have an issue.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
New Contributor
surajreddy
Posts: 4
Registered: ‎03-28-2011
My Device: Playbook

Re: Playbook Video

Awesome, thanks!