Jump to:

23481 Posts in 18951 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » New HTML4 <video> tags

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

Page: 1
Go to End
Author Topic: 1687 Views
  • wilsonStaff
    Avatar
    Community Member
    142 Posts

    New HTML4 <video> tags Link to this post

    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!

  • 3dgoo
    Avatar
    Community Member
    133 Posts

    Re: New HTML4 <video> tags Link to this post

    What if you insert this?:

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

  • wilsonStaff
    Avatar
    Community Member
    142 Posts

    Re: New HTML4 <video> tags Link to this post

    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]

    1687 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.