Site Feedback Thread

3 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

initParams for the channel 9 player to specify initial time offset?

Back to Forum: Site Feedback
  • User profile image


    I often embed Channel 9 videos ( because they are cool :> ) and wonder if the silverlight player has any initial parameter that can be used to specify the initial time offset for an embedded video? I know you do some magic (e.g.: but I don't see how that time parameter of the URL is going into the player Smiley Any hints?



  • User profile image

    We do it with javascript currently. Once the video is initialized, we look for #time in the url or a cookie (if you have one) and use a js call to seek to the position. We do it this way because then we only need one method of doing so and we can use it for both the silverlight and html5 player. I think there is an initparam you can add if you're using the Silverlight embed code called starttime but you'd have to convert 06m24s into seconds to do it.

    <param name="initParams" value="...,starttime=60"/>

    I can make it work for you with our iframe embed code though. There was a little check in there that was preventing it from working but once we push up this code change (should be sometime this week), you'll be able to add the #time= to the iframe embed url.

    <iframe src=".../player?w=512&h=288#time=06m34s" frameBorder="0" scrolling="no" ></iframe>

  • User profile image

    Hi Cara9,

    the starttime parameter works just great and also the time parameter is welcomed! Thanks a lot for the quick help! Smiley


Conversation locked

This conversation has been locked by the site admins. No new comments can be made.