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
Regular Contributor
sandeshmsg
Posts: 64
Registered: ‎06-16-2011
My Device: bold 9000, playbook
My Carrier: vodafone
Accepted Solution

video tag unable play mp4 format .

Hello experts,

 

I am trying to play mp4 video using html5 video tag . Its throwing the unsupported format error . Please help me :smileysad:

 

Regards,

Sandesh.

Please use plain text.
Administrator
astanley
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: video tag unable play mp4 format .

Which video codec is being used for the content inside of the mp4 container?  It may not be supported.

 

 

You can confirm which media types are supported by referencing the following guides:

 

Supported Media Types on BlackBerry Smartphones

http://docs.blackberry.com/en/smartphone_users/subcategories/?userType=1&category=BlackBerry+Smartph...

 

Supported Media Types on BlackBerry Tablets

http://docs.blackberry.com/en/smartphone_users/subcategories/?userType=1&category=Supported+Media

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Please use plain text.
Regular Contributor
sandeshmsg
Posts: 64
Registered: ‎06-16-2011
My Device: bold 9000, playbook
My Carrier: vodafone

Re: video tag unable play mp4 format .

Thanks for the guidence sir, the video is shot on the same playbook . Let me try and give you the feed back sir :smileyhappy: thanks a bunch :smileyhappy:

Please use plain text.
Administrator
astanley
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: video tag unable play mp4 format .

Ah I see.  If the video was recorded using the PlayBook camera itself, the video codec should definitely be supported.

 

Is the path specified to the video file correct?

 

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Please use plain text.
Regular Contributor
sandeshmsg
Posts: 64
Registered: ‎06-16-2011
My Device: bold 9000, playbook
My Carrier: vodafone

Re: video tag unable play mp4 format .

Yeah sir, Its throwing error like: This media file is of unsupported type or could not be loaded. It cannot be played.
Please use plain text.
Developer
jtokarchuk
Posts: 21
Registered: ‎02-03-2012
My Device: PlayBook 16g
My Carrier: MTSm

Re: video tag unable play mp4 format .

[ Edited ]

Does your config.xml contain:

 

<rim:permit>access_shared</rim:permit>

 

Here is the link to the KitchenSink app on Webworks-Samples, the video section

 

https://github.com/blackberry/WebWorks-Samples/blob/master/kitchenSink/html/html5/video.html

Use that for reference, and see if you are missing anything.

 

Hope this helps!

Please use plain text.
Regular Contributor
sandeshmsg
Posts: 64
Registered: ‎06-16-2011
My Device: bold 9000, playbook
My Carrier: vodafone

Re: video tag unable play mp4 format .

I have added video.type="video/mp4"; to the code sir, its working great now . Thanks a bunch .
Please use plain text.
New Contributor
MrSauga
Posts: 9
Registered: ‎03-16-2011
My Device: 9360
My Carrier: KOODO

Re: video tag unable play mp4 format .

[ Edited ]

this link doesnt work

https://github 

 

I recorded 3 1+ hour videos , 2 show a picture thumbnail and play fine. The first video I recorded to 399mb says its an MP4. Blackberry link brought the same file to my hard drive and stll won't play. Odd that 2 videos played and one doesnt.

It's new memory card. It doesnt show the file until I do a search "my" video folder on shows 2 that work.

Please use plain text.