Player deck layouts (iOS)
Horizontal layout
let layout = PlayerDeckLayout()
// Configure spacing between items
layout.itemSpacing = 16
// Configure content insets
layout.contentInsets = UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10)
let channelID = "<Encoded Channel ID>"
let playlistID = "<Encoded Playlist ID>"
// Create VideoFeedView instance
let playerDeckView = PlayerDeckView(
layout: layout,
source: .channelPlaylist(
channelID: channelID,
playlistID: playlistID
)
)
PlayerDeckSwiftUIView(
layout: layout,
source: .channelPlaylist(
channelID: channelID,
playlistID: playlistID
)
)Last updated
Was this helpful?