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

Video not playing properly, Something break the voice between playing in release 0.2.18 #13

Closed
isandeepj opened this issue Nov 21, 2020 · 8 comments

Comments

@isandeepj
Copy link

isandeepj commented Nov 21, 2020

Kindly check this video https://www.dropbox.com/s/pc4hgxhrylejwj4/rpreplay_final1605605155.mp4?dl=0

Not an internet connection issue and tested speeds.
I have tried to figure out the issue and found continuous call paused state did change. Buffer progress goes 0.9 and after the start with again buffer Progress 0.

If kill the app and open the same video then that video, not an issue. This issue occurs randomly.

case .paused(let playProgress, let bufferProgress):

PlayerView pausedReason waitingKeepUp playProgress: 0.33890865789099006 bufferProgress:0.22409982008568582
PlayerView pausedReason waitingKeepUp playProgress: 0.3794132463531757 bufferProgress:0.22409982008568582
PlayerView pausedReason waitingKeepUp playProgress: 0.4181798884272383 bufferProgress:0.22409982008568582
PlayerView pausedReason waitingKeepUp playProgress: 0.45868613365433153 bufferProgress:0.22409982008568582
PlayerView pausedReason waitingKeepUp playProgress: 0.4979489768182348 bufferProgress:0.22409982008568582
PlayerView pausedReason waitingKeepUp playProgress: 0.5367147905098435 bufferProgress:0.22409982008568582
PlayerView pausedReason waitingKeepUp playProgress: 0.5767231778821885 bufferProgress:0.22409982008568582
PlayerView pausedReason waitingKeepUp playProgress: 0.5918817484047166 bufferProgress:0.5966052498738011
PlayerView pausedReason waitingKeepUp playProgress: 0.6318917925419693 bufferProgress:0.6368626956082787
PlayerView pausedReason waitingKeepUp playProgress: 0.6718993515318604 bufferProgress:0.6718993515318604
PlayerView pausedReason waitingKeepUp playProgress: 0.7106651652234691 bufferProgress:0.6718993515318604
PlayerView pausedReason waitingKeepUp playProgress: 0.7499288367698262 bufferProgress:0.6718993515318604
PlayerView pausedReason waitingKeepUp playProgress: 0.7904350819969195 bufferProgress:0.6718993515318604
PlayerView pausedReason waitingKeepUp playProgress: 0.829696268395915 bufferProgress:0.7904370364617715
PlayerView pausedReason waitingKeepUp playProgress: 0.8689607683247259 bufferProgress:0.7904370364617715
PlayerView pausedReason waitingKeepUp playProgress: 0.9082227831061753 bufferProgress:0.8689618685201724
PlayerView pausedReason waitingKeepUp playProgress: 0.9474864546525325 bufferProgress:0.9082242845493729
PlayerView pausedReason waitingKeepUp playProgress: 0.9879935282620796 bufferProgress:0.9474867005785734
PlayerView pausedReason waitingKeepUp playProgress: 0.18453296056122914 bufferProgress:0.1888711994719062
PlayerView pausedReason waitingKeepUp playProgress: 0.22379580372513236 bufferProgress:0.18950219391915507
PlayerView pausedReason waitingKeepUp playProgress: 0.26305947527148943 bufferProgress:0.18950219391915507
PlayerView pausedReason waitingKeepUp playProgress: 0.301826117345552 bufferProgress:0.18950219391915507
PlayerView pausedReason waitingKeepUp playProgress: 0.34233070580773767 bufferProgress:0.18950219391915507
PlayerView pausedReason waitingKeepUp playProgress: 0.3815943773540947 bufferProgress:0.18950219391915507
PlayerView pausedReason waitingKeepUp playProgress: 0.42085722051799795 bufferProgress:0.38159631887547085
PlayerView pausedReason waitingKeepUp playProgress: 0.46012089206435497 bufferProgress:0.4208587349046713
PlayerView pausedReason waitingKeepUp playProgress: 0.49938373522825824 bufferProgress:0.46012115093387185
PlayerView pausedReason waitingKeepUp playProgress: 0.5386465783921615 bufferProgress:0.46012115093387185
PlayerView pausedReason waitingKeepUp playProgress: 0.5779094215560647 bufferProgress:0.46012115093387185
PlayerView pausedReason waitingKeepUp playProgress: 0.5935658499333412 bufferProgress:0.5977895779132529
PlayerView pausedReason waitingKeepUp playProgress: 0.632330835242496 bufferProgress:0.6372995379179125
PlayerView pausedReason waitingKeepUp playProgress: 0.6715945067888531 bufferProgress:0.6715965130276085
PlayerView pausedReason waitingKeepUp playProgress: 0.7120990952510386 bufferProgress:0.7121015027375451
PlayerView pausedReason waitingKeepUp playProgress: 0.7513635951798497 bufferProgress:0.7513635951798497
PlayerView pausedReason waitingKeepUp playProgress: 0.7889878978500887 bufferProgress:0.7936114239490546
PlayerView pausedReason waitingKeepUp playProgress: 0.8215408431380163 bufferProgress:0.8607104027088106
PlayerView pausedReason waitingKeepUp playProgress: 0.8570767936421647 bufferProgress:0.9178687919729741
PlayerView pausedReason waitingKeepUp playProgress: 0.9281470378855539 bufferProgress:0.9327796761418088

I hope this information will help you fix this issue ASAP.

@isandeepj isandeepj changed the title Video not playing properly, Something break the voice between playing Video not playing properly, Something break the voice between playing in release 0.2.18 Nov 25, 2020
@barotbhavesh
Copy link

barotbhavesh commented Jan 19, 2021

Video stuck when the internet speeds slow At that time I need to display buffer loader so please help me how to set loader when the video goes to buffer.

@wxxsw
Copy link
Owner

wxxsw commented Jan 27, 2021

@barotbhavesh

playerView.stateDidChanged = { [weak self] state in
    guard let self = self else { return }
    
    if case .paused = state, self.playerView.pausedReason == .waitingKeepUp {
        // buffering
    }
}

@wxxsw
Copy link
Owner

wxxsw commented Jan 27, 2021

@sandeep-yudiz Sorry, I did not think of the cause of the problem

@wxxsw
Copy link
Owner

wxxsw commented Jan 27, 2021

Maybe dropbox does not support content-range download

@isandeepj
Copy link
Author

isandeepj commented Jan 27, 2021

I have checked its working fine with this removing this line loader did finishing
Screenshot 2021-01-27 at 1 02 23 PM

@wxxsw
Copy link
Owner

wxxsw commented Jan 27, 2021

Thanks, this inspired me.

@wxxsw wxxsw closed this as completed in 5780f36 Jan 27, 2021
@wxxsw wxxsw reopened this Jan 27, 2021
@wxxsw
Copy link
Owner

wxxsw commented Jan 27, 2021

I tried to fix the problem, but because it was based on guesswork (not reproduced), I'm not sure if it really solved the problem.

@wxxsw
Copy link
Owner

wxxsw commented Jan 27, 2021

release 0.2.19

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

3 participants