> For the complete documentation index, see [llms.txt](https://docs.firework.com/firework-for-developers/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.firework.com/firework-for-developers/ios-sdk/integration-guide-for-ios-sdk/launch-floating-player-ios.md).

# Launch Floating Player (iOS)

We can utilize the `VideoFeedViewController.openVideoPlayer` API with pinned playback mode to directly launch the floating player. The code snippets are:

```swift
let channelID = "Your encoded channel id"
let playlistID = "Your encoded playlist id"
var configuration = VideoFeedContentConfiguration()
VideoFeedViewController.openVideoPlayer(
    source: .channelPlaylist(channelID: channelID, playlistID: playlistID),
    playbackMode: .pinned, // Use pinned playback mode
    feedConfiguration: configuration,
    isPictureInPictureEnabled: true
) { result in
    debugPrint("Opened player with result: \(result)")
}
```
