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.

General Questions /

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

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

New HTML4 <video> tags


Reply


3 Posts   1955 Views

Avatar
wilsonStaff

Community Member, 142 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, 133 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, 142 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]