Skip to content

A native control for playing videos for Titanium. Based on Google ExoPlayer, using Titanium.Media.VideoPlayer API.

License

Notifications You must be signed in to change notification settings

NetrisTV/ti.exoplayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A native control for playing videos for Titanium. Based on Google ExoPlayer, using Titanium.Media.VideoPlayer API.

Documentation

Module API documentation

Requirements

  • Titanium Mobile SDK 9.0.0.GA or later

Example

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();

Build

With Appcelerator CLI:

appc run -p android --build-only

With Titanium CLI:

ti build -p android --build-only

Known issues

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

Author

Sergey Volkov s.volkov@netris.ru

License

Apache 2.0

About

A native control for playing videos for Titanium. Based on Google ExoPlayer, using Titanium.Media.VideoPlayer API.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published