Skip to content

Seeking back in time on a ogg/Opus stream does not work with latest MobileVLCKit (3.6.0/3.6.1b1)

Update:
Just found out that there are newer MobileVLCKit versions available at cocoapods.
Wondering why "pod install" installed 3.4.0 instead of 3.6.0...
However, I now tried with 3.6.0 and 3.6.1b1 with the same results as with 3.4.0.

Here is the original text:

Hello,

I am unable to seek back in time of an ongoing ogg/Opus stream by setting the .time property with MobileVLCKit 3.4.0 and Swift on iOS.

Some key facts:

  • Seeking an ogg/Opus stream forwards works as expected.
  • Seeking an ogg/Opus stream backwards does not work. It rather jumps a couple of seconds forwards instead.
  • When playing the same ogg/Opus file locally seeking works back and forth as expected.
  • When playing the same stream with VLC 3.0.20 on macOS seeking back and forth works as expected.
  • Also seeking MP3 streams back and forth works like a charm.

You can use this media file for testing:
https://static.subj.am/rec/dumpfiles/sj/Jordan07/20240818005419_3108cb5a-277d-429b-a74f-34f3c3f0119e_Jordan07.opus

I made a fork of ajithrnayak/VLCKit-Example and added a seeking slider for demonstration purposes:
https://github.com/Daniel-Noethen/VLCKit-Example

I couldn't find a related issue so I hope it is not a duplicate.

Best, Daniel

Edited by Daniel Nöthen
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information