I'm new to software licensing and open source so I'm having a difficult time wrapping my head around understanding how it works even after reading existing posts that discussed similar if not the same question, so I apologize if it seems redundant or nonsensical.
My project uses the Youtube Iframe API along with code snippets that handle interactions with the API from their documentation (https://developers.google.com/youtube/iframe_api_reference). The code is licensed under Apache 2.0 and the Youtube Iframe API embeds script into my project when it runs, which I assume is also licensed under Apache 2.0.
These code snippets are tightly coupled within my own code in a single file instead of being separated into its own file. Between a license file, a notice file, and comments attributing the source and mentioning the license of the source, which ones do I have to include? Also, if I were to make my project public or have it distributed non-commercially, can I use 2 different licenses (MIT license for my own code and Apache 2.0 for the code from youtube) or do I have to use the license from the code snippets that are already licensed?
-
2Have you tried to use the search engine of this site? How is your question different from the existing answered questions?Martin_in_AUT– Martin_in_AUT2025年03月15日 07:59:03 +00:00Commented Mar 15 at 7:59
-
I have, but not that exact search query so it might not have shown as much hits, so I've mostly been going off of what I could find from the related section, thanks! I did find a few older post from the softwareengineering stackexchange that seems relevant to my question, but I'm not sure if they still hold up a decade later. softwareengineering.stackexchange.com/questions/297217/…, softwareengineering.stackexchange.com/questions/220068/….leo_jg– leo_jg2025年03月15日 11:15:30 +00:00Commented Mar 15 at 11:15
-
1But I'm guessing since the contents of the license itself hasn't changed since 2004, that shouldn't be a concern?leo_jg– leo_jg2025年03月15日 11:23:46 +00:00Commented Mar 15 at 11:23
-
Bart's answers are usually profound and high quality. So I guess you found what you need. I will recommend to close this question.Martin_in_AUT– Martin_in_AUT2025年03月16日 09:49:46 +00:00Commented Mar 16 at 9:49
-
1I’m voting to close this question because the OP has stated that (s)he has found an answer among other Stack Exchange questions.Martin_in_AUT– Martin_in_AUT2025年03月16日 09:51:22 +00:00Commented Mar 16 at 9:51