www.youtube.com/watch?v=aJOTlE1K90k
<iframe width="560" height="315" src="www.youtube.com/embed/aJOTlE1K90k" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
doesn't work.
UPDATE: i figured it out!
www.youtube.com/watch?v=aJOTlE1K90k
<iframe width="560" height="315" src="www.youtube.com/embed/aJOTlE1K90k" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
doesn't work.
UPDATE: i figured it out!
www.youtube.com/watch?v=tNfGyIW7aHM
For anyone else who wants to know, just insert the url of the youtube video and it will automatically appear as a iframe containing the video.
Anybody know how to insert iframe of iqiyi or tencent vedio, for eg:
www.iqiyi.com/v_19rr009dbo.html
<iframe src="open.iqiyi.com/developer/player_js/coopPlayerIndex.html?vid=3403dab781d9bc6cb07b565eb3d358d6&tvId=1316650200&accessToken=2.f22860a2479ad60d8da7697274de9346&appKey=3955c3425820435e86d0f4cdfe56f5e7&appId=1368&height=100%&width=100%" frameborder="0" allowfullscreen="true" width="100%" height="100%"></iframe>
Currently only Youtube and Vimeo is supported, but pull request that would generalize this is welcome.
We could set data-
attributes in the backend that our JavaScript would be finding and replacing with iframe
for players - enabling us to easily add new video players for other sides from backend code.
Looks useful, marked~
Can you elaborate on which parts need to be adjusted? I want to add some.
This is the file that implements one-boxing logic: github.com/rafalp/Misago/blob/master/frontend/src/services/one-box.js
thanks