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

Forums

/

Blocking the controlbar

8 replies [Last post]

This is not necessarily a bug, but I could not think of a better forum to put this in... Before V5, there was a "block" method on the controlbar. This was very useful so you could prevent the user from seeking. I don't see this method any more with the V5 player. What is the best way to do this now?

What do you mean by a "block" method?

you could call something like...

controlbar.block(true)

... and it would prevent the user from using the seek bar.

Can you provide a link to where you have run this with the old player? I have never heard of this before.

Interesting, I actually can't get a preroll working there, but the V5 player can do this as well I believe. It may be somewhere else in the source though.

I looked around but could not find any comparable method or property. Best I could do is hide the controls which is not ideal.

Sorry, you are right, it is not working in V5. It is being worked on.

@Steve -

Actually, the controlbar's block() method was never officially supported by the 4.x player, although it was available in the code for certain player versions. The 5.x API does have the "lock" method, which allows plugins to prevent playback during blocking scenarios, although I realize that this does not provide the same functionality.

We're aware that the Open Video Ads plugin uses block(), and we're working with the developer to come up with a workaround.