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

Native Development

Reply
Developer
Posts: 52
Registered: ‎04-22-2012
My Device: Z10
My Carrier: Mobilicity
Accepted Solution

MediaPlayer and non-seekable media

Hi All,

 

Im trying to get non-seekable media streamed to my app in cascades. Im using the MediaPlayer.. actually I believed I had this working for the last month or so until I finally got down to implementing a bit rate picker. This is when I realized my steam was not actually being transcoded but streamed in its native format (if it was mp4 it would be streamed as mp4 with its native bit rate which was much too high).

 

In any case the MediaPlayer obviously supports seekable media and has a seekableChanged signal. I understand that seekable is false by default.. but why doesnt a non-seekable source play ?  Im providing a transcoded mpegts stream but it seems that the MediaPlayer wants it to be seekable and then seems to try and reconnect to the source by passing some type of offset.  This causes the server to throw a broken pipe or connection reset exception.

 

Can someone tell me how to play a streamed (over http) non-seekable media source ?

Highlighted
Developer
Posts: 52
Registered: ‎04-22-2012
My Device: Z10
My Carrier: Mobilicity

Re: MediaPlayer and non-seekable media

Bump.. anyone ?  I didnt think it would be so hard to get a non-seekable media source to play..

Developer
Posts: 1,008
Registered: ‎12-12-2010
My Device: Passport (Red Limited Edition)
My Carrier: Mobile Vikings

Re: MediaPlayer and non-seekable media

Can you provide some code (including a link to some media that isn't working for you)?

-------------------------------------------
BlackBerry Certified Builder for Native Application Development -- Proud member of the Belgian BlackBerry Developer group
Samples: Park in Ghent
Feeling generous? Nominate me for BB Elite member!
Developer
Posts: 52
Registered: ‎04-22-2012
My Device: Z10
My Carrier: Mobilicity

Re: MediaPlayer and non-seekable media

[ Edited ]

The media is streamed over an http source. Any REST based server should perform the same. so for example http:// u : p @ ip : port / media.mkv

 

So far ive tried three different media formats. an MKV, M4V and MPEG TS.

 

I tried both seekable and non-seekable media.

 

I also tried two browsers, firefox (ubuntu 12.04) and blackberry browser.

 

I simply copy the link to the media file into the browser and go..

 

if we take one media file and one browser we have 4 test cases.. seekable firefox, non-seekable firefox, seekable blackberry browser, non-seekable blackberry browser.

 

of the 4 test cases.. the last one (non-seekable blackberry browser) fails.
 

for me at least every try no matter which format.

 

oh and im on 10.1.0.1720

 

Developer
Posts: 1,008
Registered: ‎12-12-2010
My Device: Passport (Red Limited Edition)
My Carrier: Mobile Vikings

Re: MediaPlayer and non-seekable media

Do you have a link to a non-seekable video that I can use to test?

-------------------------------------------
BlackBerry Certified Builder for Native Application Development -- Proud member of the Belgian BlackBerry Developer group
Samples: Park in Ghent
Feeling generous? Nominate me for BB Elite member!
Developer
Posts: 52
Registered: ‎04-22-2012
My Device: Z10
My Carrier: Mobilicity

Re: MediaPlayer and non-seekable media

take a look at this site

 

http://www.powerstream.net/showcase/videosamples/videosamples.asp

 

I tried the WMV files listed at the top, just another format but still same problem. Video plays in firefox.. but not blackberry browser. WMV's are a supported type.

Developer
Posts: 52
Registered: ‎04-22-2012
My Device: Z10
My Carrier: Mobilicity

Re: MediaPlayer and non-seekable media

more here

 

http://www.cybertechmedia.com/samplevideos.html

 

these all work in firefox both quicktime and windows selections for any of those samples. however do not work in blackberry browser. Seems like there is an underlying issue in the MediaPlayer to me.. like its not handling the connections properly.

 

on my local server I see connection reset and broken peer exceptions any time i attempt to play a video from the blackberry browser on my phone on my local nerwork.

Developer
Posts: 52
Registered: ‎04-22-2012
My Device: Z10
My Carrier: Mobilicity

Re: MediaPlayer and non-seekable media

bump.. still wondering if anyone can confirm this issue..

Developer
Posts: 52
Registered: ‎04-22-2012
My Device: Z10
My Carrier: Mobilicity

Re: MediaPlayer and non-seekable media

bump.. serious issue fellas.. lets confirm it please

Developer
Posts: 52
Registered: ‎04-22-2012
My Device: Z10
My Carrier: Mobilicity

Re: MediaPlayer and non-seekable media

bumpity bumpity.