Update dependency SvenTiigi/YouTubePlayerKit to v2 #412
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
from: "1.9.0"
->from: "2.0.0"
Release Notes
SvenTiigi/YouTubePlayerKit (SvenTiigi/YouTubePlayerKit)
v2.0.0
: Version 2.0.0Compare Source
What's Changed
YouTubePlayer.Source
for the most common and well known YouTube URL formats..videos(ids:)
to theYouTubePlayer.Source
allowing to play individual video identifiers as a playlist.YouTubePlayer.Event
as well as to run custom JavaScript code and supply custom HTML code.YouTubePlayer
to gain more insights of the underlying JavaScript communication and stream of events.Migration Guide
When coming from version
1.9.0
or earlier there are two main topics to consider.YouTubePlayer Initialization
In Version 2.0.0 the designated initializer of a YouTubePlayer takes four parameters: a source, parameters, a configuration and a boolean whether logging should be enabled. Previously the player was initialized with just two arguments a source and a configuration.
To differentiate between parameters and configuration, understand that parameters control the behavior and style of the YouTube player, while the configuration is linked to the underlying web view.
You cannot modify the configuration after instantiation; however, it is possible to update the parameters, as shown below:
Async/Await APIs
In version
1.9.0
and earlier, YouTubePlayerKit offered both a completion closure-based API and an async API. Starting with version 2.0.0, only the async variant will be supported as the primary API.In case of an error, most of the functions are typed to throw a
YouTubePlayer.APIError
.This allows you to easily examine the reason for the error, any underlying error, and the executed JavaScript along with its response.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.