Ticket #1346 (closed feature: fixed)
onDisplayClick() API call
| Reported by: | jeroen | Owned by: | pablo |
|---|---|---|---|
| Priority: | Normal | Milestone: | Player 6.0 beta |
| Component: | general | Keywords: | |
| Cc: | Forum thread: |
Description
This JavaScript API call will be very useful for creating custom display click behaviors. Some examples:
- Muting the video, switching to fullscreen or moving to the next playlist item instead of (or in addition to) toggling playback.
- Navigating to an external page.
- Displaying information about a particular part of the video.
Example implementation:
jwplayer("mydiv").setup({
file: "video.mp4",
flashplayer: "jwplayer.swf",
events: {
onDisplayClick(function(xpos,ypos) {
alert("you clicked the video on the coordinates ["+xpos+","+ypos+"]");
});
}
});
Change History
Note: See
TracTickets for help on using
tickets.
