• Resolved chronoshift

    (@chronoshift)


    The AMP Video player allows videos to be right click/saved as, which I don’t typically allow on my site. I normally use Fluid Player… The easiest solution would be for me to disable video embeds on AMP pages of my site and instead replace it with a button to visit the non-amp version of the page

    Or being able to use Fluid Player or disable saving videos with AMP so easily by just right clicking

    Any solution to this?

Viewing 1 replies (of 1 total)
  • While not familiar with Fluid player and the mode you are using you can use a CSS approach as below to display a video only on your AMP URLs, with a link to your canonical version using rel="noamphtml":

    Add this to a page or post:

    <div class="canonicalonly">
         Video snippet goes here
    </div>
    <div class="amponly">
         AMP specific code goes here. <a href="https://www.mysite.com/url" rel="noamphtml">Example non amp link</a>
    </div>

    Add the below to your themes style.css or preferably a custom plugin.

    html[amp] .canonicalonly{
     display:none;
    }
    .amponly{
      display:none; 
    }
    html[amp] .amponly{
     display:inline;
    }
     

    You could also upload the videos to YouTube and embed into your site.

Viewing 1 replies (of 1 total)
  • The topic ‘Disable AMP Video Embed or Change Player’ is closed to new replies.