Advertisement
phpface

Untitled

Feb 16th, 2023
882
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.54 KB | None | 0 0
  1. function streamtube_filter_player_container( $player, $setup ){
  2.     return sprintf(
  3.         '<div class="consent-container position-absolute start-0 top-0 w-100 h-100">%s</div>',
  4.         $player
  5.     );
  6. }
  7. add_filter( 'streamtube/player/file/output', 'streamtube_filter_player_container', 2,2 );
  8.  
  9. function streamtube_add_custom_css(){
  10.     ?>
  11.     <style type="text/css">
  12.     .consent-container .videojs-streamtube{
  13.         position: absolute;
  14.         top:0;
  15.         left:0;
  16.         width: 100%;
  17.         height: 100%;
  18.     }
  19.     </style>
  20.     <?php
  21. }
  22. add_action( 'wp_footer', 'streamtube_add_custom_css' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement