Answered by:
Smooth Streaming on Android

Question
-
Hi,
I am looking for an option for providing smooth streaming on Android Tablet. I have a .ism file and was referring to the link (http://www.windowsazure.com/en-us/develop/net/tutorials/smooth-streaming-plugin-for-open-source-media-framework/) which possibly shows that streaming is possible but i am not able to make it work.
I had also looked at OSMF (http://www.osmf.org/) and tried with setting up Strobe Media Playback to see if the smooth streaming can work or not but was not sucessfull.
Any pointers will be helpful.
Thanks,
SahasSaturday, January 5, 2013 3:56 PM
Answers
-
I replaced my code with your streaming souce and worked well. Is a girl in the snow, right?
This is the code:
<object width="600" height="420" id="SamplePlayer"> <param name="movie" value="https://manage.windowsazure.com/Content/MediaServices/Player/StrobeMediaPlayback.swf"> <param name="flashvars" value="src=http://devplatem.vo.msecnd.net/Sintel/Sintel_H264.ism/Manifest&autoPlay=true&plugin _SmoothStreamingPlugin=https://manage.windowsazure.com/Content/MediaServices/Player/SmoothStreamin gPlugin.0.2.swf&SmoothStreamingPlugin_retryLive=true&SmoothStreamingPlugin_retryInterval=10"> <param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><param name="wmode" value="direct"> </object>
But again, it only works in chrome, and referencing the swfs in the azure site...
I thought maybe the error in IE and firefox is a crossdomain issue, thats why i tried to run the flash objects local, but then it gives me the unable to connect error.Tuesday, January 8, 2013 10:58 AM
All replies
-
Hi Sahas,
Adobe announced that, they will be dropping their Flash runtime support for Android and Air will be the option to build applications.https://blogs.adobe.com/flashplayer/2012/06/flash-player-and-android-update.html You can build Adobe Air applications for Android using OSMF and Smooth Streaming plugin. Also some of the Android devices still have the Flash Runtime. You can build an OSMF player using the Smooth Streaming plugin or load the dynamic plugin using Strobe Media Playback for Smooth Streaming playback for Android.
Smooth Streaming plugin only supports playback of H.264 Smooth Streaming assets. Are you using H.264 encoded Smooth Streaming assets and what is the error message are you getting? When setting up the Strobe Media Playback, are you copying the dynamic plugin under a web server and changing http://yourdomain section in the sample content to match your web server.
Thanks,
Cenk
- Proposed as answer by David Bristol [msft]Microsoft employee Monday, January 7, 2013 2:28 PM
Sunday, January 6, 2013 7:40 AM -
Here's the announcement for the Smooth Streaming plugin for OSMF: http://blogs.iis.net/cenkd/archive/2012/12/19/announcing-smooth-streaming-plugin-for-osmf.aspxMonday, January 7, 2013 2:28 PM
-
Hi!
This is the code i use. I managed to make it work using the Microsoft binaries:
<object width="600" height="420" id="SamplePlayer"> <param name="movie" value="https://manage.windowsazure.com/Content/MediaServices/Player/StrobeMediaPlayback.swf"> <param name="flashvars" value="src=http://***********************.ism/Manifest&autoPlay=true&plugin_SmoothStreamingPlugin=https://manage.windowsazure.com/Content/MediaServices/Player/SmoothStreamingPlugin.0.2.swf&SmoothStreamingPlugin_retryLive=true&SmoothStreamingPlugin_retryInterval=10"> <param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><param name="wmode" value="direct"> </object>
but it only works in chrome!
When i downloaded the strobe player and the smooth plugin and tried to use the binaries in my own server:
<object width="600" height="420" id="SamplePlayer"> <param name="movie" value="/strobe/StrobeMediaPlayback.swf"> <param name="flashvars" value="src=http://**************.ism/Manifest&autoPlay=true&plugin_AdaptiveStreamingPlugin=/strobe/SmoothStreamingPlugin.0.2.swf&AdaptiveStreamingPlugin_retryLive=true&AdaptiveStreamingPlugin_retryInterval=10"></param> <param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><param name="wmode" value="direct"> </object>
it says: we are unable to connect to the content you requested....
Am i doing something wrong?
Thanks!
Monday, January 7, 2013 7:58 PM -
Please download the latest SS plugin from MS Download and follow the steps in Smooth_Streaming_Plugin_for_OSMF.pdf.
Your final html code should be similar to the below sample code. Please change the http://yourdomain/ section to match your domain and web server settings. You can also download the StrobeMediaPlayback.swf file from Adobe site and host at your server.
Regards,
Cenk
<html> <object width="920" height="640"> <param name="movie" value="http://osmf.org/dev/2.0gm/StrobeMediaPlayback.swf"></param> <param name="flashvars" value="src=http://devplatem.vo.msecnd.net/Sintel/Sintel_H264.ism/manifest&autoPlay=true&plugin_AdaptiveStr eamingPlugin=http://yourdomain/MSAdaptiveStreamingPlugin-v1.0.1- osmf2.0.swf&AdaptiveStreamingPlugin_retryLive=true&AdaptiveStreamingPlugin_retryInterval=10"></param> <param name="allowFullScreen" value="true"></param> <param name="allowscriptaccess" value="always"></param> <param name="wmode" value="direct"></param> <embed src="http://osmf.org/dev/2.0gm/StrobeMediaPlayback.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" wmode="direct" width="920" height="640" flashvars="src=http://devplatem.vo.msecnd.net/Sintel/Sintel_H264.ism/manifest&autoPlay=true&plugin_Ada ptiveStreamingPlugin=http://yourdomain/MSAdaptiveStreamingPlugin-v1.0.1- osmf2.0.swf&AdaptiveStreamingPlugin_retryLive=true&AdaptiveStreamingPlugin_retryInterval=10"></embed> </object> </html>
- Proposed as answer by Cenkd Tuesday, January 8, 2013 6:26 AM
Tuesday, January 8, 2013 6:26 AM -
Hi Cenkd,
I have tried the code which you provide but it doesn't work. Here is the snippet i used with a reference to the local StrobeMediaPlayback.swf setup on IIS.
Let me know if i am missing anything here.
Code Snippet:
<html> <object width="920" height="640"> <param name="movie" value="http://osmf.org/dev/2.0gm/StrobeMediaPlayback.swf"></param> <param name="flashvars" value="src=http://devplatem.vo.msecnd.net/Sintel/Sintel_H264.ism/manifest&autoPlay=true&plugin_AdaptiveStr eamingPlugin=http://localhost/OSFMPlayer/MSAdaptiveStreamingPlugin-v1.0.1- osmf2.0.swf&AdaptiveStreamingPlugin_retryLive=true&AdaptiveStreamingPlugin_retryInterval=10"></param> <param name="allowFullScreen" value="true"></param> <param name="allowscriptaccess" value="always"></param> <param name="wmode" value="direct"></param> <embed src="http://osmf.org/dev/2.0gm/StrobeMediaPlayback.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" wmode="direct" width="920" height="640" flashvars="src=http://devplatem.vo.msecnd.net/Sintel/Sintel_H264.ism/manifest&autoPlay=true&plugin_Ada ptiveStreamingPlugin=http://localhost/OSFMPlayer/MSAdaptiveStreamingPlugin-v1.0.1- osmf2.0.swf&AdaptiveStreamingPlugin_retryLive=true&AdaptiveStreamingPlugin_retryInterval=10"></embed> </object> </html>
The error message which i see when the player loads is "We are unable to connect to the content you've requested. We apologize for the inconvienience". Attach is the error messageThanks,
SahasTuesday, January 8, 2013 9:59 AM -
Hi joseph,
I tried your code which mentions it works in chrome on the chrome browser but i still get the error message "We are unable to connect to the content you've requested. We apologize for the inconvienience". Attach is the error message on the chrome browser.
Tuesday, January 8, 2013 10:05 AM -
I replaced my code with your streaming souce and worked well. Is a girl in the snow, right?
This is the code:
<object width="600" height="420" id="SamplePlayer"> <param name="movie" value="https://manage.windowsazure.com/Content/MediaServices/Player/StrobeMediaPlayback.swf"> <param name="flashvars" value="src=http://devplatem.vo.msecnd.net/Sintel/Sintel_H264.ism/Manifest&autoPlay=true&plugin _SmoothStreamingPlugin=https://manage.windowsazure.com/Content/MediaServices/Player/SmoothStreamin gPlugin.0.2.swf&SmoothStreamingPlugin_retryLive=true&SmoothStreamingPlugin_retryInterval=10"> <param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><param name="wmode" value="direct"> </object>
But again, it only works in chrome, and referencing the swfs in the azure site...
I thought maybe the error in IE and firefox is a crossdomain issue, thats why i tried to run the flash objects local, but then it gives me the unable to connect error.Tuesday, January 8, 2013 10:58 AM -
Thanks Joseph.. it is working for me on Chrome.Tuesday, January 8, 2013 2:20 PM
-
Hi Sahas,
Are you hosting a valid crossdomain.xml in your web server? Since the Strobe Player referenced from http://osmf.org/dev/2.0gm/StrobeMediaPlayback.swf Flash runtime will check a valid crossdomain file in your web server (localhost). The code will work on IE, Firefox and Chrome. If it is just working only with Chrome, the reason could be you can be running a debug runtime of Flash in Chrome which might bypass crossdomain check. Can you please check the http requests with Fiddler and ensure all the requests are successful with 200 code? Also using http:// and https:// might cause some issues on some browser which will prevent loading of some resources.
Thanks,
Cenk
- Proposed as answer by Cenkd Wednesday, January 9, 2013 9:03 AM
Wednesday, January 9, 2013 9:03 AM -
Hi Sahas,
Are you hosting a valid crossdomain.xml in your web server? Since the Strobe Player referenced from http://osmf.org/dev/2.0gm/StrobeMediaPlayback.swf Flash runtime will check a valid crossdomain file in your web server (localhost). The code will work on IE, Firefox and Chrome. If it is just working only with Chrome, the reason could be you can be running a debug runtime of Flash in Chrome which might bypass crossdomain check. Can you please check the http requests with Fiddler and ensure all the requests are successful with 200 code? Also using http:// and https:// might cause some issues on some browser which will prevent loading of some resources.
Thanks,
Cenk
- Proposed as answer by Cenkd Wednesday, January 9, 2013 9:05 AM
Wednesday, January 9, 2013 9:05 AM -
Hi Cenk,
very good! I have forgotten that the streaming itself was from other domain! I uploades a crossdomain.xml allowing * and worked well in chrome!! Later i'm trying allowing *.windows.net
The problem in firefox and IE still remaing. In fact, they don't even load the flash object, in IE a red X appears.
Thanks!
Wednesday, January 9, 2013 3:23 PM -
Solved the IE and FF issue! The "embed" element was missing inside the object tag. Incluiding it solved the problem!Friday, January 11, 2013 10:25 PM
-
Hi Joseph,
I was able to make it work on IE and Chrome browser and it works fine if i test it from a desktop/laptop but when i test it from the default broswer on Andriod Tablet (i am using ASUS TF101 model) provides it is not playing the video.
Thanks,
Sahas- Edited by Sahas.Lad Thursday, January 17, 2013 11:48 AM sentence change
Thursday, January 17, 2013 11:35 AM -
Hi Sahas.Lad
The crossdomain.xml host on the Video streaming server, right? Not Web Server?
Tuesday, March 26, 2013 1:54 AM -
-
Hi ngquoctrong,
You need crossdomain.xml both in video streaming server and in the webserver where plugin is hosted.
Thanks,
Cenk
- Proposed as answer by Cenkd Tuesday, March 26, 2013 7:59 PM
Tuesday, March 26, 2013 7:59 PM