From 8550cc844210294ad3ba66f2b85f2957257b91bb Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sat, 24 Dec 2011 06:07:50 +0000 Subject: [PATCH] add zap ui to video player --- source/Ox.UI/js/Video/Ox.VideoPlayer.js | 45 +++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/source/Ox.UI/js/Video/Ox.VideoPlayer.js b/source/Ox.UI/js/Video/Ox.VideoPlayer.js index 2940487e..8c7d698f 100644 --- a/source/Ox.UI/js/Video/Ox.VideoPlayer.js +++ b/source/Ox.UI/js/Video/Ox.VideoPlayer.js @@ -821,6 +821,51 @@ Ox.VideoPlayer = function(options, self) { }) .appendTo(self['$controls' + titleCase]); + } else if (control == 'zapHome') { + + self.$zapHomeButton = Ox.Button({ + style: 'symbol', + title: 'up', + tooltip: 'Home Channel', + type: 'image' + }) + .bindEvent({ + click: function() { + that.triggerEvent('zap', {direction: 0}); + } + }) + .appendTo(self['$controls' + titleCase]); + + } else if (control == 'zapNext') { + + self.$zapNextButton = Ox.Button({ + style: 'symbol', + title: 'right', + tooltip: 'Next Channel', + type: 'image' + }) + .bindEvent({ + click: function() { + that.triggerEvent('zap', {direction: 1}); + } + }) + .appendTo(self['$controls' + titleCase]); + + } else if (control == 'zapPrevious') { + + self.$zapPreviousButton = Ox.Button({ + style: 'symbol', + title: 'left', + tooltip: 'Previous Channel', + type: 'image' + }) + .bindEvent({ + click: function() { + that.triggerEvent('zap', {direction: -1}); + } + }) + .appendTo(self['$controls' + titleCase]); + } });