video autoplay?

Post

Posted
Rating:
#5940 (In Topic #1233)
The tag below works while editing but does not when the page is saved and viewed.

Code

<video autoplay="true" src="uploads/filedump/videos/video1.mp4">&nbsp;</video>
Is there a way to get this functioning?

Post

Posted
Rating:
#5941
Hi,

A few thoughts…

  1. Upon testing, I had no issues with the HTML integrity being maintained when using the editor, saving, and coming back. If there's an actual HTML integrity issue, it's likely a result of using a non-admin user with limited privileges, and the HTML being not in the allowed white-list.
  2. I see you have a relative URL in your code. That will work in WYSIWYG, as that has an HTML <base> element providing a base URL the same as Composr's base URL. But generally speaking, the web browser will have a base URL that is different on different pages. You should use an absolute URL (i.e. start http:// or https://) so that it works in any situation.
  3. Firefox was allowing playback in WYSIWYG for me but not on the site. There was a warning in the console about the site not being authorised to play. Chrome had no issue. So if you happen to be using Firefox (or other browsers with other settings to my Chrome test) it may simply be blocked due to a browser's "don't annoy the user" lock.

Post

Posted
Rating:
#5943
Thanks….works fine now in chrome and ie but for firefox, I had to change the default browser options to get it to work.

Since most of the users on our site are "seniors", we decided against using the autoplay.

So much to learn here… :)
1 guest and 0 members have recently viewed this.