Nov. 06, 2009Ziwei
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?
Nov. 06, 2009hobbs
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>
<meta rel="rtmp.subscribe">true</meta>
</track>
</trackList>
</playlist>
Nov. 06, 2009Ziwei
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.
Nov. 06, 2009hobbs
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.
Here are some helpful links to learn more about the JW Player™:
Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!
If you don’t buy a commercial license, you cannot use a JW Player™ on (i) a site that has ads; (ii) a corporate site; or a (iii) CMS. Our licenses are very inexpensive, so what are you waiting for? Buy a license today.