Video Playback Styles in Template
Master video playback with flexible styles for seamless integration
Welcome to Video Playback Styles!
The play_style property is essential in creating engaging and dynamic video content using templates in KonPro. They allow you to control how video elements behave within your AI video templates. KonPro offers four distinct video playback styles: fit_to_scene, freeze, loop, and once.
Video Playback Styles
KonPro offers four distinct video playback styles to control how video elements behave within your templates:
Fit to Scene
The fit_to_scene playback style adjusts the video's playback speed to ensure that its duration matches the scene's duration perfectly.
It might speed up or slow down the video to achieve this synchronization. It is useful when you want your video element to precisely match the scene's timing, maintaining synchronization for a cohesive and seamless viewing experience.
Use case: Perfect for maintaining perfect timing synchronization between video content and scene duration.
Freeze
With the freeze playback style, the video element stops playing once it reaches its end. However, the last frame of the video remains static and is displayed until the end of the video track. There is no continuous loop.
It is employed when you want to emphasize a particular frame or image, and you don't want any further motion.
Use case: Ideal for highlighting specific moments or creating static image effects from video content.
Loop
The loop playback style does exactly what its name suggests. It makes the video element loop continuously until the end of the video track. This means that the video will play over and over again without any interruption.
It is ideal for scenarios where you want a video element to repeat indefinitely, creating continuous motion or animation.
Use case: Perfect for creating continuous background animations or repeating visual effects.
Once
When you select the once playback style, the video element plays through its content just once from start to finish. After the video reaches its end, it stops, and there is no looping.
Use case: Best for one-time demonstrations, tutorials, or when you want to show a complete sequence without repetition.
Usage Examples
Here are practical examples of how to use different playback styles in your templates:
Loop Style for Background Video
{
"name": "background_video",
"type": "video",
"properties": {
"url": "https://example.com/background.mp4",
"play_style": "loop",
"fit": "cover"
}
}Once Style for Product Demo
{
"name": "product_demo",
"type": "video",
"properties": {
"url": "https://example.com/demo.mp4",
"play_style": "once",
"fit": "contain"
}
}Best Practices
Follow these best practices to get the most out of video playback styles:
Choose the Right Style
- Use
fit_to_scenewhen timing synchronization is critical - Use
freezefor emphasis on specific moments - Use
loopfor continuous background effects - Use
oncefor complete demonstrations
Consider Video Length
- For short videos:
loopworks well for repetition - For long videos:
onceorfit_to_sceneare better choices - For precise timing:
fit_to_sceneensures perfect synchronization
Conclusion
Now that you're familiar with the different video playback styles available in KonPro, you can confidently select the style that best suits your template videos. This gives you control over the behavior of the video elements in your scenes and ensures that your videos are engaging and effective.