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

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

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: 1342
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

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: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
User avatar
savlinpark
Posts: 12
Joined: Mon Jun 22, 2020 1:34 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: 193
Joined: Thu Dec 12, 2013 11:14 am
Contact:

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: 1342
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

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 1966 times

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

cheers,

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
User avatar
savlinpark
Posts: 12
Joined: Mon Jun 22, 2020 1:34 pm

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