FAQ  •  Register  •  Login

[CDS API] MEDIA url and FlowPlayer

<<

kissskoool

Streaming enthusiast

Posts: 25

Joined: Mon Aug 05, 2013 1:15 pm

Post Mon Aug 05, 2013 11:30 pm

[CDS API] MEDIA url and FlowPlayer

Hi,

Could someone show me how to make Flowplayer read a video from the MEDIA URL given by the CDS API ?

Thanks !
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 16802

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Aug 06, 2013 12:13 am

Re: [CDS API] MEDIA url and FlowPlayer

Look at MediaBrowser source javascript.
<<

kissskoool

Streaming enthusiast

Posts: 25

Joined: Mon Aug 05, 2013 1:15 pm

Post Tue Aug 06, 2013 3:00 pm

Re: [CDS API] MEDIA url and FlowPlayer

Thanks !

I did not think to take a look to the media browser source code.

After some searchs, and if someone has the same question, it's very simple.

You just have to give flowplayer the contentUrl with the authToken :

  Code:
function playit(video_url)
{
   //get the flowplayer instance in the page
        var flowapi = flowplayer();
        //set the clip in the player
   flowapi.setClip(video_url);
        //play it
   flowapi.play();
}

Return to Third-party tools integration

Who is online

Users browsing this forum: No registered users and 2 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.