Page 1 of 1

HTML 5 multimedia codes

Posted: 12 Jul 2010, 13:28
by KukY13
Only multimedia BBCodes I see here are some flash embed codes, and there aren't any pure HTML BBCodes!
Let's make some!
Note:
  • These codes can play almost any media format, as long as the user has codecs for it installed.
  • You must link to a file, you can't link to You-tube pages or something like that...
  • Great addition when uploading multimedia files as attachments(Link to ...download/file.php?id=###).
Audio BBCode:
BBCode:

Code: Select all

[audio]{URL}[/audio]
HTML Replacement:

Code: Select all

<audio src="{URL}" controls="controls">Please upgrade to a browser which supports HTML 5.</audio>
Help Line:
Use to play an audio file: [audio]Audio file path[/audio]
Display on posting page: As you want...

Video BBCode:
BBCode:

Code: Select all

[video]{URL}[/video]
HTML Replacement:

Code: Select all

<video src="{URL}" controls="controls">Please upgrade to a browser which supports HTML 5.</video>
Help Line:
Use to play a video file: [video]Video file path[/video]
Display on posting page: As you want...

Re: HTML 5 multimedia codes

Posted: 12 Jul 2010, 13:48
by cisco007
please you have to learn to post a demo of any bbcode you are submmiting!

Re: HTML 5 multimedia codes

Posted: 12 Jul 2010, 13:56
by KukY13
cisco007 ยป 12 Jul 2010, 13:48 wrote:please you have to learn to post a demo of any bbcode you are submmiting!
I know, I'm installing them on my forum just now...
It will look like these:
http://www.w3schools.com/html5/tryit.as ... tml5_audio
http://www.w3schools.com/html5/tryit.as ... tml5_video

Forum demos arriving soon.