Android Question Needed for ExoPlayer - help!

almontgreen

Active Member
Licensed User
Longtime User
There are three things that would make my life so much easier if added to the Exoplayer:

Player1.Framerate 'Return the frame rate of the loaded file. optionally set the frame rate if possible.

Player1.playtotime(time As milliseconds) '(reports completed and stops at indicated time - would be so awesome if it worked playing in reverse too!)

Player1.playspeed(percentage As percentage of normal speed) 'if setting framerate isn't possible both get and set

this could be limited to locally loaded files if necessary. I'd totally donate to add these.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
1. With this code you can access the video format:
B4X:
Dim VideoFormat As JavaObject = player1
VideoFormat = VideoFormat.GetFieldJO("player").RunMethod("getVideoFormat", Null)

You can use VideoFormat.GetField to access the various fields documented here: http://google.github.io/ExoPlayer/doc/reference/
It is not possible to change the video frame rate.

2. You can use CallSubPlus to pause playback after a set period.
3. It is not supported. Maybe with a custom solution.
https://github.com/google/ExoPlayer/issues/1216
 
Upvote 0

almontgreen

Active Member
Licensed User
Longtime User
Does there need to be initialization? I'm getting an error with the two lines of code example above. java object initialization?


Been reading your links and struggling. I'll keep at it but I'm thinking I might want to invest in some help to customize Exoplayer...

CallSubPlus probably not ideal but I will try! Thanks!
 
Last edited:
Upvote 0
Top