0

Am Adding a video using the Quill Editor. When I render it, the video automatically plays. Is it possible to turn off the auto play feature?

This is how quill stores the data and this is the piece of code that runs in full screen in the mobile web view

<iframe class="ql-video" frameborder="0" allowfullscreen="true" src=""></iframe><p><br></p>
Malini
  • 11
  • 3
  • Add HTML button (https://github.com/benwinding/quill-html-edit-button) , so that you can edit the HTML, then you can add set autostart="false" – Ken Lee Dec 25 '20 at 03:13
  • This is a customer facing application and we need to set it programmatically. I tried setting the auto play to false on the iframe and that doesn't work either. – Malini Dec 25 '20 at 03:23
  • If it is customer facing application, then you may need to use text replacement (such as replacing autoplay with blank) – Ken Lee Dec 25 '20 at 03:25
  • This is the data that get stored. I don't see an autoplay tag in there.


    – Malini Dec 25 '20 at 03:47
  • likely that the ql-video is autostart / autoplay. Please remove this class by text replacement – Ken Lee Dec 25 '20 at 03:56
  • Can you please edit your post to show some code for reference? – Harpal Singh Dec 25 '20 at 05:22
  • Does this help? https://stackoverflow.com/a/10772567/3825777 You'll see code there that uses jQuery's attr() and replace() so solve a similar question about playing videos automatically. See if you can create a runnable stack snippet to replace the correct attr for quill with a button. – react_or_angluar Dec 25 '20 at 05:26
  • @KenLee removing the class doesn't help either – Malini Dec 25 '20 at 08:51
  • @HarpalSingh added the snippet code – Malini Dec 25 '20 at 08:51

0 Answers0