Last active
March 18, 2025 13:44
-
-
Save proweb/c5b6519078ca3eb7daafbabdc6871c58 to your computer and use it in GitHub Desktop.
Revisions
-
proweb revised this gist
Mar 18, 2025 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ <?php echo VideoJsWidget::widget( [ 'options' => [ 'id' => 'main-video', 'class' => 'video-js', @@ -16,4 +17,4 @@ [ 'src' => Yii::getAlias( '@web/video.mp4' ), 'type' => 'video/mp4' ] ] ] ] ); -
proweb created this gist
Mar 18, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ <?= VideoJsWidget::widget( [ 'options' => [ 'id' => 'main-video', 'class' => 'video-js', 'controls' => true, 'preload' => 'auto', 'width' => '800', 'height' => '400' ], 'jsOptions' => [ // Передаются как параметры скрипта 'aspectRatio' => '16:9' ], 'tags' => [ 'source' => [ [ 'src' => Yii::getAlias( '@web/video.mp4' ), 'type' => 'video/mp4' ] ] ] ] ); ?>