Changeset 66 for branches/4.2/yt.as


Ignore:
Timestamp:
09/22/08 11:14:49 (5 years ago)
Author:
jeroen
Message:

string of bugfixes and enahncements to the 4.2 player - see changelog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/yt.as

    r45 r66  
    2929                ytPlayer.addEventListener("onError", onPlayerError); 
    3030                ytPlayer.setSize(320,240); 
     31                ytPlayer.unMute(); 
    3132        } 
    3233}; 
     
    7677 
    7778 
    78  
    7979// Directive forwards 
    8080_as3_to_as2.pauseVideo = function() { ytPlayer.pauseVideo(); }; 
    8181_as3_to_as2.playVideo = function() { ytPlayer.playVideo(); }; 
    82 _as3_to_as2.stopVideo = function(){  
    83         ytPlayer.stopVideo(); 
    84         clearInterval(byteInterval); 
    85 }; 
     82_as3_to_as2.stopVideo = function(){ ytPlayer.stopVideo(); clearInterval(byteInterval); }; 
    8683_as3_to_as2.loadVideoById = function(id,pos) { ytPlayer.loadVideoById(id,pos); }; 
    87 _as3_to_as2.setVolume = function(vol) {   
    88         ytPlayer.unMute();  
    89         ytPlayer.setVolume(vol);  
    90 }; 
     84_as3_to_as2.setVolume = function(vol) { ytPlayer.setVolume(vol); }; 
    9185_as3_to_as2.seekTo = function(pos) { ytPlayer.seekTo(pos,true); }; 
    9286_as3_to_as2.setSize = function(wid,hei) { ytPlayer.setSize(wid,hei); }; 
    93  
    9487 
    9588 
     
    9790_as3_to_as2.connect("_AS3_to_AS2"); 
    9891ytPlayerLoaderListener = {};  
    99 ytPlayerLoaderListener.onLoadInit = function() { 
    100         loadInterval = setInterval(loadHandler,200); 
    101 }; 
     92ytPlayerLoaderListener.onLoadInit = function() { loadInterval = setInterval(loadHandler,200); }; 
    10293ytPlayerLoader.addListener(ytPlayerLoaderListener); 
    10394ytPlayerLoader.loadClip(ytLocation,ytPlayer); 
     95 
Note: See TracChangeset for help on using the changeset viewer.