Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • VLCKit VLCKit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare
  • Issues 110
    • Issues 110
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VideoLANVideoLAN
  • VLCKitVLCKit
  • Issues
  • #428
Closed
Open
Issue created Sep 15, 2020 by Roen@Roen-Ro

seek position problems

Here is some issues i have found with VLCMediaPlayer

position value issue

position's value of VLCMediaPlayer doesn't change after setting

   NSLog(@"pre position:%.2f",self.player.position); //we suppose it's 0.1
   self.player.position = 0.5; // then i set it to 0.5
   NSLog(@"now position is %.2f",self.player.position); //it's still 0.1, but it should be 0.5

VLCMediaPlayerDelegate issue

after setting a new value with position, i need to know wether it successfully set and when it is updated.

i found the only delegate method got invoked is

- (void)mediaPlayerStateChanged:(NSNotification *)aNotification

and it may be invoked for many times after a single position value setting with the same player's state which is always VLCMediaPlayerStateBuffering along with the same time and position values during those invokes.

I think it would be much better to invoke the other delegate method

- (void)mediaPlayerTimeChanged:(NSNotification *)aNotification

after the seeking position is updated, in this case i will know when the position setting is updated

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking

VideoLAN code repository instance