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.
In our app, we already have the urls we want as
URL
objects, so having to convert them to a string to create aYouTubePlayer.Source
only for it to convert back to aURL
seemed a bit silly, and took extra code. I changedYouTubePlayer.Source.url()
to include versions for both aString
and aURL
with theString
version just calling through to theURL
version.