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
Posts: 44
Registered: ‎02-15-2010
My Device: Blackberry Storm 9530
My Carrier: Verizon

Re: Blackberry Browser cannot Play Embedded MP4 Videos

Here is an example of the kind of HTML I am using that doesn't work.  Note: I've tried MANY variations on this HTML, as well as MANY variations on the video file type, and I can't get any of them to work.  Sometimes it fails with the errors messages shown above in this thread, sometimes it just fails to play the video and sits there silently....

 

<html>
<head>
 <title>Play Video</title>
 <link rel="stylesheet" href="
http://test.example.com/assets/css/mobile.css" type="text/css" media="handheld,all" />
</head>
<body>
<object height="288" width="352"
data="
http://admin.example.com/_ipvideos/video_file_35.3gp"
type="video/3gpp" />
</body>
</html>

 

Notes:

 

- I have tried this both with and without a DOCTYPE line - neither works

 

- For some strange reason RIM's documentation about the <OBJECT /> tags seems to indicate that the units should be included with the height and width attributes (e.g. height="288px"), which is not standard HTML5.  Anyway, I've tried both variations and neither one works

 

- When I test the above page in other (non-BlackBerry) browsers, it works

 

Please feel free to post an HTML code sample that is known to work on BlackBerry.....

 

 

 

- zelaza
Contributor
Posts: 44
Registered: ‎02-15-2010
My Device: Blackberry Storm 9530
My Carrier: Verizon

Re: Blackberry Browser cannot Play Embedded MP4 Videos

[ Edited ]

Regarding the different behavior between the "Blackberry Browser" and the "Internet Browser", if you use the following HTML for both of them:

 

<html>
<head>
 <title>Play Video</title>
</head>
<body>
<object height="288" width="352"
data="
http://admin.example.com/_ipvideos/video_file_35.3gp"
type="video/3gpp">browser does not support object tag</object>
</body>
</html>

 

(note alternative text in the body of the OBJECT tag):

 

- The "Blackberry Browser" always immediately displays the alternative text ("browser does not support object tag"), which leads me to believe that the "BlackBerry Browser" doesn't support the OBJECT tag, at least the way it's used above.

 

- The "Internet Browser" attempts to load and play the video, fails with the error messages shown above in this thread, and prompts the user to downoad the file and play it from local storage.

 

As always, please feel free to post a snippet of HTML that disproves the hypothesis that the "BlackBerry Browser" does not support the OBJECT tag.

 

 

- zelaza
Developer
Posts: 87
Registered: ‎02-26-2010
My Device: Bold 9000
My Carrier: Rogers

Re: Blackberry Browser cannot Play Embedded MP4 Videos

Hi,

 

Thanks for the clarification. I'll have to rethink my process now and figure out what I would like to do.

 

Your information is greatly appreciated!

Contributor
Posts: 44
Registered: ‎02-15-2010
My Device: Blackberry Storm 9530
My Carrier: Verizon

Re: Blackberry Browser cannot Play Embedded MP4 Videos

No problem, iamtony.

 

Hopefully RIM will provide us with a solution, or at least some answers, soon.

 

One of the things that I find the most frustrating about this is that I know the Blackberry media player can play my video files from local storage.  I also know that it can play videos streamed to it over the network via RTSP. 

 

The fact that the Blackberry browser cannot use the native media player as a helper to play videos sourced directly from the internet over HTTP is just amazing to me.   There must be something about the media player that prevents it from doing this...

 

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

Re: Blackberry Browser cannot Play Embedded MP4 Videos

As an update... we also now have our media development team looking into your issue as well

 

Hopefully we will have some answers for you soon.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Contributor
Posts: 44
Registered: ‎02-15-2010
My Device: Blackberry Storm 9530
My Carrier: Verizon

Re: Blackberry Browser cannot Play Embedded MP4 Videos

Thanks for the update, Tim.  Looking forward to hearing more.

- zelaza
Contributor
Posts: 44
Registered: ‎02-15-2010
My Device: Blackberry Storm 9530
My Carrier: Verizon

Re: Blackberry Browser cannot Play Embedded MP4 Videos

Would be nice to get an update on this before the weekend....
- zelaza
Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Blackberry Browser cannot Play Embedded MP4 Videos

From an investigation by the Media development team, it unfortunately looks like a bug that has since been fixed in newer builds of the 5.0 operating systems.

 

I will try and dig further to find out which publicly released version of the 5.0 operating system contains this fix.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Contributor
Posts: 44
Registered: ‎02-15-2010
My Device: Blackberry Storm 9530
My Carrier: Verizon

Re: Blackberry Browser cannot Play Embedded MP4 Videos

Thanks, Tim.

 

I'm running v5.0.0.328 (Platform 4.2.0.128), which I believe is the latest publically available release (as of today, Mar-06-2010).

 

- zelaza
Contributor
Posts: 44
Registered: ‎02-15-2010
My Device: Blackberry Storm 9530
My Carrier: Verizon

Re: Blackberry Browser cannot Play Embedded MP4 Videos

Looking forward to hearing some feedback on this....

- zelaza