A
A
Andrey2016-11-10 14:10:49
Ruby on Rails
Andrey, 2016-11-10 14:10:49

How to implement a video player?

How to implement a field for entering a link from YouTube, which is then converted into a video player on the view page? Maybe just post a link.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anna Buyanova, 2016-11-10
@andreychumak

I did it with the help of this module
stackoverflow.com/questions/5909121/converting-ar...
, which converts the YouTube link to acc. player code. The user can enter as a link from the address bar of the browser. and a link from the "share" block on the video page.
(essentially the same as in the previous answer, only this is ready-made code)

T
TyzhSysAdmin, 2016-11-10
@POS_troi

We carefully look at the YouTube player embed code, for example for the video https://www.youtube.com/watch?v=RnAEp_O3jgw (the first one that came across)
And immediately everything is clear.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question