A native control for playing videos for Titanium. Based on Google ExoPlayer, using Titanium.Media.VideoPlayer API.
- Titanium Mobile SDK 9.0.0.GA or later
Add the module as a dependency to your application by adding a <module>
item to the <modules>
element of your tiapp.xml
file:
<ti:app>
...
<modules>
<module platform="android">ru.netris.mobile.exoplayer</module>
</modules>
...
</ti:app>
Use require()
to access the module from JavaScript:
var ExoPlayer = require('ru.netris.mobile.exoplayer');
The ExoPlayer
variable is a reference to the module. Make API calls using this reference:
var exoplayer = ExoPlayer.createVideoPlayer();
With Appcelerator CLI:
appc run -p android --build-only
With Titanium CLI:
ti build -p android --build-only
Application build could stuck on "Running dexer"
step. To avoid this, increase max memory size for dexer with command:
ti config android.dx.maxMemory 2048M
Sergey Volkov [email protected]
Apache 2.0