Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Change BOTR Video using JavaScript


Hi,

I plan to use the JW Player Platform (Bits on the Run) embed code to deliver videos in an app.

One thing thats not mentioned in the documentation is the recommended way to change a video. Do I have to manually remove the old player and inititalize a new one by inserting an altered embed code? Or is there a more elegant yet undocumented API-way in doing this?

Ive only found a rather old forum thread for this topic: http://www.longtailvideo.com/support/forums/bits-on-the-run/system-api/18920/using-javascript-to-load-botr-videos/

Any ideas?


Thanks,
Ren

3 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

You can use – http://www.longtailvideo.com/support/jw-player/31800/loading-new-playlists, this will work with botr videos.

JW Player

User  
0 rated :

Ok, thanks.

Heres a working code snippet for future reference:

bc.. jwplayer().load("http://content.bitsontherun.com/jwp/KEY.xml");



(KEY is the video key as showed beside the video in the dashboard)

Ethan Feldman

JW Player Support Agent  
0 rated :

Glad you got it!

This question has received the maximum number of answers.