{{Header}} {{title|title= Watching YouTube Videos in {{project_name_long}} }} {{#seo: |description=Using Tor Browser, streaming, MPV or VLC Media Player, other alternatives such as Invidious or downloading. Troubleshooting performance and other issues. |image=Youtubelogo.png }}
Set the Tor Browser [[Tor_Browser#Security_Slider|security slider]] to the "Safer" setting
→ click the "script blocked" icon
→ temporarily allow JavaScript for youtube.com
It is normally unnecessary to allow JavaScript for other domains.
Video playback is usually dysfunctional if the security slider is set to the "Safest" level. Higher security settings might work at a later time, so readers are encouraged to edit this page if the situation changes. In late 2021 it is common for YouTube to report 'suspicious network activity' when attempting to stream videos in Tor Browser (due to the detection of Tor exit nodes in use).
== Invidious ==
It is strongly recommended to utilize [https://redirect.invidious.io/ Invidious] ([https://github.com/iv-org/invidious project homepage]) as an alternative front-end to YouTube. It is recommended to also check the register of [https://docs.invidious.io/instances/#list-of-public-invidious-instances-sorted-from-oldest-to-newest public clearnet Invidious instances] and [https://docs.invidious.io/instances/#tor-onion-services Invidious onion services].
Invidious is more lightweight than YouTube itself and comes with many additional features such as a video download option and onion addresses. Also, it does not present the user with login prompts or terms of service messages.
'''Figure:''' ''Invidious in {{project_name_short}} Tor Browser''
[[File:Invidiousexample.png]]
= Media Player Streaming =
== MPV ==
[[File:Mpvlogo.png|thumb|MPV Icon]]
=== Installation ===
The [[File:Mpvlogo.png|30px|MPV Icon]] MPV video player can be installed to stream videos from Youtube or Invidious without enabling JavaScript.
{{Install Package|package=
mpv
}}
=== Usage ===
After locating the relevant video, copy the URL and run.
{{CodeSelect|code=
mpv your URL
}}
== VLC Media Player ==
[[File:2000px-VLC_Icon.svg.png|thumb|100px|VLC Media Player Icon]]
A simpler option is to use a [[Software#Media_Player|media player]], [[File:2000px-VLC_Icon.svg.png|30px|VLC Media Player Icon]] [[Software#VLC|VLC Media Player]] which comes pre-installed in {{project_name_short}}:
# Locate and copy the relevant video URL.
# Launch VLC Media Player.
# Media
→ Open Network Stream...
→ Paste the URL
→ Play
'''Figure:''' ''YouTube Streaming in VLC Media Player''
[[File:Vlcnetworkstream.png]]
= Troubleshooting =
== General Issues ==
[[File:Troubleshooting-114197640.jpg|thumb|100px|link=Troubleshooting]]
# "Forget" about {{project_name_short}} for a moment and imagine you had never heard of the platform. Test this using the virtualizer software (such as VirtualBox, KVM or Qubes) without {{project_name_short}} being involved first.
# Try a VM other than {{project_name_short}} such as Debian {{Stable project version based on Debian codename}}
.
# If the issue persists, this means the root issue is not caused by {{project_name_short}}. Therefore it is recommended to attempt to resolve the issue as per the [[Self_Support_First_Policy|Self Support First Policy]].
== VirtualBox ==
[[File:Virtualbox_logo.png|thumb|30px|link=VirtualBox|VirtualBox Logo]]
[[File:Virtualbox_logo.png|30px|link=VirtualBox|VirtualBox logo]] VirtualBox users should note that video performance might be slow. For a possible solution, see: {{kicksecure_wiki
|wikipage=VirtualBox/Troubleshooting#Slow_Video_Playback
|text=VirtualBox, Troubleshooting: Slow Video Playback
}}.
== KVM ==
{{kvm_logo}}
See [[KVM#Videos|KVM, Troubleshooting: Videos]].
= See Also =
* [[File:Youtubedllogo.png|30px|yt-dlp logo]] [[yt-dlp|Downloading YouTube Videos in {{project_name_short}} using the yt-dlp
command line downloader]]
= Footnotes =
{{reflist|close=1}}
{{Footer}}
[[Category:Documentation]]