Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Akamai Live stream and ondemand in one playlist

3 replies [Last post]

I am setting up a playlist with the Akamai Live stream and ondemand videos (hosted in their Netstorage). The problem is if I specify <meta rel="type">fcsubscribe</meta>, the Live stream run okay but the ondemand video won't run. If I don't specify the <meta rel="type">fcsubscribe</meta>, the ondemand video run okay, but not the Live stream. Here is the example:

<?xml version="1.0" encoding="utf-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<tracklist>

<!-- example of ondemand streaming-->
<track>
<title>ABC</title>
<creator>ABC</creator>
<location>video.flv</location>
<meta rel="streamer">rtmp://{cpcode}.edgefcs.net/ondemand</meta>
<meta rel="type">rtmp</meta>
</track>

<!-- example of live streaming-->
<track>
<title>ABC</title>
<creator>ABC</creator>
<location>sample@sample</location>
<meta rel="streamer">rtmp://{cpcode}.live.edgefcs.net/live</meta>
<meta rel="type">fcsubscribe</meta>
</track>

Is there way to make it work?

 
Have you tried leaving the type set to rtmp and then setting rtmp.subscribe to true for the livestream (requires v4.6 player)?

<?xml version="1.0" encoding="UTF-8"?>
<playlist xmlns="http://xspf.org/ns/0/" version="1">
  <trackList>
    <!-- example of ondemand streaming-->
    <track>
      <title>ABC</title>
      <creator>ABC</creator>
      <location>video.flv</location>
      <meta rel="streamer">rtmp://{cpcode}.edgefcs.net/ondemand</meta>
      <meta rel="type">rtmp</meta>
    </track>
    <!-- example of live streaming-->
    <track>
      <title>ABC</title>
      <creator>ABC</creator>
      <location>sample@sample</location>
      <meta rel="streamer">rtmp://{cpcode}.live.edgefcs.net/live</meta>
      <meta rel="type">rtmp</meta>
      <strong><meta rel="rtmp.subscribe">true</meta></strong>
    </track>
  </trackList>
</playlist>

Thank You hobbs. However, when the playlist reaches the Live stream, it cannot load the stream. I try to only this without the ondemand in front of it:
<track>
<title>ABC</title>
<creator>ABC</creator>
<location>sample@sample</location>
<meta rel="streamer">rtmp://{cpcode}.live.edgefcs.net/live</meta>
<meta rel="type">rtmp</meta>
<meta rel="rtmp.subscribe">true</meta>
</track>
The Live stream won't run. I think this rtmp.subscribe value doesn't pass to the player from the XML playlist.

If I use the swfobject to the play the Live stream or the ondemand video, it runs okay.

 
You are right, the rtmp.subscribe flashvar doesn't get passed to the player from the playlist.

So it looks like you can't use VOD & livestream in one playlist.