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

Added URLSchemes #59

Merged
merged 1 commit into from Feb 15, 2022
Merged

Conversation

ErrorErrorError
Copy link
Contributor

This pull requests adds the feature from #58. The way you can launch a window using a url scheme would be by specifying the video id in {video-id} on nativeyoutube://video-id/{video-id}.

An example to try: nativeyoutube://video-id/dQw4w9WgXcQ

:)

…ideo-id}` then the app will open a new window plater and play the video.

- Moved `YoutubePlayerViewModel` to `NativeYoutubeApp.swift` since it is needed if a user uses a url to launch app
- Removed `currentPlayer` from `YoutubePlayerViewModel` since it was unnecessary.
@Aayush9029
Copy link
Owner

dQw4w9WgXcQ

That looks very familiar...

@Aayush9029
Copy link
Owner

Also awesome it works pretty well! Great work 🙌🏼

@Aayush9029 Aayush9029 merged commit 843b484 into Aayush9029:main Feb 15, 2022
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

2 participants