Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

传递URL后Seek到指定的时间节点播放播放器状态提供的不正确 #35

Open
zjinhu opened this issue Sep 30, 2024 · 1 comment

Comments

@zjinhu
Copy link

zjinhu commented Sep 30, 2024

        let config = SZAVPlayerConfig(urlStr: url, uniqueID: nil)
        player.setupPlayer(config: config)
        player.seekPlayerToTime(time: Float64(seconds), completion: nil)

这时候func avplayer(_ avplayer: SZAVPlayer, didChanged status: SZAVPlayerStatus)
status只返回loading,而没有playing或者readyToPlay

@eroscai
Copy link
Owner

eroscai commented Oct 24, 2024

你是seekPlayerToTime方法提供的completion里面判断的么?这个方法是用来跳转到指定时间以后停止播放或者自动播放(根据传入autoPlay参数),通常在completion里面去做下一个逻辑处理就好了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants