Positioning (rewinding) when playing RTMP streams (static files, not live) in a VLC player does not work properly.
The problem came to light when developing an Android application for working with an archive of video via RTMP. The application uses the LibVLC player (de.mrmaffen: vlc-android-sdk: 1.9.0). To set the position, use the following code:
if (length == 0f) mMediaPlayer.setTime(position); else mMediaPlayer.setPosition(position / length); If you specify a position to the right of the current one, the player “waits” until it reaches this position, stopping at the last frame and then can start / not start playback from the desired position, and if you specify it to the left of the current one, it will be reset to the current one and continue to play from it .
If you specify a stream of a different format (for example, http://html5demos.com/assets/dizzy.mp4 ), then the position setting works properly. On a PC, in a regular VLC player, the problem is also observed; in other players, rewinding RTMP streams works great.
Is it possible to somehow solve this bug or bypass it and begin to establish position in LibVLC normally?