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

Add additional convenience method for creating a YouTubePlayer.Source from a URL object #87

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

armadsen
Copy link
Contributor

In our app, we already have the urls we want as URL objects, so having to convert them to a string to create a YouTubePlayer.Source only for it to convert back to a URL seemed a bit silly, and took extra code. I changed YouTubePlayer.Source.url() to include versions for both a String and a URL with the String version just calling through to the URL version.

@SvenTiigi SvenTiigi changed the base branch from main to develop April 11, 2024 17:51
@SvenTiigi SvenTiigi added the enhancement New feature or request label Apr 11, 2024
@SvenTiigi
Copy link
Owner

LGTM 👍

@SvenTiigi SvenTiigi merged commit d000d64 into SvenTiigi:develop Apr 11, 2024
3 checks passed
@SvenTiigi
Copy link
Owner

Changes are available with version 1.8.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants