video autoplay?
Posted
#5940
(In Topic #1233)
Code
<video autoplay="true" src="uploads/filedump/videos/video1.mp4"> </video>
Posted
A few thoughts…
- 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.
- 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.
- 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.
0 guests and 0 members have recently viewed this.