New Dynamic YouTube Gallery - Embed YouTube Playlist, Channel, Live Stream in minutes. Read More

[Solved/Fixed]-Disable Download in mobile form

  • Administrator
  • Administrator's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
  • Posts: 2478
  • Thank you received: 1451

Re: Disable Download in mobile form was created by Administrator

In mobiles, we just give fallback to the mobile browser's built-in video player. So, none of our player settings will work there and the "Download" button must be coming from the mobile browser's video player itself. Try the solution given in this post stackoverflow.com/questions/41115801/in-...ton-for-html-5-video

Note: Our next version will have this fix included by default.
6 years 4 months ago #8877

Please Log in or Create an account to join the conversation.

  • Posts: 3
  • Thank you received: 0

Replied by Fadli on topic Re: Disable Download in mobile form

Dear Admin,

Thank's for fast reply, If i read some article, we can disable download by using this code :
<video width="512" height="380" controls controlsList="nodownload">
    <source data-src="mov_bbb.ogg" type="video/mp4">
</video>
or add css custom :
video::-webkit-media-controls {
    overflow: hidden !important
}
video::-webkit-media-controls-enclosure {
    width: calc(100% + 32px);
    margin-left: auto;
}

But where I must put this code in joomla, to make it's works.

Thank's A lot.
6 years 4 months ago #8878

Please Log in or Create an account to join the conversation.

  • Administrator
  • Administrator's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
  • Posts: 2478
  • Thank you received: 1451

Replied by Administrator on topic Re: Disable Download in mobile form

Kindly try adding your Custom CSS code under Components => All Video Share => Configuration => Custom CSS
6 years 4 months ago #8879

Please Log in or Create an account to join the conversation.

  • Posts: 3
  • Thank you received: 0

Replied by Fadli on topic Re: Disable Download in mobile form

Dear Admin,

I have add css in Components => All Video Share => Configuration => Custom CSS, but it won't works :





Regarsd,
6 years 4 months ago #8880

Please Log in or Create an account to join the conversation.

  • Administrator
  • Administrator's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
  • Posts: 2478
  • Thank you received: 1451

Replied by Administrator on topic Re: Disable Download in mobile form

The proper solution for this would be to add the controlsList="nodownload" attribute to the video element. Our next version will have this added.

As an immediate solution,

1. Open /public_html/administrator/components/com_allvideoshare/libraries/player.php

2. Locate the function named "getHtml5Player"

3. Find,
<video
4. Replace the tag as,
<video controlsList="nodownload"
5. Save the changes and try now.
6 years 4 months ago #8882

Please Log in or Create an account to join the conversation.

  • Posts: 3
  • Thank you received: 0

Replied by Fadli on topic Re: Disable Download in mobile form

Dear Admin,

Thanks, it's solved.

Regards,
6 years 4 months ago #8887

Please Log in or Create an account to join the conversation.

Time to create page: 0.097 seconds

We accept cookies to provide you the best viewing experience. By using our services, you agree to our use of cookies