Skip navigation
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?



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">


<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;



#videoDiv video {

    text-align: center;




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

<script type="text/javascript">

    // Flash Variables

    var flashvars = {};

    flashvars.src = "";

    flashvars.controlBarMode = "docked";

    flashvars.poster = "";    

    // Flash Parameters

    var params = {}; = "";

    params.allowfullscreen = "true";

    params.allowscriptaccess = "always";

    params.autoHideControlBar = "false";

   params.dvrSnapToLiveClockOffset = "14400";

    params.loop = "true"; = "true";

    params.wmode = "direct";

    // Flash Attributes

    var attributes = {};

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

    swfobject.embedSWF("", "videoDiv", "680", "382", "10.1.0", "expressInstall.swf", flashvars, params, attributes);




    <div id="videoDiv">

        <video controls="controls" poster="" width="680" height="382">

            <source src="" type="application/x-mpegURL" />           



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

  So Tune in, Turn on and Turn up!!

  <br />





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

    Here's your manifest:


    <manifest xmlns="">

      <baseURL> vent/</baseURL>

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

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



    - 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