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

when I set the rate for AVPlayer, it always fails, The reason for the failure is that it keeps calling 【 self._avplayer. play() 】 #253

Open
dosedo opened this issue Jul 4, 2024 · 0 comments

Comments

@dosedo
Copy link

dosedo commented Jul 4, 2024

if (passedTime >= strongSelf.bufferSizeInSeconds || strongSelf._lastBufferTime == strongSelf.maximumDuration || timeRanges.first == nil) && strongSelf.playbackState == .playing { strongSelf.play() }

When playing an HTTP video, always call :【strongSelf. play()】
That is to say, it will always be called:【self._avplayer.play()】

I'm not sure if this logic is correct.

But when I set the rate for AVPlayer, it always fails.

The reason for the failure is that it keeps calling 【 self._avplayer. play() 】

My testing environment is:
iOS 16.7.2
XCode 15.0.1
The latest Player.swift

http link:
let mp4Url = "https://vd3.bdstatic.com/mda-phv1zugg2n3c8n4n/720p/h264/1693358819109409657/mda-phv1zugg2n3c8n4n.mp4?v_from_s=hkapp-haokan-hbe&auth_key=1693663538-0-0-533e7ed71380a893120cc0762bf2b3a0&bcevod_channel=searchbox_feed&cr=2&cd=0&pd=1&pt=3&logid=0338572677&vid=4140107770816422827&klogid=0338572677&abtest=112751_3"

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

1 participant