• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Server Side Playlist

New Here ,
Jan 03, 2013 Jan 03, 2013

Copy link to clipboard

Copied

Hello

I would like to ask for a FUNCTIONAL example of a server side playlist.

I try to follow many docs from adobe, but it's not clear, much different from wowza

I have a VOD service.

Inside media folder, a lot of videos FLV.

I wanna to create a channel, that will play a continuous playlist for example

movie1.flv

movie2.flv

movie3.flv

at ends, back to movie1.flv

How it works?

Thanks,

Rafael

Views

3.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 04, 2013 Jan 04, 2013

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 04, 2013 Jan 04, 2013

Copy link to clipboard

Copied

Yes,

But doesn´t works ... the Adobe Documentation is very poor ... We pay $5000 USD for a software that nothing works in a simple way ...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 04, 2013 Jan 04, 2013

Copy link to clipboard

Copied

application.onAppStart = function(){

    this.myStream = Stream.get("serverplaylist");

  this.myStream.play("movie1",0,-1,true );

  this.myStream.play("movie2", 0, -1, false);

  this.myStream.play("movie3", 0, -1, false);

  this.myStream.play("movie1",0,-1,false );

}

try above code and let me know what issue do you face. Its very simple code, we can tweak it further as per your use case.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 04, 2013 Jan 04, 2013

Copy link to clipboard

Copied

I think the problem is related to player side.

As I know, and looked for JWPLayer and FlowPlayer does not support server side playlists ...

I m wrong?

Because I need to trigger the playlist, calling serverplaylist as stream name right?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 04, 2013 Jan 04, 2013

Copy link to clipboard

Copied

I have not used JWPlayer and FlowPlayer but i dont see why they should not support Server-side playlist.

From above example - You need to play the stream at client side as below

ns.play("serverplaylist",-1,-1,true) where "ns" is client-side netstream.

Basically you need to play on client with stream name as "serverplaylist" and mode as "live"

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 04, 2013 Jan 04, 2013

Copy link to clipboard

Copied

My server side code:

main.asc

application.onAppStart = function(){

  this.myStream = Stream.get("serverplaylist");

  this.myStream.play("two-01-01.flv",0,-1,true );

  this.myStream.play("two-01-02.flv", 0, -1, false);

  this.myStream.play("two-01-01.flv",0,-1,false );

}

My application.xml is the same as VOD application.

My Player Code:

<object width="600" height="409">

<param name="movie" value="assets/players/adobe/StrobeMediaPlayback.swf"></param>

<param name="flashvars" value="src=rtmp://fms-03.xpsnetworks.net/tvthudinha/serverplaylist&initialBufferTime=10&expandedBufferTime=120&minContinuousPlaybackTime=60"></param>

<param name="allowFullScreen" value="true"></param>

<param name="allowscriptaccess" value="always"></param>

<embed

src="assets/players/adobe/StrobeMediaPlayback.swf"

type="application/x-shockwave-flash"

allowscriptaccess="always"

allowfullscreen="true"

width="600"

height="409"

flashvars="src=rtmp://fms-03.xpsnetworks.net/tvthudinha/serverplaylist&initialBufferTime=10&expandedBufferTime=120&minContinuousPlaybackTime=60">

</embed>

</object>

If I play the two-01-01.flv at SRC field, I can watch the movie, but when I call the playlist, doesnt works .. keep buffering and nothing happens.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 04, 2013 Jan 04, 2013

Copy link to clipboard

Copied

You mean, I should develop my own player?

I attempt here: http://www.osmf.org/configurator/fmp/# and at jwplayer without sucess

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 04, 2013 Jan 04, 2013

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 04, 2013 Jan 04, 2013

Copy link to clipboard

Copied

No tutorials, nothing on google ... I think this function NEVER WORKS ...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 04, 2013 Jan 04, 2013

Copy link to clipboard

Copied

You are trying to use jwplayer correct ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 04, 2013 Jan 04, 2013

Copy link to clipboard

Copied

I try to use JW, FlowPlayer ... and look for other client side players on the web .. nothing works ...

If I call the videoname works, but when I call the playlist name, serverplaylist still buffering and nothing happens.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 04, 2013 Jan 04, 2013

Copy link to clipboard

Copied

I have also tryed this code:

application.onAppStart = function(){

  this.myStream = Stream.get("mp4:serverplaylist.f4v");

  this.myStream.record();    

  this.myStream.play("two-01-01.flv",0,-1,true );

  this.myStream.play("two-01-02.flv", 0, -1, false);

  this.myStream.play("two-01-01.flv",0,-1,false );

}

I saw a file serverplaylist.f4v bein created inside the vod/media directory but its 0 byte and also I got this message at core.log

2013-01-04     13:37:34     16058     (i)2611173     Metadata not available before the flush of first segment. Default metadata recorded for stream /opt/adobe/fms/applications/vod/media/serverplaylist.f4v     -

2013-01-04     13:38:28     16058     (i)2611173     Metadata not available before the flush of first segment. Default metadata recorded for stream /opt/adobe/fms/applications/vod/media/serverplaylist.f4v     -

I beleive the path to FLV files are correct? These files are inside the vod/media directory

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 04, 2013 Jan 04, 2013

Copy link to clipboard

Copied

If you are using just flash other devices like Android/iPhones/iPads/Macs will not work.

Are you using another media formats?

Do you have a custom set of code you can post?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 04, 2013 Jan 04, 2013

Copy link to clipboard

Copied

I m just using flash - html

My HTML file player is:

<div id="mediaplayer"></div>

   

<script type='text/javascript' src='assets/players/jw/jwplayer.js'></script>

<div id='mediaspace' align="center"></div>

<script type="text/javascript">

  jwplayer('mediaplayer').setup({

    'id': 'playerID',

    'width': '600',

    'height': '400',

    'provider': 'rtmp',

    'bufferlength': '8',

    'streamer': 'rtmp://fms-03.xpsnetworks.net/tvthudinha/mp4:serverplaylist.f4v',

    'autostart': 'true',

    'file': 'serverplaylist',

   

    'modes': [

        {type: 'flash', src: 'assets/players/jw/player.swf'}

    ]

  });

</script>

I have tried alot of options between file and streamer .. no one works ...

http://xpscast.com/embed-tvthudinha.php

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 04, 2013 Jan 04, 2013

Copy link to clipboard

Copied

Now it works ...

NOTE:

At server code, you CAN'T use the file extension if it's an FLV file ...

application.onAppStart = function(){

  this.myStream = Stream.get("serverplaylist");

  this.myStream.record();    

  this.myStream.play("two-01-02",0,-1,true );

  this.myStream.play("two-01-02", 0, -1, false);

  this.myStream.play("two-01-01",0,-1,false );

}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 04, 2013 Jan 04, 2013

Copy link to clipboard

Copied

LATEST

Do your video work with handheld devices like Android/iPhone/iPad ?

Can you post your code/data?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines