API Overview
Complete reference documentation for IAppPlayer's APIs, including all parameters, methods, events, and configuration options.
Player Configuration
Learn about createPlayer method and all configuration parameters.
- createPlayer method signature
- All parameter documentation
- Configuration objects
- Default values
Controller Methods
All methods available on IAppPlayerController for playback control.
- Playback control methods
- Fullscreen management
- Subtitle and track control
- Advanced features
Event System
Complete list of player events and their parameters.
- Lifecycle events
- Playback events
- UI events
- Error handling
Data Sources
Data source configuration for various video formats and protocols.
- Video format support
- DRM configuration
- Cache strategies
- Network configuration
Getting Started with the API
The most common workflow:
- Create a player using
IAppPlayerConfig.createPlayer() - Get the controller from
PlayerResult.activeController - Listen to events through the
eventListenercallback - Control playback using controller methods
- Release resources with
dispose()
dart
// Basic API usage example
final result = await IAppPlayerConfig.createPlayer(
url: 'https://example.com/video.mp4',
eventListener: (event) {
// Handle player events
},
);
final controller = result.activeController;
controller?.play();
Quick Reference
Need more information? Navigate to the specific sections above or check out:
- Examples - Practical usage examples
- Advanced Features - DRM, custom UI, optimization
- Installation Guide - Setup instructions