1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- function JamendoPlayer(ref_id, object_for_player, finish_callback)
- {
- var _ref_id = ref_id;
- var _object_for_player = object_for_player;
- var _player = null;
- var _finish_callback = finish_callback;
-
- this.play = function(play_callback)
- {
- _player = new GenericStreamingPlayer(_ref_id, _object_for_player,
- event_play,
- event_end,
- event_error,
- event_finish_playlist);
- _player.create_player(play_callback);
- }
-
- var event_play = function()
- {
-
- }
-
- var event_end = function()
- {
-
- }
-
- var event_error = function()
- {
- _finish_callback();
- }
-
- var event_finish_playlist = function()
- {
- _finish_callback();
- }
-
- this.stop = function()
- {
- _player.stop();
- }
-
- this.pause = function()
- {
- _player.pause();
- }
-
- this.destroy = function()
- {
- _player.destroy();
- }
-
- this.stopAndDestroy = function()
- {
- this.stop();
- this.destroy();
- }
-
- this.close = function()
- {
- this.stopAndDestroy();
- }
-
- this.enableFullScreen = function() {
-
- }
-
- this.disableFullScreen = function() {
-
- }
- }
|