From 0ce24fea04b8b571ef887d184a7f8cdeca2d4c4a Mon Sep 17 00:00:00 2001 From: Heshan Date: Wed, 6 Apr 2011 21:47:46 +0530 Subject: #1092668 by anglo VideoJS player --- js/video.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'js') diff --git a/js/video.js b/js/video.js index fc2fa7f..7a98507 100644 --- a/js/video.js +++ b/js/video.js @@ -31,10 +31,19 @@ } else { $('#flv_player_'+ext).hide(); } + if($(this).val() == 'video_play_html5') { + $('#html5_player_'+ext).show(); + } else { + $('#html5_player_'+ext).hide(); + } }); - if($('select', this).val() == 'video_play_flv') { + if($('select', this).val() == 'video_play_flv') $('#flv_player_'+ext).show(); - } + + if($('select', this).val() == 'video_play_html5') + $('#html5_player_'+ext).show(); + else + $('#html5_player_'+ext).hide(); }); if(settings.video) { -- cgit v1.2.3