<iframe> - YouTube Embed privacy question

Hello guys, i’m new in this community.
I have just tried Obsidian since yesterday, watching a lot of videos about it. My goal will be to make easier how i learn different subjects that i found interesting( video games, history, sport…).
My first issue is about including videos in Obsidian. I watched a lot of videos on youtube, and one of my goal was to take notes about different part of the videos i found interesting. And i found how to include videos in my notes, and watching them directly from Obsidian. But what about the information collected by youtube if i watch a video in Obsidian and so the privacy?

After, i found a really cool theme, which is “Reverie”. But i dont know why, when i make different # or ##, it just changes the colour and note the size of the title.

Thank you a lot.

1 Like

videos are embedded with iframe in obsidian which doesn’t support annotations. However you could link your annotations/text with a URL generated by yt player (parameter t at the end):

My annotations about [topic x](https://youtu.be/gVl_em25nDo?t=134)

Or using iframe you can embed the video at a specific time appending the query parameter start to src:

<iframe width="565" height="343" 
src="https://www.youtube.com/embed/gVl_em25nDo?start=68" 
title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

But the whole process is too much cumbersome and laboring for me so copying the URL at a specific time seems the less painful option for me.

1 Like

Hey thanks for using Reverie, I’m the creator of that Theme. Regarding the ## heading colors. That’s on purpose. That’s how I designed the theme to look.

If you don’t like it you could try to change the .css file, to delete the heading colors. Let me know if you need more help doing that, since it can definitely be a bit tricky to learn how to do that


There’s a post in this forum where you can discuss more about my Theme Reverie it’s this one:

1 Like

Thank you for your answer.
In fact, i love the colour Santi, but when i see picture for your theme on github, i see also that a title with # and another ## have not the same size, am i wrong? And in my case they have all the same size, which is strange.

Thank you fascheidt, but my issue was more what type of data youtube will be able to collect if i use iframe? Or maybe it is a stupid issue.

1 Like



To be more precise, i took 2 picture :the first is youe photo in github : it looks like the title have different size. Between Heading 1and Heading 2. But in my photo of my note( yes i’m french XD), you can see my title have the same size. I love the fact that you use different colours
Sorry for my english guys.
Maestrofinn

1 Like

I’ll continue the conversation of my theme in here:

Theme: Reverie (Dark/Light) - #24 by Maestrofinn


Regarding this, is your worry that YouTube / Google will be able to read your notes in Obsidian by using iframe?

Yeah XD, this is exactly what i’m worried about! I dont have any knowledge in informatique. But i know that in a lot of websites, youtube is able to collect data for poeple that come on internet pages where \iframe is used( even if you dont watch the video!) . Is it the same in obsidian with \iframe?

1 Like

Honestly I don’t know too much about the privacy behind iframes.

I’ll change this post’s title so that hopefully someone with more knowledge can find this post

Well, they get the usual stuff, like YT would get anyway when you watch a video. I did a quick check for the headers using https://manytools.org/http-html-text/http-request-headers/ and here’s what they get from my Obsidian (IP address changed):

HTTP header Value
Accept-Language de
Accept-Encoding gzip, deflate, br
Sec-Fetch-Dest iframe
Sec-Fetch-Mode navigate
Sec-Fetch-Site cross-site
Accept text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
User-Agent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) obsidian/0.12.3 Chrome/89.0.4389.128 Electron/12.0.6 Safari/537.36
Upgrade-Insecure-Requests 1
Connection close
X-Accel-Internal /internal-nginx-static-location
X-Forwarded-For 12.34.56.78
X-Real-Ip 12.34.56.78
Host manytools.org
Mod-Rewrite On
Authorization

Interestingly, it sends an Accept-Language: de because my system is set up with a German Linux but my Obsidian set to English!

Obsidian devs, hear me? Bug!

It should send an

Accept-Language: en,de-DE;q=0.7,de;q=0.5,*;q=0.3

in my case (German system, Obsidian English), so that

  • we get the iframe content in the language Obsidian is set to (en), and
  • the real system language (de_DE) as a fallback, then
  • the abbreviated (general) system language (de) as a further fallback!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.