Welcome to TalkGraphics.com
Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    Apr 2015
    Location
    Germany
    Posts
    927

    Default Re: Youtube video on a closed layer keeps playing. Is there a fix?

    Sorry that was a cross post. I didn't know you were just getting to it...

  2. #12
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,895

    Default Re: Youtube video on a closed layer keeps playing. Is there a fix?

    Can you supply a url of one of the videos you're loading?

    EDIT: No problem Siran
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  3. #13
    Join Date
    Apr 2015
    Location
    Germany
    Posts
    927

    Default Re: Youtube video on a closed layer keeps playing. Is there a fix?

    Thank you Egg!
    Have been messing around with the built-in player and would like to post the result.
    Only tried in Xara Version 12.6.2, but tested the result works in FireFox, IE11, Chrome and Opera.
    When the pop-up layer with the video is closed the video is paused.
    When the layer is opened again the video can be resumed.
    Please apologize the very very very very... poor design. It is just a quick hack (to be found at the website body code).
    As it uses the built-in player there has been a support folder created so a ZIP file (including the xar and support folder) had to be attached.

    This sample code should only be used if you only use the built in player. It is not designed to properly filter other video placeholders.
    Attached Files Attached Files
    Last edited by siran; 19 October 2017 at 10:10 PM. Reason: Added note about other video placeholdes

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •