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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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   5013 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]