Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Getting metadata from player API and video scheduling

4 replies [Last post]
Reply

I have just set up an account and wanted to know how I can use the API to get the names/metadata of the 'current' video that is playing in a playlist.

Also is it possible to schedule what time a particular video or playlist is played using javascript.

Thanks

Reply

It is possible to get currently playing video out of the API using the getMeta JavaScript API call.

Scheduling a video is not part of the player itself. It might be possible to write some sort of scheduler app in JavaScript that would send a loadVideo call to the player at certain times and also makes sure videos get seeked to the right timestamp etc. etc.

As a matter of fact we're going to put live a tutorial later today that will explain a lot of the basics about how to access the JavaScript API of the player and it will also include more information about how dynamically loading of videos into a player works in Bits on the Run. I will link to that once that is live.

Reply

Also, scheduled video is generally NOT what your viewers want, as a rule your users will like you much better (and get you more traffic) if you just give them what they want, when they want.

Reply

Thanks for your reply Remco. We need to schedule videos as this is the requirement of client. So the website we are creating will function like a music TV channel where the user will watch a pre-defined sequence of clips depending on the day of the week.

Also how can we get information about the current playlist. So for example we will have a playlist set up for each day with say 30 videos.

We would like to be able to extract this information somehow so that we can tell our users what videos will be playing over the next 3 days. Is this something that can be done using the current API?

Reply

Hassan, your request does not make sense. Bits on the Run does not have a video scheduling functionality. That means that there also isn't any information about what video will run at what time. Like I said before the getMeta call will get information about what is currently playing in the video using the JavaScript API.

It is also possible to extract video details from our system API using the /videos/list and /videos/show calls, but the main problem that you would have to tackle would be that you would have to build all of the playout logic that determines what video should play when.

Post new comment

  • Allowed HTML tags: <code> <blockquote> <em> <strong> <strike> <ul> <li> <ol>
  • You may post code using <code>...</code> .
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options