About player api events


#1

About the following

Go back 5 seconds
Go back 10 seconds
Go forward 5 seconds
Go forward 10 seconds

http://player.kaltura.com/docs/KeyboardShortcuts

I knew that it works by pressing the keyboard.
Is it possible to control these with button tags?
I want to activate processing by pressing a button tag.

The following is a reference site.
http://player.kaltura.com/docs/index.php?path=PlaybackRateSelector


#2

Hi @kox,

Yes, you can do the same by attaching doSeek notification to your own buttons:

$('.myButton button').click(function(){
   kdp.sendNotification('doSeek', 5 );
});

#3

thanks

This script only advances 5 seconds from the beginning of the video.


#4

You need to add additional button bindings and pass the required value as the second argument.
In the sample I provided above you can see I set 5 but you can pass any value there.