JQuery Mobile Open Video link inside page

I am using jQuery Mobile version 1.1.1

I have a list of links when linking to youTube video.

<ul>
<li><a href="link to youtube video">See Video</a></li>
</ul>

My problem is that when he opens the video page, I can’t go back to the page because there is no back button and it is no longer on the JQM page.

How can I open it so that it either has a return button, to return to the page it has a way to close, so I can return to the application without restarting it?

+1
source share
3 answers

I would suggest using the IFRAME embed method from YouTube:

It can be as simple as setting it up <iframe>as follows:

<iframe id="player" type="text/html" width="640" height="390"
  src="http://www.youtube.com/embed/u1zgFlCw8Aw?enablejsapi=1&origin=http://example.com"
  frameborder="0"></iframe>

API YouTube, . : https://developers.google.com/youtube/iframe_api_reference

API- IFrame YouTube - JavaScript. Flash API- JavaScript-, Flash -, IFrame API . , API, YouTube HTML5- Flash- , Flash.

Src:

+4

HTML, <video> HTML5.

0

@Jasper , iframe embed - . , , . jQuery mobile 1.2.0 ( 2012 .):

http://jquerymobile.com/demos/1.2.0/docs/pages/popup/popup-iframes.html

0

All Articles