Changeset 2043


Ignore:
Timestamp:
01/06/12 14:47:17 (17 months ago)
Author:
pablo
Message:

Adds preliminary support for the instream api in HTML5

Location:
branches/fl5_instream
Files:
1 added
12 edited

Legend:

Unmodified
Added
Removed
  • branches/fl5_instream/js/bin-debug/jwplayer.js

    r2042 r2043  
    1919var $jw = jwplayer; 
    2020 
    21 jwplayer.version = '5.9.2042'; 
     21jwplayer.version = '5.9.2043'; 
    2222 
    2323// "Shiv" method for older IE browsers; required for parsing media tags 
     
    29942994                 
    29952995                function _addInternalListener(player, type) { 
    2996                         _player.instream_jwAddEventListener(type, 'function(dat) { jwplayer("' + _api.id + '").dispatchInstreamEvent("' + type + '", dat); }'); 
     2996                        _player.jwInstreamAddEventListener(type, 'function(dat) { jwplayer("' + _api.id + '").dispatchInstreamEvent("' + type + '", dat); }'); 
    29972997                }; 
    29982998 
     
    30923092                 
    30933093                this.play = function(state) { 
    3094                         _player.instream_jwPlay(state); 
     3094                        _player.jwInstreamPlay(state); 
    30953095                }; 
    30963096                this.pause= function(state) { 
    3097                         _player.instream_jwPause(state); 
     3097                        _player.jwInstreamPause(state); 
    30983098                }; 
    30993099                this.seek = function(pos) { 
    3100                         _player.instream_jwSeek(pos); 
     3100                        _player.jwInstreamSeek(pos); 
    31013101                }; 
    31023102                this.destroy = function() { 
    3103                         _player.instream_jwDestroy(); 
     3103                        _player.jwInstreamDestroy(); 
    31043104                }; 
    31053105                this.getState = function() { 
    3106                         return _player.instream_jwGetState(); 
     3106                        return _player.jwInstreamGetState(); 
    31073107                } 
    31083108                this.getDuration = function() { 
    3109                         return _player.instream_jwGetDuration(); 
     3109                        return _player.jwInstreamGetDuration(); 
    31103110                } 
    31113111                this.getPosition = function() { 
    3112                         return _player.instream_jwGetPosition(); 
     3112                        return _player.jwInstreamGetPosition(); 
    31133113                } 
    31143114 
     
    42364236                var _falseFullscreen = false; 
    42374237                var _normalscreenWidth, _normalscreenHeight; 
     4238                var _instremArea; 
    42384239                 
    42394240                function createWrapper() { 
     
    42884289                        _box.id = _wrapper.id + "_displayarea"; 
    42894290                        _wrapper.appendChild(_box); 
     4291                         
     4292                        _instreamArea = document.createElement("div"); 
     4293                        _instreamArea.id = _wrapper.id + "_instreamarea"; 
     4294                        _css(_instreamArea, { 
     4295                                overflow: "hidden", 
     4296                                position: "absolute", 
     4297                                top: 0, 
     4298                                left: 0, 
     4299                                bottom: 0, 
     4300                                right: 0, 
     4301                                background: '000000', 
     4302                                display: 'none' 
     4303                        }); 
     4304                        _wrapper.appendChild(_instreamArea); 
    42904305                } 
    42914306                 
     
    46844699                        return false; 
    46854700                } 
    4686                  
     4701                ///             public function setupInstream(_instreamDisplay:DisplayObject, plugin:IPlugin):void { 
     4702                 
     4703                this.setupInstream = function(instreamDisplay) { 
     4704                        _instreamArea.style.display = "block"; 
     4705                        _box.style.display = "none"; 
     4706                        _instreamArea.appendChild(instreamDisplay); 
     4707                } 
     4708                 
     4709                ///                     public function destroyInstream():void { 
     4710                var _destroyInstream = this.destroyInstream = function() { 
     4711                        _instreamArea.style.display = "none"; 
     4712                        _box.style.display = "block"; 
     4713                } 
    46874714        }; 
    46884715         
     
    70137040        }; 
    70147041})(jwplayer); 
     7042/**  
     7043 * API to control instream playback without interrupting currently playing video 
     7044 * 
     7045 * @author pablo 
     7046 * @version 5.9 
     7047 */ 
     7048(function(jwplayer) { 
     7049        var _utils = jwplayer.utils; 
     7050         
     7051        jwplayer.html5.instream = function(item, options, api, model, view, controller) { 
     7052                var _item = new jwplayer.html5.playlistitem(item), 
     7053                        _api = api, 
     7054                        _options = options, 
     7055                        _model = model, 
     7056                        _view = view, 
     7057                        _controller = controller, 
     7058                        _currentItem = _model.item, 
     7059                        _currentPlaylist = _model.playlist, 
     7060                        _video, _oldsrc, _oldsources, _oldpos, 
     7061                        _self = this, 
     7062                        _provider, _cbar, 
     7063                        _dispatcher = new jwplayer.html5.eventdispatcher(); 
     7064                 
     7065 
     7066                function _init() { 
     7067                        var _thing = document.createElement("div"); 
     7068                        _thing.id = _self.id; 
     7069 
     7070                        _controller.pause(); 
     7071                        _video = _controller.detachMedia(); 
     7072//                      _video.style.zIndex = 10; 
     7073 
     7074                         
     7075                        _oldsrc = _video.src; 
     7076                        _oldsources = _video.getElementsByTagName("source"); 
     7077                        _oldpos = _video.currentPosition; 
     7078                         
     7079                        _view.setupInstream(_thing); 
     7080 
     7081                        _setupProvider(); 
     7082                         
     7083                        _cbar = new jwplayer.html5.controlbar(_self, _utils.extend({},_model.plugins.config.controlbar, {position:"OVER"})); 
     7084                         
     7085                        _thing.appendChild(_cbar.getDisplayElement()); 
     7086                         
     7087                         
     7088                        _resize(_api.jwGetWidth(), _api.jwGetHeight()); 
     7089 
     7090                        _provider.load(_item); 
     7091                         
     7092                        return; 
     7093                }; 
     7094                 
     7095                function _setupProvider() { 
     7096                        _provider = new jwplayer.html5.mediavideo(_model, _model.getMedia() ? _model.getMedia().getDisplayElement() : _model.container); 
     7097                        _provider.addGlobalListener( 
     7098                                function(evt) { 
     7099                                        _dispatcher.sendEvent(evt.type, evt); 
     7100                                } 
     7101                        ); 
     7102                        _provider.addEventListener(jwplayer.api.events.JWPLAYER_MEDIA_COMPLETE, function(evt) { 
     7103                                _self.jwInstreamDestroy(); 
     7104                        }); 
     7105                } 
     7106                 
     7107                function _resize(width, height) { 
     7108                        _css(_cbar.getDisplayElement(), { 
     7109                                position: "absolute", 
     7110                                width: width, 
     7111                                height: height, 
     7112                                zIndex: 1000 
     7113                        }); 
     7114                        _cbar.resize(width, height); 
     7115                } 
     7116                 
     7117                this.jwInstreamAddEventListener = _dispatcher.addEventListener;  
     7118                this.jwInstreamRemoveEventListener = _dispatcher.removeEventListener;  
     7119                 
     7120                this.jwInstreamPlay = function() { 
     7121                } 
     7122 
     7123                this.jwInstreamPause = function() { 
     7124                } 
     7125                 
     7126                this.jwInstreamSeek = function(position) { 
     7127                } 
     7128 
     7129                 
     7130                this.jwInstreamGetState = function() { 
     7131                } 
     7132 
     7133                this.jwInstreamGetPosition = function() { 
     7134                } 
     7135 
     7136                this.jwInstreamGetDuration = function() { 
     7137                } 
     7138 
     7139                this.jwInstreamDestroy = function() { 
     7140                        _video.pause(); 
     7141                        _video.src = _oldsrc; 
     7142                        for (var i=0; i < _oldsources.length; i++) { 
     7143                                _video.appendChild(_oldsources[i]); 
     7144                        } 
     7145                        _video.currentPosition = _oldpos; 
     7146                        _video.load(); 
     7147                        _view.destroyInstream(); 
     7148                         
     7149                        _controller.attachMedia(); 
     7150//                      _model.getMedia().load(_currentPlaylist[_currentItem]); 
     7151//                      _video.pause(); 
     7152                        //_utils.setOuterHTML(_video, _videoHTML); 
     7153                } 
     7154                 
     7155                 
     7156                /** Duplicate main html5 api **/ 
     7157                this.skin = _api.skin; 
     7158                 
     7159                this.jwPlay = function(state) {}; 
     7160                this.jwPause = function(state) {}; 
     7161                this.jwSeek = function(position) {}; 
     7162                this.jwStop = function() {}; 
     7163                this.jwGetItem = function() {}; 
     7164                this.jwGetPosition = function() {}; 
     7165                this.jwGetDuration = function() {}; 
     7166 
     7167                this.jwGetWidth = _api.jwGetWidth; 
     7168                this.jwGetHeight = _api.jwGetHeight; 
     7169 
     7170                this.jwGetFullscreen = _api.jwGetFullscreen; 
     7171                this.jwSetFullscreen = _api.jwSetFullscreen; 
     7172 
     7173                this.jwGetVolume = _api.jwGetVolume; 
     7174                this.jwSetVolume = _api.jwSetVolume; 
     7175 
     7176                this.jwGetMute = _api.jwGetMute; 
     7177                this.jwSetMute = _api.setMute; 
     7178 
     7179                this.jwGetState = function() {}; 
     7180                 
     7181                this.jwGetPlaylist = function() { 
     7182                        return [_item]; 
     7183                }; 
     7184                this.jwGetPlaylistIndex = function() { 
     7185                        return 0; 
     7186                }; 
     7187                 
     7188                this.jwAddEventListener = function(type, handler) { 
     7189                        _dispatcher.addEventListener(type, handler); 
     7190                } 
     7191                this.jwRemoveEventListener = _dispatcher.removeEventListener; 
     7192                 
     7193                this.id = _api.id; 
     7194                 
     7195                _init(); 
     7196                 
     7197                return this; 
     7198        }; 
     7199})(jwplayer); 
     7200 
    70157201/** 
    70167202 * JW Player logo component 
     
    72087394         
    72097395        var _utils = jwplayer.utils; 
    7210         var _css = _utils.css; 
    72117396        var _isMobile = _utils.isMobile(); 
    72127397         
     
    72537438                        _emptied = false, 
    72547439                        _attached = false, 
     7440                        _userDuration = false, 
    72557441                        _bufferingComplete, _bufferFull, 
    72567442                        _sourceError; 
     
    72767462                         
    72777463                        _currentItem = item; 
     7464                        _userDuration = (_currentItem.duration > 0); 
     7465                        _model.duration = _currentItem.duration; 
     7466                         
    72787467                        _utils.empty(_video); 
    72797468 
     
    73147503                                item.start = 0; 
    73157504                        } 
    7316                         _model.duration = item.duration; 
    73177505                        _eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_MEDIA_LOADED); 
    73187506                        if((!_isMobile && item.levels.length == 1) || !_emptied) { 
     
    74917679                /** Initializes the HTML5 video and audio media provider **/ 
    74927680                function _init() { 
    7493                         _video = document.createElement("video"); 
     7681                        if (!_video) { 
     7682                                if (_container.tagName.toLowerCase() == "video") { 
     7683                                        _video = _container; 
     7684                                } else { 
     7685                                        _video = document.createElement("video"); 
     7686                                } 
     7687                        } 
    74947688                        _state = jwplayer.api.events.state.IDLE; 
    74957689  
     
    76417835                                        duration: newDuration 
    76427836                                }; 
    7643                         if ( (_model.duration < newDuration || isNaN(_model.duration)) && event.target.duration != Infinity) { 
    7644                                 _model.duration = newDuration; 
     7837                        if (!_userDuration) { 
     7838                                if ( (_model.duration < newDuration || isNaN(_model.duration)) && event.target.duration != Infinity) { 
     7839                                        _model.duration = newDuration; 
     7840                                } 
    76457841                        } 
    76467842                        _eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_MEDIA_META, { 
     
    80018197                        position: 0, 
    80028198                        buffer: 0, 
     8199                        container: _container, 
    80038200                        config: { 
    80048201                                width: 480, 
     
    91349331 * 
    91359332 * @author zach 
    9136  * @version 5.8 
     9333 * @version 5.9 
    91379334 */ 
    91389335(function(jwplayer) { 
     
    92479444                _api.jwDisplayHide = _componentCommandFactory("display", "hide"); 
    92489445                 
     9446                 
     9447                var _instreamPlayer; 
     9448                 
     9449                //InStream API 
     9450                _api.jwLoadInstream = function(item, options) { 
     9451                        _instreamPlayer = new jwplayer.html5.instream(item, options, _api, _model, _view, _controller); 
     9452                } 
     9453                _api.jwInstreamDestroy = function() { 
     9454                        if (_instreamPlayer) { 
     9455                                _instreamPlayer.jwInstreamDestroy(); 
     9456                                _instreamPlayer = null; 
     9457                        } 
     9458                } 
     9459                 
     9460                _api.jwInstreamAddEventListener = _callInstream('jwInstreamAddEventListener'); 
     9461                _api.jwInstreamRemoveEventListener = _callInstream('jwInstreamRemoveEventListener'); 
     9462                _api.jwInstreamGetState = _callInstream('jwInstreamGetState'); 
     9463                _api.jwInstreamGetDuration = _callInstream('jwInstreamGetDuration'); 
     9464                _api.jwInstreamGetPosition = _callInstream('jwInstreamGetPosition'); 
     9465                _api.jwInstreamPlay = _callInstream('jwInstreamPlay'); 
     9466                _api.jwInstreamPause = _callInstream('jwInstreamPause'); 
     9467                _api.jwInstreamSeek = _callInstream('jwInstreamSeek'); 
     9468                 
     9469                function _callInstream(funcName) { 
     9470                        return function() { 
     9471                                if (_instreamPlayer && typeof _instreamPlayer[funcName] == "function") { 
     9472                                        return _instreamPlayer[funcName].apply(this, arguments); 
     9473                                } else { 
     9474                                        _utils.log("Could not call instream method - instream API not initialized"); 
     9475                                } 
     9476                        } 
     9477                } 
     9478                 
     9479                 
    92499480                //UNIMPLEMENTED 
    92509481                _api.jwGetLevel = function() { 
  • branches/fl5_instream/js/src/api/jwplayer.api.instream.js

    r2040 r2043  
    2121                 
    2222                function _addInternalListener(player, type) { 
    23                         _player.instream_jwAddEventListener(type, 'function(dat) { jwplayer("' + _api.id + '").dispatchInstreamEvent("' + type + '", dat); }'); 
     23                        _player.jwInstreamAddEventListener(type, 'function(dat) { jwplayer("' + _api.id + '").dispatchInstreamEvent("' + type + '", dat); }'); 
    2424                }; 
    2525 
     
    119119                 
    120120                this.play = function(state) { 
    121                         _player.instream_jwPlay(state); 
     121                        _player.jwInstreamPlay(state); 
    122122                }; 
    123123                this.pause= function(state) { 
    124                         _player.instream_jwPause(state); 
     124                        _player.jwInstreamPause(state); 
    125125                }; 
    126126                this.seek = function(pos) { 
    127                         _player.instream_jwSeek(pos); 
     127                        _player.jwInstreamSeek(pos); 
    128128                }; 
    129129                this.destroy = function() { 
    130                         _player.instream_jwDestroy(); 
     130                        _player.jwInstreamDestroy(); 
    131131                }; 
    132132                this.getState = function() { 
    133                         return _player.instream_jwGetState(); 
     133                        return _player.jwInstreamGetState(); 
    134134                } 
    135135                this.getDuration = function() { 
    136                         return _player.instream_jwGetDuration(); 
     136                        return _player.jwInstreamGetDuration(); 
    137137                } 
    138138                this.getPosition = function() { 
    139                         return _player.instream_jwGetPosition(); 
     139                        return _player.jwInstreamGetPosition(); 
    140140                } 
    141141 
  • branches/fl5_instream/js/src/html5/jwplayer.html5.api.js

    r2021 r2043  
    33 * 
    44 * @author zach 
    5  * @version 5.8 
     5 * @version 5.9 
    66 */ 
    77(function(jwplayer) { 
     
    116116                _api.jwDisplayHide = _componentCommandFactory("display", "hide"); 
    117117                 
     118                 
     119                var _instreamPlayer; 
     120                 
     121                //InStream API 
     122                _api.jwLoadInstream = function(item, options) { 
     123                        _instreamPlayer = new jwplayer.html5.instream(item, options, _api, _model, _view, _controller); 
     124                } 
     125                _api.jwInstreamDestroy = function() { 
     126                        if (_instreamPlayer) { 
     127                                _instreamPlayer.jwInstreamDestroy(); 
     128                                _instreamPlayer = null; 
     129                        } 
     130                } 
     131                 
     132                _api.jwInstreamAddEventListener = _callInstream('jwInstreamAddEventListener'); 
     133                _api.jwInstreamRemoveEventListener = _callInstream('jwInstreamRemoveEventListener'); 
     134                _api.jwInstreamGetState = _callInstream('jwInstreamGetState'); 
     135                _api.jwInstreamGetDuration = _callInstream('jwInstreamGetDuration'); 
     136                _api.jwInstreamGetPosition = _callInstream('jwInstreamGetPosition'); 
     137                _api.jwInstreamPlay = _callInstream('jwInstreamPlay'); 
     138                _api.jwInstreamPause = _callInstream('jwInstreamPause'); 
     139                _api.jwInstreamSeek = _callInstream('jwInstreamSeek'); 
     140                 
     141                function _callInstream(funcName) { 
     142                        return function() { 
     143                                if (_instreamPlayer && typeof _instreamPlayer[funcName] == "function") { 
     144                                        return _instreamPlayer[funcName].apply(this, arguments); 
     145                                } else { 
     146                                        _utils.log("Could not call instream method - instream API not initialized"); 
     147                                } 
     148                        } 
     149                } 
     150                 
     151                 
    118152                //UNIMPLEMENTED 
    119153                _api.jwGetLevel = function() { 
  • branches/fl5_instream/js/src/html5/jwplayer.html5.mediavideo.js

    r2032 r2043  
    1616         
    1717        var _utils = jwplayer.utils; 
    18         var _css = _utils.css; 
    1918        var _isMobile = _utils.isMobile(); 
    2019         
     
    6160                        _emptied = false, 
    6261                        _attached = false, 
     62                        _userDuration = false, 
    6363                        _bufferingComplete, _bufferFull, 
    6464                        _sourceError; 
     
    8484                         
    8585                        _currentItem = item; 
     86                        _userDuration = (_currentItem.duration > 0); 
     87                        _model.duration = _currentItem.duration; 
     88                         
    8689                        _utils.empty(_video); 
    8790 
     
    122125                                item.start = 0; 
    123126                        } 
    124                         _model.duration = item.duration; 
    125127                        _eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_MEDIA_LOADED); 
    126128                        if((!_isMobile && item.levels.length == 1) || !_emptied) { 
     
    299301                /** Initializes the HTML5 video and audio media provider **/ 
    300302                function _init() { 
    301                         _video = document.createElement("video"); 
     303                        if (!_video) { 
     304                                if (_container.tagName.toLowerCase() == "video") { 
     305                                        _video = _container; 
     306                                } else { 
     307                                        _video = document.createElement("video"); 
     308                                } 
     309                        } 
    302310                        _state = jwplayer.api.events.state.IDLE; 
    303311  
     
    449457                                        duration: newDuration 
    450458                                }; 
    451                         if ( (_model.duration < newDuration || isNaN(_model.duration)) && event.target.duration != Infinity) { 
    452                                 _model.duration = newDuration; 
     459                        if (!_userDuration) { 
     460                                if ( (_model.duration < newDuration || isNaN(_model.duration)) && event.target.duration != Infinity) { 
     461                                        _model.duration = newDuration; 
     462                                } 
    453463                        } 
    454464                        _eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_MEDIA_META, { 
  • branches/fl5_instream/js/src/html5/jwplayer.html5.model.js

    r2032 r2043  
    1717                        position: 0, 
    1818                        buffer: 0, 
     19                        container: _container, 
    1920                        config: { 
    2021                                width: 480, 
  • branches/fl5_instream/js/src/html5/jwplayer.html5.view.js

    r2021 r2043  
    2323                var _falseFullscreen = false; 
    2424                var _normalscreenWidth, _normalscreenHeight; 
     25                var _instremArea; 
    2526                 
    2627                function createWrapper() { 
     
    7576                        _box.id = _wrapper.id + "_displayarea"; 
    7677                        _wrapper.appendChild(_box); 
     78                         
     79                        _instreamArea = document.createElement("div"); 
     80                        _instreamArea.id = _wrapper.id + "_instreamarea"; 
     81                        _css(_instreamArea, { 
     82                                overflow: "hidden", 
     83                                position: "absolute", 
     84                                top: 0, 
     85                                left: 0, 
     86                                bottom: 0, 
     87                                right: 0, 
     88                                background: '000000', 
     89                                display: 'none' 
     90                        }); 
     91                        _wrapper.appendChild(_instreamArea); 
    7792                } 
    7893                 
     
    471486                        return false; 
    472487                } 
    473                  
     488                ///             public function setupInstream(_instreamDisplay:DisplayObject, plugin:IPlugin):void { 
     489                 
     490                this.setupInstream = function(instreamDisplay) { 
     491                        _instreamArea.style.display = "block"; 
     492                        _box.style.display = "none"; 
     493                        _instreamArea.appendChild(instreamDisplay); 
     494                } 
     495                 
     496                ///                     public function destroyInstream():void { 
     497                var _destroyInstream = this.destroyInstream = function() { 
     498                        _instreamArea.style.display = "none"; 
     499                        _box.style.display = "block"; 
     500                } 
    474501        }; 
    475502         
  • branches/fl5_instream/js/src/jwplayer.js

    r2042 r2043  
    1111var $jw = jwplayer; 
    1212 
    13 jwplayer.version = '5.9.2042'; 
     13jwplayer.version = '5.9.2043'; 
    1414 
    1515// "Shiv" method for older IE browsers; required for parsing media tags 
  • branches/fl5_instream/js/test/examples/instream.html

    r2041 r2043  
    2323            document.write("<h1>" + document.title + "</h1>"); 
    2424        </script> 
    25         <p> 
    26             This sets up a player for IE9, FF, Chrome, Safari, and Opera, however, playback will fail in FF and Opera. IE < 9 will simply display "HTML5 Player should replace this". 
    27         </p> 
    28  
    29         <hr/> 
    3025 
    3126          <form> 
     
    238233                        stretching: stretching, 
    239234                        width: playlist == "none" ? 480 : 680, 
    240                                         repeat: repeat 
     235                                        repeat: repeat, 
     236                                        plugins: { 
     237//                                              'hd-2': { file: '/testing/files/oorlogswinter.mp4' } 
     238                                        } 
    241239                    }; 
    242240                    if (skin) { 
     
    254252                                                        {file:"http://content.bitsontherun.com/videos/yYul4DRz-1Lq5Mnwq.webm"} 
    255253                                        ], 
    256                                         duration: 15 
     254                                        duration: 5 
    257255                                }, instreamOptions); 
    258256 
     
    264262                        document.getElementById("instreamInit").style.display = "none"; 
    265263                                        setupEvents(); 
    266          
    267264                                } else { 
    268265                                        alert("Instream Player not present"); 
  • branches/fl5_instream/src/com/longtailvideo/jwplayer/player/JavascriptInstreamAPI.as

    r2040 r2043  
    4747                        try { 
    4848                                // Event handlers 
    49                                 ExternalInterface.addCallback("instream_jwAddEventListener", js_addEventListener); 
    50                                 ExternalInterface.addCallback("instream_jwRemoveEventListener", js_removeEventListener); 
     49                                ExternalInterface.addCallback("jwInstreamAddEventListener", js_addEventListener); 
     50                                ExternalInterface.addCallback("jwInstreamRemoveEventListener", js_removeEventListener); 
    5151                                 
    5252                                // Getters 
    53                                 ExternalInterface.addCallback("instream_jwGetState", js_getState); 
    54                                 ExternalInterface.addCallback("instream_jwGetDuration", js_getDuration); 
    55                                 ExternalInterface.addCallback("instream_jwGetPosition", js_getPosition); 
     53                                ExternalInterface.addCallback("jwInstreamGetState", js_getState); 
     54                                ExternalInterface.addCallback("jwInstreamGetDuration", js_getDuration); 
     55                                ExternalInterface.addCallback("jwInstreamGetPosition", js_getPosition); 
    5656 
    5757                                // Player API Calls 
    58                                 ExternalInterface.addCallback("instream_jwPlay", js_play); 
    59                                 ExternalInterface.addCallback("instream_jwPause", js_pause); 
    60                                 ExternalInterface.addCallback("instream_jwSeek", js_seek); 
     58                                ExternalInterface.addCallback("jwInstreamPlay", js_play); 
     59                                ExternalInterface.addCallback("jwInstreamPause", js_pause); 
     60                                ExternalInterface.addCallback("jwInstreamSeek", js_seek); 
    6161                                 
    6262                                // Instream API 
    63                                 ExternalInterface.addCallback("instream_jwDestroy", js_destroyInstream); 
     63                                ExternalInterface.addCallback("jwInstreamDestroy", js_destroyInstream); 
    6464                                 
    6565                        } catch(e:Error) { 
  • branches/fl5_instream/src/com/longtailvideo/jwplayer/player/PlayerVersion.as

    r2042 r2043  
    33         
    44        public class PlayerVersion { 
    5                 protected static var _version:String = '5.9.2042'; 
     5                protected static var _version:String = '5.9.2043'; 
    66                 
    77                public static function get version():String { 
  • branches/fl5_instream/src/com/longtailvideo/jwplayer/view/View.as

    r2042 r2043  
    613613                } 
    614614                 
    615                 public function setupInstream(_instreamDisplay:DisplayObject, plugin:IPlugin):void { 
     615                public function setupInstream(instreamDisplay:DisplayObject, plugin:IPlugin):void { 
    616616                        _instreamPlugin = plugin; 
    617                         if (_instreamDisplay) { 
    618                                 _instreamLayer.addChild(_instreamDisplay); 
     617                        if (instreamDisplay) { 
     618                                _instreamLayer.addChild(instreamDisplay); 
    619619                        } 
    620620                        try { 
Note: See TracChangeset for help on using the changeset viewer.