Skip to content

Commit 317504d

Browse files
author
Daniel Neto
committed
Add crossorigin attribute to video tag for improved CORS support
1 parent 0a5d839 commit 317504d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

view/videoEmbeded.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@
469469
} else {
470470
?>
471471
<!-- Default video player -->
472-
<video style="<?php echo $embedConfig->getVideoStyle(); ?>" <?php echo PlayerSkins::getPlaysinline(); ?> preload="none" poster="<?php echo $poster; ?>" <?php echo $embedConfig->getVideoAttributes(); ?> class="video-js vjs-default-skin vjs-big-play-centered <?php echo $embedConfig->getVjsClass(); ?> " id="mainVideo">
472+
<video style="<?php echo $embedConfig->getVideoStyle(); ?>" <?php echo PlayerSkins::getPlaysinline(); ?> preload="none" poster="<?php echo $poster; ?>" <?php echo $embedConfig->getVideoAttributes(); ?> crossorigin="anonymous" class="video-js vjs-default-skin vjs-big-play-centered <?php echo $embedConfig->getVjsClass(); ?> " id="mainVideo">
473473
<?php echo getSources($video['filename']); ?>
474474
<p><?php echo __("If you can't view this video, your browser does not support HTML5 videos"); ?></p>
475475
</video>

0 commit comments

Comments
 (0)