yaz/commit
fix playertype setting
author | Michiel Hildebrand |
---|---|
Thu Mar 29 12:03:08 2012 +0200 | |
committer | Michiel Hildebrand |
Thu Mar 29 12:03:08 2012 +0200 | |
commit | 44dd35878b5dce7d0ac67c17e9f47895b59a6002 |
tree | be2b6b6b21a438ec8a3c01ef69a6c44cb9ff6229 |
parent | 558989a486c395bfaa3032b080c9570aa81305dc |
Diff style: patch stat
diff --git a/applications/yaz_player.pl b/applications/yaz_player.pl index c8af2bd..80f279f 100644 --- a/applications/yaz_player.pl +++ b/applications/yaz_player.pl @@ -37,7 +37,7 @@ :- http_handler(yaz(data/updateentries), http_data_update_entries, []). -:- setting(player_type, oneof(['',html,flash,silverlight,npo]), '', +:- setting(player_type, oneof([auto,html,flash,silverlight,npo]), auto, 'The type of player that is used. When not defined we guess the required player based on the extension of the video stream.'). %% http_yaz_player(+Request) diff --git a/web/js/videoplayer/videoplayer.js b/web/js/videoplayer/videoplayer.js index 7ee0748..20a7604 100644 --- a/web/js/videoplayer/videoplayer.js +++ b/web/js/videoplayer/videoplayer.js @@ -59,7 +59,7 @@ YUI.add('video-player', function(Y) { value: true }, playerType : { - value: null + value: "auto" }, extensions : { value: { @@ -78,7 +78,7 @@ YUI.add('video-player', function(Y) { Y.extend(VideoPlayer, Widget, { initializer: function() { - if(!this.get("playerType")) { + if(this.get("playerType")=="auto") { this._guessPlayerType(); } },