07-17-2013 05:45 AM
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 ?
Solved! Go to Solution.
07-18-2013 03:18 AM
Can you provide some code (including a link to some media that isn't working for you)?
07-18-2013 04:44 AM - edited 07-18-2013 04:45 AM
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
07-18-2013 05:25 AM
Do you have a link to a non-seekable video that I can use to test?
07-18-2013 06:31 AM
take a look at this site
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.
07-18-2013 06:36 AM
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.