J
J
Jedi2018-04-15 03:32:16
YouTube
Jedi, 2018-04-15 03:32:16

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.

  • How should this be implemented?
  • What is bad practice?
  • How should it look in the database?
  • How to implement all this?

Thank you very much :) !

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eric Cuba, 2019-07-05
@PHPjedi

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>

P
Pavel Kornilov, 2018-04-15
@KorniloFF

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 question

Ask a Question

731 491 924 answers to any question