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

How to repeat a serverside playlist after last video without reload application

New Here ,
Jan 10, 2013 Jan 10, 2013

Copy link to clipboard

Copied

Hello!

This is my server side playlist application:

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

}

After last movie plays, I need to reload the application and it starts again.

I would like to ask, how to repeat the server side playlist, without reload the application. A real continuos play.

Thanks,
Rafael    

Views

503

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

correct answers 1 Correct answer

Adobe Employee , Jan 10, 2013 Jan 10, 2013

Change your above code based on below lines (below is my code - showing how to repeat playlist, dont use my code directly - modify your code accordingly)

application.onAppStart = function(){

          ms = Stream.get("playlist");

          ms.onStatus = function(info){

                    trace("Ns status:"+info.code);

                    if(info.code == "NetStream.Play.Stop"){

                              trace("came here");

                              ms.play("sample",0,-1,false);

                 

...

Votes

Translate

Translate
Adobe Employee ,
Jan 10, 2013 Jan 10, 2013

Copy link to clipboard

Copied

LATEST

Change your above code based on below lines (below is my code - showing how to repeat playlist, dont use my code directly - modify your code accordingly)

application.onAppStart = function(){

          ms = Stream.get("playlist");

          ms.onStatus = function(info){

                    trace("Ns status:"+info.code);

                    if(info.code == "NetStream.Play.Stop"){

                              trace("came here");

                              ms.play("sample",0,-1,false);

                              ms.play("mp4:sample1_150kbps.f4v",0,-1,false);

 

                    }

          }

          ms.play("sample",0,-1,true);

          ms.play("mp4:sample1_150kbps.f4v",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