Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

New HTML4 <video> tags


Go to End


3 Posts   5738 Views

Avatar
wilsonStaff

Community Member, 143 Posts

6 June 2012 at 1:38am

Hi to all, i want to intergrate videos using HTML5 tags <video src="..." controls></video>

Ive succeeded having the TinyCME accepts

video[src|type]
tags but when i try to add controls to the list like in
video[src|type|controls]

<video src="assets/Uploads/videos/test.mp4" controls></video>

becomes

<video src="assets/Uploads/videos/test.mp4"></video>

so controls is skipped.

Ive tried HTMLVAlidation = false in mysite/_config.php, to no success either.

Thanks!

Avatar
3dgoo

Community Member, 135 Posts

6 June 2012 at 11:58am

What if you insert this?:

<video src="assets/Uploads/videos/test.mp4" controls="controls"></video> 

Avatar
wilsonStaff

Community Member, 143 Posts

6 June 2012 at 1:58pm

Edited: 06/06/2012 2:34pm

Yup! That one works

controls="controls"

Now this...... it refuses poster, even if i added it to the valid elements!

[SOLVED]

Added to valid_elements => video[src|type|width|controls|height|poster]