Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working on an old theme using version -> last modified: 05/01/16 17.43 / Cannot figure out how to get video working on mobile #482

Open
wyclef-thechronic opened this issue Jan 15, 2022 · 0 comments

Comments

@wyclef-thechronic
Copy link

Hi, I am working on an abandoned WP theme that was utilizing this player to play the video in backgrounds. Can't for the life of me figure out why it won't work on mobile. Not clear what version I am working with, says last modified: 05/01/16 17.43 in the non min one, then the min one says 08-01-2016. I updated the min one to the current version and nothing seems to change. Works fine on desktop, was for a WP theme called Jarvis that was pretty popular but has been abandoned.

I see the following relevant code, wondering if anyone has any insight here? While old, the site functions fine outside of this issue, would love to get it sorted so the video plays on mobile. Thanks!

<?php $detect = new Mobile_Detect;
	         
 if($smof_data['rnr_home_type']=="Video") { 
	   if($smof_data['rnr_home_video_type']=="youtube") {  ?>   
       
          <div id="home-background-video" class="rnr-video"></div>
        <?php if(!$detect->isMobile()) { ?>
          <a href="#" class="rnr-video-control rnr-mute">Unmute</a>
		<?php } ?>
      <?php } else if($smof_data['rnr_home_video_type']=="vimeo") {  ?>  
          <div class="home-background-vimeo rnr-video" data-vimeo-mute="<?php $smof_data['rnr_video_mute']; ?>"></div> 
      <?php } ?>
            
       <?php } ?>

<?php if($smof_data['rnr_home_type']=="Video") { ?>

        <a id="rnr-background-video" class="rnr-video-player" data-property="{ videoURL : '<?php echo $smof_data['rnr_home_video_id']; ?>' , containment : '#home-background-video' , mute : <?php echo $smof_data['rnr_video_mute']; ?>, startAt : 0.1, stopAt : 0, opacity : 1, optimizeDisplay: true, autoPlay : true, vol: 100, showControls: false, loop: <?php echo $smof_data['rnr_enable_video_loop']; ?>}"></a>	            
 <?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant