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

More preparation for iOS videos integration #7

Merged
merged 11 commits into from Aug 3, 2016

Conversation

jaredsinclair
Copy link
Contributor

@jaredsinclair jaredsinclair commented Aug 2, 2016

The primary goal was to add play and pause methods to NYT360VideoViewController. This required some new methods and properties in other classes to make it work. I also cleaned up some files I encountered to make the method groupings and variable names easier to follow.

_videoNode.position = CGPointMake(scene.size.width / 2, scene.size.height / 2);
_videoNode.size = scene.size;
_videoNode.yScale = -1;
_videoNode.xScale = -1;
Copy link
Contributor

Choose a reason for hiding this comment

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

For this "child object" initialization, can you please mimic the "scoped object creation & configuration" patter used to create the skScene?

@cdzombak
Copy link
Contributor

cdzombak commented Aug 2, 2016

This looks good to me overall. I would only suggest that the 360PlayerScene initializer can be further cleaned up per https://github.com/nytm/ios-360-videos/pull/7/files#r73247512

@thiagopnts
Copy link
Contributor

LGTM, one question, does controlling the the AVPlayer from outside the SKVideoNode still works?

@cdzombak
Copy link
Contributor

cdzombak commented Aug 3, 2016

LGTM, one question, does controlling the the AVPlayer from outside the SKVideoNode still works?

That has never worked. The SKVideoNode documentation indicating that it does work, is wrong.

@cdzombak
Copy link
Contributor

cdzombak commented Aug 3, 2016

@jaredsinclair 👍 once merge conflict is resolved

@cdzombak cdzombak merged commit 908cd44 into develop Aug 3, 2016
@cdzombak cdzombak deleted the feature/ios-video-integration branch August 3, 2016 21:35
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

Successfully merging this pull request may close these issues.

None yet

3 participants