Created
May 29, 2013 05:34
-
-
Save katapad/5668178 to your computer and use it in GitHub Desktop.
youtube player
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function getType(type:*):String | |
{ | |
var result:String = ''; | |
switch (type) | |
{ | |
case -1: result = YoutubeEvent.UNSTARTED; break; | |
case 0: result = YoutubeEvent.ENDED; break; | |
case 1: result = YoutubeEvent.PLAYING; break; | |
case 2: result = YoutubeEvent.PAUSED; break; | |
case 3: result = YoutubeEvent.BUFFERING; break; | |
case 5: result = YoutubeEvent.VIDEO_CUED; break; | |
} | |
return result; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment