Customizing playback resolution
FastPix Player allows to control your video playback resolution so you can deliver an optimized viewing experience. By leveraging attributes like max-resolution
, min-resolution
, and rendition-order
, you can ensure smooth playback tailored to different devices, bandwidth conditions, and user preferences.
1. Setting maximum resolution
The max-resolution
attribute limits the highest resolution the player can use during playback. This is particularly useful for conserving bandwidth on limited connections or maintaining performance on devices with lower processing power.
Example
<fp-player playback-id="your-playback-id" max-resolution="720p"></fp-player>
Use cases:
- Prevent playback at higher resolutions like 1080p or 4K on low-bandwidth networks.
- Ensure consistent quality for viewers with limited screen resolution capabilities.
2. Setting minimum resolution
The min-resolution
attribute enforces a lower limit for video resolution. This ensures that playback never drops below a defined quality threshold.
Example:
<fp-player playback-id="your-playback-id" min-resolution="360p"></fp-player>
3. Define rendition order
The rendition-order attribute defines the priority for resolution selection. Available options include:
- Ascending (
asc
): Prioritize lower resolutions first, it is set by default. - Descending (
desc
): Prioritize higher resolutions first.
Example:
<fp-player playback-id="your-playback-id" rendition-order="desc"></fp-player>
Use case:
- Use ascending for low-bandwidth scenarios where starting from the lowest resolution ensures smoother playback.
- Use descending to prioritize high-quality playback on high-speed connections.
4. Combination of max-resolution and min-resolution
By combining max-resolution and min-resolution, you can define a resolution range that the player must adhere to during playback.
Example:
<fp-player playback-id="your-playback-id" min-resolution="360p" max-resolution="1080p"></fp-player>
Use case:
- Restrict playback to mid-range resolutions (e.g., 360p–1080p) for controlled quality and performance.
- Maintain consistency across devices by preventing the player from exceeding or dropping below specified limits.
5. Set specific playback resolution
The resolution attribute sets the video playback to a specific resolution manually. This bypasses automatic resolution adjustments.
Example:
<fp-player playback-id="your-playback-id" resolution="480p"></fp-player>
Use case:
- Lock the playback to a specific resolution for demos or consistent testing environments.
- Provide uniform video quality for audiences without automatic adjustments.
By using attributes like max-resolution, min-resolution, rendition-order, and resolution, you can fine-tune playback quality to match network conditions, user expectations, and device capabilities. These configurations ensure a flexible yet controlled video playback experience across diverse environments.
Updated 2 days ago