IPhone, Mobile Safari, YouTube ... stay on page

Is it possible for the YouTube video to play on the webpage in Safari on the iPhone, and you have a “done” and “video finished” button that send the user to the mobile webpage from which they came?

Currently, it seems to me that I can send them to YouTube.app to watch the video ... but they remain on YouTube.app and are presented with comments on the video and other similar information. Do not want to display this information.

If possible, provide a link to the site with documentation / examples or an example in your answer.

Thank.

+3
source share
1 answer

YouTube IFRAME ( , , ...?) iPhone, , HTML5.

, , YouTube. , -.

:

<iframe
    title="YouTube video player"
    width="480"
    height="390"
    src="http://www.youtube.com/embed/VIDEO-ID"
    frameborder="0"
    allowfullscreen>
</iframe>

, YouTube webapp, , IFRAME ( HTML5 ).

+2

Source: https://habr.com/ru/post/1730268/


All Articles