V1.0.4 Exoplayer for AppInventor | Play media with Google's Exoplayer

Fix Common Issues

1- Player won't work after screen off or app is minimized

You can easily fix this issue by using the blocks given below :

2- How to add subtitles

Add a new media item to playlist. You can use this block to add multiple media items which are then managed by the player in the form of playlist. For subtitles, you need to pass in a list of subtitles. Below is a detailed guide for adding subtitles.

To add subtitles there are two ways :


Dictionary Block

You can pass a list of subtitles by using dictionary blocks.
Here only two parameters are required :
1- path
2- mime_type

And the rest of the parameters are optional and you can skip them.


JSON String


Available Selection Flags For Subtitles

3 Likes