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
New Developer
eggsy84
Posts: 3
Registered: ‎05-06-2009
My Device: Not Specified

Automatic Playback of MP4

Hi all and thank you in advance for reading,

 

We have developed a Blackberry version of our website (It's just skinned really and CSS sized)

 

On the site are quite a few videos in MP4 format. When the user clicks the link the Blackberry (in our test case the Storm 9530) downloads the MP4 - is there anyway to make the device automatically start playing the MP4 rather than download?

 

Unfortunately in this case we cannot stream the video.

 

Many thanks,

 

Eggsy:smileytongue:

Please use plain text.
Guru I
Xandrex
Posts: 18,377
Registered: ‎07-29-2008
My Device: Z10 10.1.0.2312 / Playbook 2.1 / 8900 5.0
My Carrier: Vodafone France (SFR) & B&You

Re: Automatic Playback of MP4

what MIME type is defined for .mp4 files on your webserver ?



The search box on top-right of this page is your true friend, and the public Knowledge Base too:
Please use plain text.
New Developer
eggsy84
Posts: 3
Registered: ‎05-06-2009
My Device: Not Specified

Re: Automatic Playback of MP4

Hi there

 

Thank you for the reply!

 

It is a java web app and in the web.xml we have a MIME mapping of the following:

 

<mime-mapping>
    <extension>mp4</extension>
    <mime-type>video/mp4</mime-type>
</mime-mapping> 

Please use plain text.
Guru I
Xandrex
Posts: 18,377
Registered: ‎07-29-2008
My Device: Z10 10.1.0.2312 / Playbook 2.1 / 8900 5.0
My Carrier: Vodafone France (SFR) & B&You

Re: Automatic Playback of MP4

that is the correct setting as written in the RFC 4337 MIME Type Registration for MPEG-4

http://www.rfc-editor.org/rfc/rfc4337.txt



The search box on top-right of this page is your true friend, and the public Knowledge Base too:
Please use plain text.
New Developer
eggsy84
Posts: 3
Registered: ‎05-06-2009
My Device: Not Specified

Re: Automatic Playback of MP4

After a bit more investigation it seems that the following is happening:

 

The browser requests the file and decides that it doesn't know how to handle the content type so stops the connection and thus I hit a broken pipe exception (perfectly fine) but does initialise the Blackberry Media player which does know how the MIME type.

 

The unusual thing is that the Media player also hits a broken pipe exception?

 

Does anyone know if the Blackberry Media players makes requests for files in parts so requires ETag and Byte Range headers (similarly to the iPhone)? Or does it always request the whole file?

 

Somewhat of a complex question I know.

 

 

Please use plain text.