How to link YouTube videos without captions?

Is it possible to link youtube video in HTML code without showing its signature (subtitles)?

Let's say I have the following video: http://www.youtube.com/watch?v=kTvHIDKLFqc . It has English subtitles by default. However, when linking this video, I want to download it without them. Is it possible to do this with some parameter in the video?

I found this link with a description of how to do this, but it doesn't seem to work. If I try to use the following link format, it will show the credits: http://www.youtube.com/watch?v=kTvHIDKLFqc&cc_load_policy=0 . Doesn't this work or didn’t I understand anything?

+5
source share
5 answers

I found that the documentation is a bit misleading in this setting. & cc_load_policy = 1 does not show closed captions by default, but allows you to switch using the cc button on the control panel the video when it is entered, as shown here -

http://www.google.com/support/youtube/bin/answer.py?hl=en&answer=140174

+5
source

It seems that cc_load_policy is a parameter that takes only 1 as a value, so even if you try to use the values 0 or off to disable captions, it will not affect (at least until today: 2015-05-18 2017-09- 11): https://developers.google.com/youtube/player_parameters#cc_load_policy

2017-09-11 Solution: "Enable enhanced privacy mode"

When you share a video on Youtube using the embed option, you can select the "Enable enhanced privacy mode" checkbox. This will change the URL to another Youtube domain : https://www.youtube-nocookie.com

Just by doing this, even if the user has On labels by default, the nocookie parameter will not read the cookie associated with the user preferences (as if the user does not require captions by default).

I created this codepen example to explain this:

  • Try to play the video ā€œWithout parametersā€, and then the video cc_load_policy=1 (it may not display titles due to user settings, even if the CC button is activated in the latter - red backlight);
  • Then play the video "nocookie domain" and there should be no captions.
  • Try to activate the captions in the video "without parameters" and refresh the page.
  • All videos except the "nocookie domain" video will display captions.

Disclaimer: I saw how this works in Chrome (Firefox and Edge always display captions in the nocookie domain, even in private navigations). If you activate / deactivate signatures manually in the video "nocookie domain", then when you refresh the page, the headers in this domain will be displayed / hidden.

Old material (partial solution for video owners)

cc_lang_pref does not take the value off or off as the value ...

I managed to disable captions / subtitles for the default video language this way only for Safari and IE (I have subtitles in the default language and in English - in my case, Chrome and Firefox seemed to ignore this change, but I suggest making it a shot anyway):

  • On the youtube page, if you go to the Information and settings page and click the Advanced settings tab, set the Video Language to Not applicable .
  • Save and go to the Subtitle and CC page, where a pop-up window will appear explaining that ā€œbefore adding subtitles or CC you have to choose the language of the videoā€ (this does not seem to be the case because they even appear anyway).
  • Choose your default language for the video in the pop-up window: that’s why it understands that you don’t need your default language captions, when the video is in one language, the default is strange, this is a step that will make them not appear, and that’s not because that signatures use the same language.
  • The URL of the video you don’t want to have a signature does not use the cc_load_policy parameter, but you can use cc_lang_pref for the default language, for example: http://www.youtube.com/watch?v=kTvHIDKLFqc&cc_lang_pref=en .

Again, it looks like this only works in some browsers (Firefox and Chrome are not included), but hope this helps ...

+4
source

The site says how to include a headline. He does not talk about disabling signatures. I think it depends on the user's previous choice.

When you embed a video on another site, you can make sure that the captions always appear on the embedded video. To include captions on the video you want to insert, simply add & cc_load_policy = 1 to embed the video code.

+2
source

It is very simple, add the iv_load_policy=3 parameter to your embed code.

0
source

A world to be followed

(Thanks for your efforts, but I found something good not far from this ...)

Ask for language preferences that are not in the translated signatures (for my example, ā€œHeā€ means Hebrew, which was not among the proposed translations of the video.)

Add? Hl = He to the URL, like this:

without it: https://www.youtube.com/watch?v=pRztmbnyV70

and with it: https://www.youtube.com/watch?v=pRztmbnyV70?hl=He

Doing this...? It worked for me on Firefox, Edge and Opera. - Enjoy!

Note: the particle disappears after the page loads ... But the work is done!

0
source

Source: https://habr.com/ru/post/926735/


All Articles