Icy Phoenix

     
 

SOLVED HTML5 Video

SOLVED HTML5 Video

Article
Reply with quote    Download Post  
Post HTML5 Video 
 
Hello all.

I would like to add HTML5 video or possibly replace(?) the existing video tag, parameters, etc. in the bbcode file. However, I've no idea where to start or even know if it's possible.

For example, using Firefox or Chrome, I know the code itself can be very simple:

Code: [Download] [Hide] [Select]
<video controls width="" height="">
<source src="path_to_video/some_video.ogv">
</video>

... and by disabling bbcode and html in the post it works. But that's not very practical since you lose your formatting and so on.

Looking at the bbcode.php I'm guessing I would need to define, say, html5video in the array, then in the tag and finally something in the content (parameters) section. And that's where I'm stuck. What would I place for the content?
Example:

Code: [Download] [Hide] [Select]
... array
'html5video' => array('nested' => true, 'inurl' => true, 'allow_empty' => false),
... tag
 || ($tag === 'html5video')
... parameters
elseif ($tag === 'htmlvideo')
                {
                    $html = parameters?
                }


Any suggestions would be greatly appreciated.

Thank you,

Dan



 
nothere - View user's profile Send private message  
nothere [ Thu 16 Aug, 2012 02:48 ]
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us


SOLVED HTML5 Video

Comments
Reply with quote    Download Post  
Post Re: HTML5 Video 
 
LongTail wrote: 
By downloading, I agree to the non-commercial license.

Taking note of the above you should be able to replace the original player with this Player

The thread below could give some idea of how to do it:
http://www.icyphoenix.com/viewtopic.php?f=4&t=8162



 
Joshua203 - View user's profile Send private message  
Joshua203 [ Thu 16 Aug, 2012 16:58 ]
Reply with quote    Download Post  
Post Re: HTML5 Video 
 
there is the option to add custom bbcodes in icy2.0, i havn't looked at it yet but you might be able to use that!

   



 
DWho - View user's profile Send private message  
DWho [ Thu 16 Aug, 2012 17:46 ]
Reply with quote    Download Post  
Post Re: HTML5 Video 
 
You can't add HTML 5 code to a template which is still HTML 4.

First we would need a new HTML 5 style... and considering the amount of files it would require a lof of time to be created.



 
Mighty Gorgon - View user's profile Send private message  
Mighty Gorgon [ Thu 16 Aug, 2012 17:51 ]
Reply with quote    Download Post  
Post Re: HTML5 Video 
 
Hi all,
Thank you for the replies.

@Joshua203. Thank you. I've implemented that player on my site; very cool

@DWho. I didn't know that about custom bbcodes in Icy 2.0. I will have to check it out, thank you!

@Mighty Gorgon. I see your point. Obviously trying to implement such a thing would be way too involved; me not realizing this until you pointed it out. Thank you for your timely and invaluable reply.

I'm quite happy with JW Player as it works well and close to what I wanted in the first place.



 
nothere - View user's profile Send private message  
nothere [ Fri 17 Aug, 2012 22:44 ]
Reply with quote    Download Post  
Post Re: [SOLVED] HTML5 Video 
 
Just for you to know... I have installed jPlayer into Icy Phoenix, because I wanted to use it for AJAX Chat sounds.

You already have the script there... I think it would be easy to integrate it in a BBCode, you can check the developers guide here for further instructions:

jPlayer Developers Guide



 
Mighty Gorgon - View user's profile Send private message  
Mighty Gorgon [ Sun 26 Aug, 2012 13:01 ]
Display posts from previous:    

HideWas this topic useful?

Post new topic  Reply to topic  Page 1 of 1
 
 




 


 

  cron