Skip to content

Commit

Permalink
CORE-4594 Playlist API integration
Browse files Browse the repository at this point in the history
- Fixed typo on Readme (loadPlaylist instead of loadPlayer)
- Right comment on seek callback
  • Loading branch information
StefanoStream committed Nov 29, 2024
1 parent 8170e41 commit 7a2b39f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7a2b39f

Please sign in to comment.