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
Highlighted
New Contributor
Posts: 5
Registered: ‎09-18-2013
My Device: Z10
My Carrier: Oi

HTML5 video not working on Device Simulator 10.2

[ Edited ]

I have the following code:

/ / Insert video
var video = document.createElement ('video');
video.src=json.data.video;
video.controls = true;
video.autoplay = true;
video.play ();
document.getElementById ('video'). appendChild (video);

 

Ripple simulator in the video perfectly. But in Device Simulator v. 10.2 the video does not work! I've tried everything, just does not run. Squeeze play and nothing happens.
I thought it was some bug in the simulator and subjected to bb app world. The release was disapproved because the video continues to not work.

Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: HTML5 video not working on Device Simulator 10.2

The most common reason why videos do not play in the simulator is because of a missing codec.  Licenses for certain video codecs are not applied to simulators.  For this type of testing, you will need to use an actual device.

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Developer
Posts: 1,230
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: HTML5 video not working on Device Simulator 10.2

Adam's 'try it on a device' is perfectly sound advice and  without more info such an issue is hard to diagnose

 

I would suggest that you take the 'bad' video and work out what;s inside it

 

A very nice tool to discover this is MediaInfo (its free)

 

This will tell you whats going on but not why things don't work using the View->Sheet option

 

Most likely, you have an older media clip

 

In the case of anything with the file extension MP4 you should be OK

 

If its an AVI it's a toss-up

 

An AVI MAY be encoded with a compatible CODEC but this is not always true (got an issue like that with my up-coming app)

 

Assuming you own the rights to the content you can use AVIDEMUX2 to recode the video to X264 / AAC

 

 




Click the like button if you find my posts useful!
New Contributor
Posts: 5
Registered: ‎09-18-2013
My Device: Z10
My Carrier: Oi

Re: HTML5 video not working on Device Simulator 10.2

I have no real device...

New Contributor
Posts: 5
Registered: ‎09-18-2013
My Device: Z10
My Carrier: Oi

Re: HTML5 video not working on Device Simulator 10.2

Os vídeos já estão no formato. Mp4 x264
Eu não sei mais o que fazer Smiley Sad
New Contributor
Posts: 5
Registered: ‎09-18-2013
My Device: Z10
My Carrier: Oi

Re: HTML5 video not working on Device Simulator 10.2

The videos are already in .mp4 x264

I do not know what else to do

New Contributor
Posts: 5
Registered: ‎09-18-2013
My Device: Z10
My Carrier: Oi

Re: HTML5 video not working on Device Simulator 10.2

You could send me a video that worked with you. So I can test in my application.
thank you