Android Question video speed control

malci

Member
Licensed User
Longtime User
Hi!

In my application I want to play the video as it changes the playback speed.

B4X:
Sub Globals
    Dim Video As VideoView
    Dim timer1 As Timer
    Dim Button1 As Button
....
...
end sub

Sub Timer1_Tick
        Video.Pause
        Video.Position=Video.Position + 10
End Sub

Sub Button1_Click
  Video.Position=Video.Position + 200
end sub

This code work fine on my android phone v4.1, but on my samsung tablet android v.4.0.4 does not work. The image is refreshed only every 2s

The same is if I push the button (every 10 pressures is refreshed)

Does anyone have a solution how to control video speed?

by
Uros
 

almontgreen

Active Member
Licensed User
Longtime User

Using position or other search to location methods don't work well with mp4 files as they are millisecond searches based on the audio track. There is a new library under construction using vitamio that so far doesn't quite work perfectly and the playback is a bit glitchy. But it will have variable speed playback along with a lot of other features when it gets out of beta. There are earlier versions, but I don't think they have speed control.

The thread is here:
http://www.b4x.com/android/forum/threads/vitamiob4a-library-problem-and-version.34394/
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…