Changeset 1249


Ignore:
Timestamp:
08/30/10 10:59:01 (3 years ago)
Author:
zach
Message:
  • Lower casing file extensions
  • Using correct preload property
Location:
branches/html5
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/html5/jwplayer.html5.js

    r1245 r1249  
    3737        /** Returns the extension of a file name **/ 
    3838        jwplayer.html5.utils.extension = function(path) { 
    39                 return path.substr(path.lastIndexOf('.') + 1, path.length); 
     39                return path.substr(path.lastIndexOf('.') + 1, path.length).toLowerCase(); 
    4040        }; 
    4141         
     
    17011701                                        if (!_start && _container.readyState > 0) { 
    17021702                                                _start = true; 
    1703                                                 //alert(_model.playlist[_model.item].start); 
    17041703                                                _container.currentTime = _model.playlist[_model.item].start; 
    17051704                                                _container.volume = _model.volume / 100; 
     
    18731872                _embed = function(playlistItem) { 
    18741873                        var vid = _container.ownerDocument.createElement("video"); 
    1875                         if (vid.autobuffer) { 
    1876                                 vid.autobuffer = _model.config.autoplay; 
    1877                         } else if (vid.autoplay) { 
    1878                                 vid.autoplay = _model.config.autoplay; 
    1879                         } 
     1874                        vid.preload = "none"; 
    18801875                        vid.loop = _model.config.repeat; 
    18811876                        for (var sourceIndex in playlistItem.levels) { 
  • branches/html5/src/html5/jwplayer.html5.mediavideo.js

    r1245 r1249  
    297297                _embed = function(playlistItem) { 
    298298                        var vid = _container.ownerDocument.createElement("video"); 
    299                         if (vid.autobuffer) { 
    300                                 vid.autobuffer = _model.config.autoplay; 
    301                         } else if (vid.autoplay) { 
    302                                 vid.autoplay = _model.config.autoplay; 
    303                         } 
     299                        vid.preload = "none"; 
    304300                        vid.loop = _model.config.repeat; 
    305301                        for (var sourceIndex in playlistItem.levels) { 
  • branches/html5/src/html5/jwplayer.html5.utils.js

    r1239 r1249  
    1616        /** Returns the extension of a file name **/ 
    1717        jwplayer.html5.utils.extension = function(path) { 
    18                 return path.substr(path.lastIndexOf('.') + 1, path.length); 
     18                return path.substr(path.lastIndexOf('.') + 1, path.length).toLowerCase(); 
    1919        }; 
    2020         
Note: See TracChangeset for help on using the changeset viewer.