Post by trixiemay » Wed Apr 12, 2023 7:49 am

OC3.0.3.2
So this is the process: customer buys any number of video tutorial modules > modules appear on customers page but appear as embedded YouTube videos instead of digital download link. Client prefers the option to avoid people sharing the files if they are downloaded.
Is this possible?
thanks

___________________________________________
"Speak softly but carry a big stick" :crazy:


Active Member

Posts

Joined
Thu Mar 09, 2017 2:53 pm


Post by thekrotek » Wed Apr 12, 2023 1:55 pm

You can't embed Youtube videos and disable their sharing at the same time.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by TMD Extension @ » Wed Apr 12, 2023 6:44 pm

Disabling the share means embedding won't work for youtube videos.

Regarding the video, treat it as a product, you can attach it to the order and make it disabled for customers who did not order the
There are many streaming sites I saw, on which only part of the video gets downloaded while watching the video. Even customer gets the url of the video, it is hard to download the entire video once. customer will able to download part of the video. They must be a good programmer to do so.

Image

Thanks & Regards
Sehaj Kaur
TMD Extensions
Contact Us For Customisations


Active Member

Posts

Joined
Thu Mar 17, 2022 12:59 pm

Post by paulfeakins » Wed Apr 12, 2023 7:22 pm

thekrotek wrote:
Wed Apr 12, 2023 1:55 pm
You can't embed Youtube videos and disable their sharing at the same time.
I think you misunderstood, it seems to be the OP is worried about downloaded files being shared and that's why they want to embed.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by paulfeakins » Wed Apr 12, 2023 7:23 pm

trixiemay wrote:
Wed Apr 12, 2023 7:49 am
embedded YouTube videos
...
Is this possible?
Well yes, obviously, with some custom development.

If you have a client, presumably you are a developer who can do this?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by paulfeakins » Wed Apr 12, 2023 7:26 pm

trixiemay wrote:
Wed Apr 12, 2023 7:49 am
embedded YouTube videos ... to avoid people sharing
I mean you should also perhaps consider that if they're on YouTube they will be public.

You could host them on your server and embed them on the page, which would be better, but wouldn't prevent them being saved by someone who knew what they were doing.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by by mona » Wed Apr 12, 2023 10:49 pm


DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by johnp » Thu Apr 13, 2023 4:58 am

You need to use a service such as this:

https://streamingvideoprovider.com

I have a client that uses them. They're very good.
Last edited by johnp on Thu Apr 13, 2023 6:02 am, edited 1 time in total.

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by trixiemay » Thu Apr 13, 2023 5:36 am

Thanks for your responses.
I managed to have ai generate this:

Code: Select all

// Check if the file being downloaded is a video file 
if (pathinfo($filename, PATHINFO_EXTENSION) == 'mp4') { 

// Display the embedded video player echo '<iframe width="560" height="315" src="https://www.youtube.com/embed/VIDEO_ID" frameborder="0" allowfullscreen></iframe>'; } else { 
// Display the download link echo '<a href="' . $download['href'] . '">' . $download['name'] . '</a>';

___________________________________________
"Speak softly but carry a big stick" :crazy:


Active Member

Posts

Joined
Thu Mar 09, 2017 2:53 pm

Who is online

Users browsing this forum: No registered users and 19 guests