From 7a2b39f64aeae6b08d8927cb334489f597d4f1e4 Mon Sep 17 00:00:00 2001 From: Stefano Russello Date: Fri, 29 Nov 2024 10:39:19 +0100 Subject: [PATCH] CORE-4594 Playlist API integration - Fixed typo on Readme (loadPlaylist instead of loadPlayer) - Right comment on seek callback --- README.md | 4 ++-- .../Resources/PlayerTestPlaylistControlsAndEventsView.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 12f2957..7059063 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,7 @@ To load a sequential list of videos into the player UI, use the `loadPlaylist` m Example: ```swift -PlaybackSDKManager.shared.loadPlayer( +PlaybackSDKManager.shared.loadPlaylist( entryIDs: listEntryId, entryIDToPlay: "0_xxxxxxxx", authorizationToken: authorizationToken @@ -137,7 +137,7 @@ pluginManager.selectedPlugin?.playNext() // Play the next video pluginManager.selectedPlugin?.playLast() // Play the last video pluginManager.selectedPlugin?.seek(entryIdToSeek) { success in // Seek a specific video if (!success) { - let errorMessage = "Unable to seek to \(entryIdToSeek)" + let errorMessage = "Unable to seek video Id \(entryIdToSeek)" } } pluginManager.selectedPlugin?.activeEntryId() // Get the active video Id diff --git a/Sources/PlaybackSDK/Documentation.docc/Resources/PlayerTestPlaylistControlsAndEventsView.swift b/Sources/PlaybackSDK/Documentation.docc/Resources/PlayerTestPlaylistControlsAndEventsView.swift index 0081747..17a8fe9 100644 --- a/Sources/PlaybackSDK/Documentation.docc/Resources/PlayerTestPlaylistControlsAndEventsView.swift +++ b/Sources/PlaybackSDK/Documentation.docc/Resources/PlayerTestPlaylistControlsAndEventsView.swift @@ -36,7 +36,7 @@ struct PlayerTestPlaylistControlsAndEventsView: View { pluginManager.selectedPlugin?.playLast() // Play the last video pluginManager.selectedPlugin?.seek(entryIdToSeek) { success in // Seek a specific video if (!success) { - let errorMessage = "Unable to seek to \(entryIdToSeek)" + let errorMessage = "Unable to seek video Id \(entryIdToSeek)" } } pluginManager.selectedPlugin?.activeEntryId() // Get the active video Id