Skip to main content
January 27, 2012
Question

HLS-VOD stream slow....?

  • January 27, 2012
  • 1 reply
  • 1636 views

took Lynda course and built a page "universal player" to try flash first, then go to the m3u8 stream, and then try android files lastely; Publishing an on-demand stream with a universal player code

Encoded an 8 second video F4V 800kbps and then all the other formats OGV, WebM etc...

Then added code for my own Strobe Player:

http://www.adobe.com/devnet/flashmediaserver/articles/beginning-fms45-pt06.html

All works fine except it loads soooooo slow!!!  and then stops mid stream and loads some more:-(

What am i do'n wrong!!!!????

Here is code:

<link href="Styles.css" rel="stylesheet" type="text/css" />
<script src="Scripts/swfobject.js" type="text/javascript"></script>
</head>

<body>

<div class="container">
<div class="header"><a href="#"><img src="Graphics/Logo.gif" alt="Insert Logo Here" name="Insert_logo" width="400" height="90" id="Insert_logo" style="background: #8090AB; display:block;" /></a>
<!-- end .header --></div>

<div class="content">
<object width='854' height='480' id='StrobeMediaPlayback' name='myStrobe' type='application/x-shockwave-flash' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' ><param name='movie' value='swfs/StrobeMediaPlayback.swf' />
<param name='quality' value='high' />
<param name='bgcolor' value='#000000' />
<param name='allowfullscreen' value='true' />
<param name='flashvars' value= '&src=rtmp://lead05.csv01.com/vod/mp4:OneTime_vod_multi.f4v&autoHideControlBar=true&streamType=vod&autoPlay=true&verbose=true'/>
<param name="allowscriptaccess" value="always">
<embed src='swfs/StrobeMediaPlayback.swf' width='640' height='377' id='myStrobe' quality='high' bgcolor='#000000' name='myStrobe' allowfullscreen='true' pluginspage='http://www.adobe.com/go/getflashplayer' flashvars='&src=rtmp://lead05.csv01.com/vod/mp4:OneTime_vod_multi.f4v&autoHideControlBar=true&streamType=vod&autoPlay=true&verbose=true' type='application/x-shockwave-flash'> </embed>
<!--<![endif]-->
    <div>
     <h1>Fallback to HTML5 for iOS devices</h1>
     <p><video controls width="640" height="360">
                    <source src="http://lead05.csv01.com/hls-vod/OneTime_vod_multi.f4v.m3u8">
                    <source src="OneTime_vod_multi.theora.ogv">
                    <source src="OneTime_vod_multi.webmvp8.webm">
                    Your browser does not support Flash Player 10.1 or the HTML5 video element.
                    </video></p>
                   
    </div>
    <!--[if !IE]>-->
    </object>
                <!--<![endif]-->
</object></div>

<script type="text/javascript">
swfobject.registerObject("FlashID");
</script>

    This topic has been closed for replies.

    1 reply

    Nikhil_Kalyan
    Participating Frequently
    January 27, 2012

    Hi,

    Thanks for trying this out.

    Do you see the slow loading for both iOS and Flash playbacks ? Try including port into the HTTP url. So, it should look like : http://<server>:8134/hls-vod......

    8134 is the default port apache on FMS uses, with a default installation. Change accordingly otherwise.

    January 27, 2012

    Thank You!  I tried your suggestion and it seems to work better...freezes a couple times within the first minute and then did not freez until the 3rd minute.

    Could it be because i am Using a VPN connection?

    I would think so;-)

    Nikhil_Kalyan
    Participating Frequently
    January 27, 2012

    Good to know that its improved. VPN might make things slower as well. Try using IP addresses than FQDNs. You can also look at some Apache fine tuning to improve the performance.