Welcome to TalkGraphics.com
Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jan 2015
    Location
    San Antonio, Texas
    Posts
    85

    Default limiting YouTube viewer options

    Wondering about options to limit or avoid some options to Viewers when they go to watch a YouTube video.

    Main question here is, if we link to a video on a person's YouTube channel, after a person uses our link to watch that video, how can we avoid viewers from stumbling in to other videos on that person's channel ?

    I'm sure others have found a video on someone's YouTube channel and you watch it. But after you see others to watch other videos on that person's channel, and many are of different topics.
    ...you watch a video of a hot air balloon event, after watching you get to see other videos of that person's channel, like one from a car race, one from a piano concert, two from family parties, one from a dark off topic exhibit.

    So from a hobby club site, want to link to just the single video, they said we could share.

    Seem to recall an option, but just not finding how, to open or pop up the video maybe in a window, that has NO options to see other videos on that channel.

    thanks!

  2. #2
    Join Date
    Dec 2018
    Location
    Australia
    Posts
    1,965

    Default Re: limiting YouTube viewer options

    If you have their permission, just download the YouTube video and put it on your own server.

    Credit the YouTube channel by making a direct link that opens in a new tab.

    It's been a while since I hosted a video and there's different coding to make the video play, but here's how I do/did it:

    Create a placeholder and add the following code to the Body section.
    The reference to a 'Poster' is a single image that acts as the first frame. If you don't want a specific image you can delete the whole line.

    Code:
    <video controls="controls" playsinline controls autoplay disablepictureinpicture 
    poster="https://my-domain.com.au/sub-folder/Name-of-Poster.jpg" 
    width="100%" height="100%">
    <source src="https://my-domain.com.au/name-of-video.mp4" 
    width="100%" height="100%" type="video/mp4" />

  3. #3
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    18,694

    Exclamation Re: limiting YouTube viewer options

    I thought that I had found an alternative YT player that does just that.
    Sadly, I found it had porn links for "adverts" but only on my phone as I block such links on my PC with uBlock Origin.
    It would be offensive to offer such guff to any visitor.

    I tried with my favourite YT video: https://www.youtube.com/watch?v=B1J6Ou4q8vE
    You instead use ..www.nsfwyoutube.. or ..im.nsfwyoutube.. for mobiles.
    If you are experimenting, go ahead but do not offer for a live site.

    I tried to hide the unwanted bits:
    Code:
    <iframe id="nsfw" src="https://www.nsfwyoutube.com/watch?v=B1J6Ou4q8vE" width=100% height=100% scrolling="no"></iframe>
    <style>
    #nsfw {
        width: 100%;
        height: 420px;
        overflow: hidden;
        margin-top: -320px;
    }
    </style>
    You have to position it carefully on the page so I ended chopping out the margin-top and placing a cover (navbar?) over the IFRAME.
    It sort of works but remember the crap is still being downloaded.

    if anyone has found a benign player that can offer alternative URLs, do let us know.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  4. #4
    Join Date
    Jan 2015
    Location
    San Antonio, Texas
    Posts
    85

    Default Re: limiting YouTube viewer options

    Folks,

    To clarify... my primary hope here is, to avoid the option for viewers to get that person's channel and see other videos they have available.

    In past I would open the videos in a window and have an 'EXIT' button, along with big text that says to 'not click any of the button from YouTube'. It works until people click one of those buttons, stumble in to a channel from the other person.


    Chris, download and place on our own channel might have to be the course, if none else.
    Acorn & Chris, not sure is that code just opening a window to play in, but still allows for the common YouTube buttons to show and be clicked ?


    Seems have seen on some sites, often business, where there is a YouTube info video but no YT buttons or way to play the other videos on that site (good or bad, personal or business), so the viewer can only play and close the window, lacking common YouTube buttons / options.

  5. #5
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    18,694

    Default Re: limiting YouTube viewer options

    Frolin, to block YT Buttons, you place the IFRAME under a 99% Transparent block.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  6. #6
    Join Date
    Dec 2018
    Location
    Australia
    Posts
    1,965

    Default Re: limiting YouTube viewer options

    I still say the time and effort put into hiding YouTube would be better, and a lot less effort, put into hosting the video yourself.

    The example below was literally made whilst drinking a coffee. The whole page, including finding the write ups took just a little longer than cloning the Windows 11 drive I was waiting for.

    >>> AUZLINK <<< and click FROLIN. The video has none of YouTubes 'now watch this' or 'here's more' at the end of the clip, nor can you scroll to see comments and other offered content. It's just the clip and nothing but the clip, yer 'onner.

  7. #7
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    18,694

    Default Re: limiting YouTube viewer options

    Quote Originally Posted by Chris M View Post
    I still say the time and effort put into hiding YouTube would be better, and a lot less effort, put into hosting the video yourself.
    The example below was literally made whilst drinking a coffee. The whole page, including finding the write ups took just a little longer than cloning the Windows 11 drive I was waiting for.
    >>> AUZLINK <<< and click FROLIN. The video has none of YouTubes 'now watch this' or 'here's more' at the end of the clip, nor can you scroll to see comments and other offered content. It's just the clip and nothing but the clip, yer 'onner.
    Chris, I can only agree until you find the file(s) are too big or downloads are blocked.
    I took the OP ask to be focused on YT as the host as @Frolin said he had permission to 'share'; download may then become awkward.

    You can avoid YT offerings by stopping one second before the end.

    In passing, IFRAMEs that are not hosted by you cannot be manipulated so the really techie approach is to load the IFRAME contents into you page's DOM and then you can manipulated everything and anything.

    The easiest option is to just offer the YT link itself and then it is outside the site's domain and the viewer simply endures the YT garbage, the same as always.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  8. #8
    Join Date
    Jan 2015
    Location
    San Antonio, Texas
    Posts
    85

    Default Re: limiting YouTube viewer options

    Chris,

    Thanks for this option and the code.

    I've tried using this code a couple times, in recent days, and each time when I go to Preview the icon I use for a Widget is blocked out and the button does not respond.

    The initial click sometimes will pop up a small overlay with the word 'play' in it, then go away and does not come back.

    I used your code exactly (which may not link to an actual picture or video), and with my YouTube file, and also removed the 'poster' line as you said, same results each try.

    Have used these icons for widgets for links and other html code in the body setting, no issues.

    Any thoughts ?

    Click image for larger version. 

