How to hide the youtube video title? to protect the video url

Q&A about the latest versions
Post Reply
savlinpark
Posts: 9
Joined: Mon Jun 22, 2020 1:34 pm

Tue Aug 25, 2020 10:26 am

I'm working on project with a few youtube video hotspots.
The youtube video has been set to be unlisted and they have to be not shareable by the viewer.
However In the html5 export viewers can click the video title and redirect to the youtube website therefore to obtain the URL of the video.

I'm wondering if there's any way we can hide the title in pano2vr?

Alternatively if there's a way to prevent the viewers from being redirecting to youtube can also be a solution.

btw one thing I tried is to set the youtube video element to be permeable. It doesn't work because the playback control becomes permeable too.

Much appreciated!
User avatar
Tony
Posts: 999
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Tue Aug 25, 2020 2:11 pm

Hi,

You can hide parts of the YouTube video using a bit of CSS but if someone really wants to follow the video back there's not much you can do to stop them from looking in the page code.

Here's a sample: https://p2vr.s3-ap-southeast-2.amazonaw ... index.html

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: http://tonyredhead.com - http://redsquare.com | roundme: http://round.me/@tonyredhead | instagram: https://www.instagram.com/tonyredhead/
savlinpark
Posts: 9
Joined: Mon Jun 22, 2020 1:34 pm

Tue Aug 25, 2020 3:17 pm

Tony wrote:
Tue Aug 25, 2020 2:11 pm
Hi,

You can hide parts of the YouTube video using a bit of CSS but if someone really wants to follow the video back there's not much you can do to stop them from looking in the page code.

Here's a sample: https://p2vr.s3-ap-southeast-2.amazonaw ... index.html

Tony
thanks mate! This looks really close !!

Is there any tutorial I can follow?
I hope to just hide

title
watch later
youtube icon
right click menu

with the rest of the playback control staying intact.
Neal
Posts: 177
Joined: Thu Dec 12, 2013 11:14 am
Contact:

Tue Aug 25, 2020 5:30 pm

If it's really important, the only 100% way is to self-host the video. Then you can have complete control of what is shown.
User avatar
Tony
Posts: 999
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Wed Aug 26, 2020 3:14 am

Hi,

I've attached the text file that contains the code I'm using. That page then loads into the iFrame in the skin. It's a bit of a hack as what we are really doing is stretching the video container and then cropping to the center. You can see the effect in the image below with the red area defining the crop.

video_hide.jpg
video_hide.jpg (206.3 KiB) Viewed 231 times

But as Neal says, self-hosting the video is the way to go.

cheers,

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: http://tonyredhead.com - http://redsquare.com | roundme: http://round.me/@tonyredhead | instagram: https://www.instagram.com/tonyredhead/
savlinpark
Posts: 9
Joined: Mon Jun 22, 2020 1:34 pm

Wed Aug 26, 2020 2:42 pm

I get it. Self hosting might be my best choice. Thanks Tony and Neal!
Post Reply