What is 'the_smooth_video_player()' function ?
Is a WordPress template tag. You can call it in a template of your current theme.
Is there some parameters can I pass to 'the_smooth_video_player()' template tag ?
Yes, you can, but these parameters are optionnal. These parameters are, in this order :
- Width : to override the default width or specific width of the player. It can be an integer or a percent, '100%' for example (empty by default).
- Height : to override the default height or specific height of the player. It can be an integer or a percent (empty by default).
- Comments : a boolean to indicate if some comments must be written in the HTML source code before and after the player HTML source code (true by default).
- Container : a boolean to indicate if a identified
<div> container must be written in the HTML source code (true by default).
- Before : some HTML source code to add before player HTML source code (empty by default).
- After : some HTML source code to add after player HTML source code (empty by default).
Examples of template tag call :
- Example of a player with a 100% parent width :
<?php the_smooth_video_player('100%'); ?>
- Example of a player with no comments in HTML source code :
<?php the_smooth_video_player('', '', false); ?>
- Example of a player with HTML source code after :
<?php the_smooth_video_player('', '', true, true, '', '<p>Player implemented with Smooth Streaming Video Player plugin for WordPress.</p>'); ?>