Skip navigation
giostefani
Currently Being Moderated

What is wrong with this line? params.dvrSnapToLiveClockOffset = "14400"

Mar 29, 2012 11:39 AM

Tags: #flash #player #osmf #mediaplayer #smp #live_streaming #strobemediaplayback

I've included my code below.  I'm trying to pass this parameter to the StrobeMediaPlayback.swf so I can overcome the "SnapToLive" default.  The default dvrSnapToLiveClockOffset is set for 4 seconds, so all I get is the last 4 seconds in the timeline.  Any ideas or recommendations?

 

<code>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Stefani Entertainment Network Live Events</title>

 

<style type="text/css">

.Verdana {

    font-family: Verdana, Geneva, sans-serif;

    font-weight: bold;

    text-align: left;

    color:#00F

}

#videoDiv video {

    text-align: center;

}

</style>

</head>

<script type="text/javascript" src="swfobject.js"></script>

<script type="text/javascript">

    // Flash Variables

    var flashvars = {};

    flashvars.src = "http://live.stefanientertainment.com/livestream1.f4m";

    flashvars.controlBarMode = "docked";

    flashvars.poster = "http://live.stefanientertainment.com/images/si-poster.jpg";    

    // Flash Parameters

    var params = {};

    params.movie = "http://live.stefanientertainment.com/strobe/StrobeMediaPlayback.swf";

    params.allowfullscreen = "true";

    params.allowscriptaccess = "always";

    params.autoHideControlBar = "false";

   params.dvrSnapToLiveClockOffset = "14400";

    params.loop = "true";

    params.menu = "true";

    params.wmode = "direct";

    // Flash Attributes

    var attributes = {};

    // Call SWF object with alternate "videoDiv" in the case of non-Flash device

    swfobject.embedSWF("http://live.stefanientertainment.com/strobe/StrobeMediaPlayback.swf", "videoDiv", "680", "382", "10.1.0", "expressInstall.swf", flashvars, params, attributes);

</script>

 

<body>

    <div id="videoDiv">

        <video controls="controls" poster="http://live.stefanientertainment.com/images/si-poster.jpg" width="680" height="382">

            <source src="http://live.stefanientertainment.com/livestream.m3u8" type="application/x-mpegURL" />           

        </video>

    </div>

<p class="Verdana">Saturday March 24, 2012 - Soul Intensity show starts at 7:30pm<br />

  So Tune in, Turn on and Turn up!!

  <br />

</p>

</body>

</html>

</code>

 
Replies
  • Currently Being Moderated
    Mar 30, 2012 1:45 AM   in reply to giostefani

    Here's your manifest:

     

    <manifest xmlns="http://ns.adobe.com/f4m/2.0">

      <baseURL>http://live.stefanientertainment.com/hds-live/livepkgr/_definst_/livee vent/</baseURL>

    <dvrInfo beginOffset="0" endOffset="0" windowDuration="-1"/>

      <media href="livestream1.f4m" bitrate="650"/>

    </manifest>

     

    - please do not use dvrInfo if you're not planning to use DVR (windowduration = -1)

    - do not use *offset attributes for manifest v2.0 .

    - dvrSnapToLiveClockOffset is used for DVR, not for live.

    - you don't need to use multi layer manifest for a single stream (although I assume you provided it like this for demo purposes).

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 2, 2012 1:27 AM   in reply to giostefani

    1. Use DVR as you already have done; no changes there.

    2. Put offline the dvr files; either by using the offline attribute in f4m (but the player might not respond to that) or by copying the streams directory, modify the links and the manifest and treat it like a VOD resource.

     

    There might be better solutions, but they depend on the server you use.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points