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

TPE-38 iOS: If resume playback on chromecast using [Play] button of #250

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

Njall2016
Copy link
Contributor

player or player control panel playback starts from the beginning,
media info is lost

player or player control panel playback starts from the beginning,
media info is lost
@@ -214,7 +214,6 @@ - (GCKCastSession *)currentSession {

- (void)setMediaSrc:(NSString *)mediaSrc {
if (_mediaSrc != nil) {
_isChangeMedia = YES;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like you dont need here if & else please make sure to merge it to one line

_isChangeMedia = NO;
} else {

[self setVideoUrl:_mediaSrc startPosition:0 autoPlay:YES metaData: nil];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about this case? when media is not ended and you try to change? did you test it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After change media, wait several minutes and press play button this logic will restart playback from 0. I think it's bug.

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

Successfully merging this pull request may close these issues.

None yet

2 participants