Name:	Xara_widget-screen.jpg 
Views:	16 
Size:	202.4 KB 
ID:	135690

  9. #9
    Join Date
    Dec 2018
    Location
    Australia
    Posts
    1,965

    Default Re: limiting YouTube viewer options

    I didn't use a widget, just a rectangle as a placeholder.

    >Upload the video to the same place you upload your website so that it's next to your website pages and the index_html_files folder (usually the public_html folder).
    >Create a rectangle in your Xara project where you want your video to appear.
    >Select the rectangle and click Utilities>Web Properties>Placeholder (tab)>Html Code Body and paste the code.
    >Replace the path (https://auz...) with the path to your video.
    >Using page preview, adjust the placeholder rectangle to your satisfaction.
    >Share with all variants, or copy/paste and adjust as above.
    >Crack a beer, put your feet up, consider what to have for breakfast.

    Attached is a project file with just the placeholder pointing to Anna giving the Albert Hall organ the full beans. May hopefully help you see how simple it actually is.

    Attached ---- Frolin Placeholder.xar -----

  10. #10
    Join Date
    Jan 2015
    Location
    San Antonio, Texas
    Posts
    85

    Default Re: limiting YouTube viewer options

    Chris,

    Thanks, that may explain why using the YouTube link and video is acting odd.
    Have done similar for my own videos, your code and sample gives some better options / appearance.
    This code is good for a one off video file saved on the same site / my own website.

    But my question in this thread is...
    "if we link to a video on a person's YouTube channel, after a visitor uses our link to watch that video, how can we avoid viewers from stumbling in to other videos on that person's channel"


    Looking for options to link to a YouTube video and avoid (hide) the other YT controls and options.


    Frolin

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •