Open Fullscreen Player
Overview
Usage
1. Start Player with URL
val viewOptions = ViewOptions.Builder()
.playerOption(
PlayerOption.Builder()
.showShareButton(true)
.enablePipMode(true)
.build()
)
.build()
val result = FireworkSdk.startPlayer(
viewOptions = viewOptions,
url = "https://your-video-url"
)
when (result) {
is PlayerLaunchResult.Success -> {
// Player launched successfully
}
is PlayerLaunchResult.Failure -> {
// Handle launch failure
Log.e("Player", "Failed to launch player: ${result.message}")
}
}2. Start Player with Feed Configuration
Using Kotlin DSL
Launch Result
Handling Results
Configuration
Player Appearance
Content Source
Picture-in-Picture
Player Launch Modes
Important Notes
Comparison with Other Widgets
Feature
FwVideoFeedView
FwStoryBlockView
startPlayer()
See Also
Last updated
Was this helpful?