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

Setting the fitted dimensions to the player scene #53

Merged
merged 1 commit into from
Jul 20, 2017

Conversation

nachonet
Copy link

In order to set the accurate size to the SKScene, the scene is created using the information obtained from the AVAssetTrack of the player: the dimensions of the video and the specified transformation (which could be CGAffineTransformIdentity). As a transform is applied the values can be negative so the final size is using absolute values.
Besides that, to prevent exceptionally failures, the previous hardcoded size (1280x1280) was kept.

@nachonet nachonet mentioned this pull request Mar 22, 2017
@thiagopnts thiagopnts merged commit ed29537 into nytimes:develop Jul 20, 2017
@thiagopnts
Copy link
Contributor

makes sense, thanks!

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.

2 participants