on 01-08-2015 1:08 PM
Hi all,
suppose I have a youtube video linked in an iframe within an xml view. I start the video, however, when I want to switch to another xml view, i.e. step out of this page, e.g. go to home page, the video playing continues (I have to manually stop it). I'd like to know how to automatically stop the video as soon as another button is clicked (potentially, it would be a button to home page or previous page), eg like in the example below. What do I need to adapt?
http://jsbin.com/bifunazuti/1/
Thanks and regards Daniel
This is not a problem according to SAPUI5.
You should google first.
But here is the solution:
My Steps:
- Google: javascript stop iframe youtube video
- first result: javascript - How to pause a YouTube player when hiding the iframe? - Stack Overflow
- customized the code to following result: http://jsbin.com/ponimururu/2/edit
have a nice day
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.