Configure Video Feed View
Integration
Add to Layout
<com.firework.videofeed.FwVideoFeedView
android:id="@+id/videoFeedView"
android:layout_width="match_parent"
android:layout_height="match_parent" />Initialize
class MainActivity : AppCompatActivity() {
private lateinit var videoFeedView: FwVideoFeedView
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
videoFeedView = findViewById(R.id.videoFeedView)
// Simple initialization with defaults
videoFeedView.init()
}
override fun onDestroy() {
videoFeedView.destroy()
super.onDestroy()
}
}Initialize with ViewOptions
Configuration Options
Feed Source (BaseOption)
Layout Configuration (LayoutOption)
Feed Layout Types
Spacing and Appearance
Title Position
Title Configuration (TitleOption)
Gradient Background
Player Configuration (PlayerOption)
CTA Configuration (CtaOption)
Ad Badge Configuration (AdBadgeOption)
Chat Configuration (ChatOption)
Feed Refresh
Feed State Monitoring
Feed View State Listener
Error Listener
Feed Item Click Listener
Lifecycle Management
Destroy in Activity
Destroy in Fragment
Complete Configuration Examples
Grid Layout Feed
Horizontal Story Feed
Product Video Gallery
Important Notes
See Also
Last updated
Was this helpful?