Answer the question
In order to leave comments, you need to log in
How to add youtube video to website?
Hello! I am writing one site, and then some problem arose ... I need to add the ability to add the main video from youtube, and not just one video, there must also be the ability to add several, as you already understood, to implement a playlist. I have never used the Youtube API before. Give advice, please.
Answer the question
In order to leave comments, you need to log in
The question was asked a year ago. I think the author has already found the answer, but I will answer for those who are still looking for a solution.
I do so. In the form of adding a video from YouTube to the site, there is only one field where you need to write the video ID. And yet nothing more is needed. I write code for the video list page
. This is a video preview. For the video view page, the code is as follows:
<iframe width="100%" height="350" src="https://www.youtube.com/embed/ID видео" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
1. Choose the player that suits you - videosws.praegnanz.de
2. Study it {API
3. Connect the
video
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question