We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Stop a Youtube or Vimeo video from a puzzle

Home Forums Programming Stop a Youtube or Vimeo video from a puzzle

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #25260

    Hello,
    I’m having a really tough problem for me, and I found no answer so far, even if the problem may seem basic.

    I need to stop a Youtube or Vimeo video, which is nested in div in the index.html

    In the MyProject_app.js I have a function

    On object being pressed, the function is being executed (sure about that), but with no effect on the video. The function comes from some js forum and is believed to work.
    I want the Youtube video to be paused.

    Can you help please? Thank you.

    #25274
    Yuri KovelenovYuri Kovelenov
    Developer

    Hi,

    Not sure what’s wrong. You could try adding ‘console.log()’ to different parts of this function to see what’s going on.

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #25324
    GlifTekGlifTek
    Licensee

    are you sure the syntax / formatting is accurate in this part?…
    ('iframe, video');

    also instead of
    var videos = document.querySelectorAll('iframe, video');

    possibly try
    var videos = window.parent.querySelectorAll('iframe, video');

    • This reply was modified 2 months ago by GlifTekGlifTek.
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.