almontgreen Active Member Licensed User Longtime User Jan 10, 2017 #1 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.
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 Jan 11, 2017 #2 1. With this code you can access the video format: Code: Copy 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
1. With this code you can access the video format: Code: Copy 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
almontgreen Active Member Licensed User Longtime User Jan 14, 2017 #3 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: Jan 15, 2017 Upvote 0
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!
Erel B4X founder Staff member Licensed User Longtime User Jan 15, 2017 #4 Call it in the Ready event. Upvote 0