We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
done
Topic Started: Aug 5 2015, 10:47 PM (191 Views)
Paxinko
Member
[ * ]
I'm looking to implement to support the HTML5 player YouTube rolled out, as opposed to Flash. Would this be possible on ZB, and could anyone do it? If so, I much appreciate the help. Thank you in advance.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
To clarify, you're wanting to embed them in posts, correct?
Offline Profile Goto Top
 
Paxinko
Member
[ * ]
Cory
Aug 5 2015, 11:49 PM
To clarify, you're wanting to embed them in posts, correct?
Yeah, that's it.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Do you want a BBCode button for it, or do you want it to auto-embed just by posting a YouTube video URL?

Can you post an HTML5 YouTube video source code here?
Offline Profile Goto Top
 
Paxinko
Member
[ * ]
Cory
Aug 6 2015, 12:08 AM
Do you want a BBCode button for it, or do you want it to auto-embed just by posting a YouTube video URL?

Can you post an HTML5 YouTube video source code here?
BBCode would be preferred.

Assuming you're asking for the iframe, here's a classic
Code:
 
<iframe width="420" height="315" src="https://www.youtube.com/embed/jNQXAC9IVRw" frameborder="0" allowfullscreen></iframe>
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
That's not an HTML5 video format, that's an iframe that YouTube has mostly always used to embed videos.
Offline Profile Goto Top
 
Paxinko
Member
[ * ]
Oh, well, I'm the fool.

Sorry for the stupidity, kind of late here, haven't gotten any sleep.

Could you direct my tired mind to what you need?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
It actually appears the iframe is the HTML5 method you are referring to, I just realized ZetaBoards is still using the object tag, which is what you are wanting to replace with the HTML5 version, correct?
Offline Profile Goto Top
 
Paxinko
Member
[ * ]
Cory
Aug 6 2015, 12:35 AM
It actually appears the iframe is the HTML5 method you are referring to, I just realized ZetaBoards is still using the object tag, which is what you are wanting to replace with the HTML5 version, correct?
Correct, yeah.

At least my tired mind was right this time, heh.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
//<![CDATA[
$('#c_bbcode button:last').after(' <button type="button" onclick="ZetaTag(\'YOUTUBE\')">YouTube</button>');

$('td:contains([youtube]):not(:has(textarea)), div.search_results:contains([youtube])').each(function() {
$(this).html($(this).html().replace(/\[youtube\](.+?)\[\/youtube\]/ig, '<iframe width="560" height="315" src="$1" frameborder="0" allowfullscreen></iframe>'));
});

$('iframe[src*="youtube.com"][src*="watch?v="]').each(function() {
this.src = this.src.replace('watch?v=', 'embed/');
});
//]]>
</script>
Offline Profile Goto Top
 
Paxinko
Member
[ * ]
Thank you! Much appreciated. Sorry for the time it may have taken you.
Offline Profile Goto Top
 
Moonface
Member Avatar


Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic