A better free video player such as Google’s Exoplayer has always been missing from AppInventor based platforms. But now its here and its free and open source.
With the new release of Version 1.0.2, the extension has been seprated into two extensions namely core and ui. This is done to separate ui from core functionality.
Create an instance of exoplayer
Get instance of exoplayer to use in exoplayer ui.
Add a new media item to the player.
Remove media item at a specific index.
Clear all media items.
Stop media playback
Convert milliseconds to time string.
Current position of media.
Current media duration.
Check if current media is loading.
Check if media is currently playing
Should automatically play media when ready.
Create player view in a layout.
Create styled player view.
Show or hide player controls
Set whether to show an image when playing an audio file.
Set default thumbnail in case if there is no thumbnail in media metadata, the player will show this thumbnail. It works only for audio files.
Set repeat toggle modes. This will show/hide repeat toggle button.
Set when to show loading progress indicator
Set video resize mode
Automatically show controller when media is interupted during playback.
Milliseconds after which the controller should hide.
Hide controller on touch.
Whether to use default controller or not.
Enable/Disable controls animation.
AIA File : Exoplayer Modules Test
Note : You need to upload icon files with the exact names as of the icons given in this zip :
I have made this project open-soure so other developers can benefit from it and make contributions. This initial release is a gateway to whole new opportuinities. A lot of cool and awesome stuff is coming and I would really love to see your contributions to it as well. Make sure to star the repo.
The UI library that is being used in the extension is also open source. You can create your own custom user interfaces using this module.