Last active
October 27, 2018 14:44
-
-
Save marchbold/946957c41e0f4d0f19a2 to your computer and use it in GitHub Desktop.
Playing a packaged file in an embedded player with the Media Player
This file contains hidden or 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
var path:String = File.applicationDirectory.nativePath + File.separator + "example.mp4"; | |
MediaPlayer.init( APP_KEY ); | |
if (MediaPlayer.isSupported) | |
{ | |
MediaPlayer.service.createPlayer( path, 0, 0, 640, 480, false, MediaPlayer.CONTROLS_EMBEDDED ); | |
MediaPlayer.service.play(); | |
} | |
// com.distriqt.MediaPlayer |
Do you have a preview print from this player running?
Can i play remote video with this ane? (vimeo, youtube videos)
can i play music from my LOCAL MUSIC FROM MY PHONE?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://airnativeextensions.com/extension/com.distriqt.MediaPlayer