in Education by
It is possible to autoplay a regular YouTube video in fancybox by appending ?autoplay=1 to the video URL: video … and … $(document).ready(function(){ $("a.lightbox").fancybox(); }); Unfortunately in some browsers (Chrome, Safari) this doesn't work if the "privacy-enhanced mode" is enabled (youtube-nocookie.com): privacy-enhanced mode video The option autoplay=1 is not fully supported on youtube-nocookie.com. How can I still have the video automatically played in the lightbox with privacy-enhanced mode? Edit (Mar 23): Firefox, Chrome and Safari start playing the video immediately on https://www.youtube.com/embed/zRwBVYjUBOc?autoplay=1 (also without fancybox – just open the url). I found out that Firefox still starts to play the video on https://www.youtube-nocookie.com/embed/zRwBVYjUBOc?autoplay=1 , only Safari and Chrome don't. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Not entirely sure how this youtube-nocookie is supposed to work but you can surely trigger a click with javascript... $('video').click(); If the video is in an iframe, you should still be able to do this; $('iframe').contents().find('video').click();

Related questions

0 votes
    Top 10 Free YouTube Video Downloader [2020 SELECTED]...
asked Oct 27, 2020 in Technology by Editorial Staff
0 votes
    3. The appearance of a web page can also be enhanced by adding______ in a web page Select the correct answer from above options...
asked Dec 2, 2021 in Education by JackTerrance
0 votes
    I have some wizard-like pages in my application, its keeping state while navigating between small steps, the ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 19, 2022 in Education by JackTerrance
0 votes
    Do you think recommendation system in YouTube works on Pattern Recognition Please answer the above question....
asked Aug 23, 2022 in Education by JackTerrance
0 votes
    Ads that play in the beginning, end or the mid of YouTube videos are _______. Display ads In-search ads In-stream ads Overlay ads...
asked Sep 5, 2021 in Technology by JackTerrance
0 votes
    Ads that play in the beginning, end or the mid of YouTube videos are _______. (1)In-stream ads (2)In-search ads (3)Overlay ads (4)Display ads...
asked May 31, 2021 in Technology by JackTerrance
0 votes
    Top 10 Best FREE Online YouTube To MP4 Converter Tools...
asked Oct 27, 2020 in Technology by Editorial Staff
0 votes
    Top 10 FREE YouTube To MP3 Converter [Updated 2020]...
asked Oct 27, 2020 in Technology by Editorial Staff
0 votes
    Write instruction in interactive mode for the following: (i) to display sum of 8,9.0,2*3 (ii) to print sum of 8,9.0,2*3 Select the correct answer from above options...
asked Dec 2, 2021 in Education by JackTerrance
0 votes
    Which of the following is an intensive review performed to confirm compliance with the customer’s security, privacy ... Maturity Review B. Process Audits C. Technical Review...
asked Feb 25, 2023 in Technology by JackTerrance
0 votes
    The Corda vision is a _______ in which all economic factors can transact with full privacy, autonomy, and security, ... logical ledger B. Platform C. Central database D. Network...
asked Feb 23, 2023 in Education by JackTerrance
0 votes
    Security and privacy are less in a ……………… topology. A) Mesh B) Bus C) Star D) Tree Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    Security and privacy are less in a ……………… topology A) Mesh B) Bus C) Star D) Tree Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
...