Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
DJ's AME (Auto-Media Embedding) Definitions for the JW Player Details »»
DJ's AME (Auto-Media Embedding) Definitions for the JW Player
Version: 1.00, by Digital Jedi Digital Jedi is offline
Developer Last Online: Sep 2023 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.8.x Rating:
Released: 03-10-2010 Last Update: 03-11-2010 Installs: 18
Supported
Additional Files  

From the guy who brought you cheap knock-offs of other people's stuff, comes even more knock-offs of other people's stuff.

AME Definitions for the JW Player

========================================

IMPORTANT - PLEASE READ
This is an add-on for The Geek's AME - The Automatic Media Embedding System. Which means if you don't know what an AME CP is, you can't install these definitions.

========================================

What This Is
If you have The Geek's AME - The Automatic Media Embedding System installed, then you likely already have some or all of my massive collection of media definitions: DJ's AME (Auto Media Embedding) XML Media Definitions (Delta Edition). This is one more definition for that collection. However, it's special. So special it needs it's own thread. Read below to find out why.

The JW Player
The JW Player is a customizable player distributed for free by Long Tail Video. It's Open Source and has a number of skins and plugins to make it fit perfectly with the look and feel of your site. The latest version of the player let's you customize a skin using just images and an XML file, without really needing to know anything about coding or flash. That and the many other features available in the player makes this invaluable to many webmasters.

AME Integration
While the JW Player cannot be implemented to work with the entire set of AME definitions, it can, however, be made to work with YouTube and WMV files. I'm releasing this definition for YouTube first, and later on I'll add a definition for Silverlight (WMV).

Screenshots
JW Player Preview 2.png JW Player Preview.png JW Player Preview 3.png JW Player Preview 4.png JW Player Preview 5.png

Live Demo
Don't let the demo fool you. You can only use one skin per definition. But changing the skin in the definition will only change the skin in new posts, not old ones (as you can see here.) Old posts will need to be resaved. I'm currently using the Schoon skin. (Periodically, I have to turn the demo off so I can work on the regular YouTube definition.)


Installation
If you already have the JW Player installed on your website, then all you really need to do is skip to the Step 3 and configure the URLs to point to the right locations.
  1. Download the JW Player from Long Tail Video.com. Unzip the contents and upload the .SWF, .JS, .FLV and .YT files to a folder in your forum root named videos. (Obviously, if you don't have that directory, create it.)
  2. Download a skin for the player from their Skin Library. (You can create your own later. Just pick something nice for right now.) Unzip the contents and add the .SWF file to your videos directory.
  3. Delete your existing YouTube definition. (Just YouTube, folks. Don't go crazy deleting everything that has the word YouTube in it.)
  4. Download the JW Player (YouTube).xml file and import it into your AME CP.
  5. Either during import or after, configure the URLs in your new YouTube definition to point to the correct locations. Three URLs highlighted in red here, currently point to my website, so change those. Also change the name of the skin file, in blue here, if your not using Schoon.
    Code:
    <script type='text/javascript' src='http://www.cogonline.net/forums/videos/swfobject.js'></script> 
    <script type='text/javascript'> 
    var s1 = new SWFObject('http://www.cogonline.net/forums/videos/player.swf','player$p1','$ameinfo[width]','$ameinfo[height]','9'); 
    s1.addParam('allowfullscreen','true'); 
    s1.addParam('allowscriptaccess','always'); 
    s1.addParam('flashvars','file=$ameinfo[url]&skin=http://www.cogonline.net/forums/videos/schoon.swf&image=http://img.youtube.com/vi/$p1/0.jpg'); 
    s1.write('preview$p1'); 
    </script>

For more information on the wealth of things you can do with the JW Player, please visit their website and read up on all the goodies.

Known Issues
The JW Player posts via JavaScript, and as you you know, JavaScript doesn't display inside AJAX functions. This means you won't see the video if you post via Quick Reply or if you've edited the post inline. However, your the only one who will see it that way. It will display normal for everyone else, and will display again the next time you reload/refresh the page. I've setup a notification for this when it's posted alongside the message that notifies a user who needs to upgrade their Flash Player.

Also, vBadvanced. I can't reiterate this enough times. Set your character count high enough, or stop trying to get videos to show in the modules. Otherwise, there won't be enough room to display all the code of the video, and the code will get truncated.

One other thing. Whenever you upgrade AME or re-install it, you get your default definitions back. So please, check your definitions before you start posting that you're getting two YouTube videos in a post. This was covered in the last two threads' FAQ section.


Support
I'm happy to offer support for any of my so-called modifications, but take note if it's something that could be better answered at the JW Player's Support Forums, then you should probably ask there. That said, if you come across something on Long Tail Video that looks like it might work well with AME, then I'll take a look at it, and see if it can't be added to this thread.

Screenshots

File Type: png JW Player Main.png (121.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-11-2010, 06:04 PM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks DJ!

I'll have to check out all the skins they offer and see if any will look good in my site. Shame they don't work on all definitions tho.
Reply With Quote
  #3  
Old 03-11-2010, 06:50 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, from my perspective, I'm glad they don't. I'd hate to have to do a fourth massive set.
Reply With Quote
  #4  
Old 03-12-2010, 01:15 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Whoops. One lousy type nerfed the whole definition.
Reply With Quote
  #5  
Old 03-13-2010, 01:00 PM
MagicThemeParks's Avatar
MagicThemeParks MagicThemeParks is offline
 
Join Date: Sep 2009
Posts: 850
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*tagged*

I'll be looking into making this work on my sites as soon as I get some time to dedicate to it

Thanks DJ! :up:
Reply With Quote
  #6  
Old 03-14-2010, 07:07 PM
AzzidReign's Avatar
AzzidReign AzzidReign is offline
 
Join Date: Apr 2006
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you!!
Reply With Quote
  #7  
Old 04-02-2010, 02:55 PM
KingPin6's Avatar
KingPin6 KingPin6 is offline
 
Join Date: Sep 2006
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you, works beautifully (PS playcasso just refused to work for me snel and schoon work fine tho)
Reply With Quote
  #8  
Old 04-04-2010, 04:16 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KingPin6 View Post
thank you, works beautifully (PS playcasso just refused to work for me snel and schoon work fine tho)
Yes, I notice not all of their skins have been updated for their newest version of the player, yet. They give version compatibility next to each one, so you may want to check that out prior to testing/
Reply With Quote
  #9  
Old 11-17-2010, 07:27 AM
danyz81's Avatar
danyz81 danyz81 is offline
 
Join Date: Apr 2009
Location: Rome
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello, there'are a new youtube definition for the skins version 2.0?

Bewcause now dont need to unpack anything but load directly the zip file.

Quote:
If you are using a 1.0 Skin:
To use your new JW Player skin: unpack the .zip, locate the .swf file, and upload it to your server.

Then you just need to reference it in your player's HTML embed code with the flashvar "skin=path/to/your/skin.swf" — it's that easy.

If you are using a 2.0 Skin:
To use your new JW Player skin: locate the .zip file, and upload it to your server.

Then you just need to reference it in your player's HTML embed code with the flashvar "skin=path/to/your/skin.zip" — it's that easy.

Code:
...
s1.addParam('flashvars','file=$ameinfo[url]&skin=http://www.myforum.net/forums/videos/skin.zip&image=http://img.youtube.com/vi/$p1/0.jpg'); 
...
not work for me :/

Regards,
Daniele.
Reply With Quote
  #10  
Old 11-17-2010, 07:52 AM
danyz81's Avatar
danyz81 danyz81 is offline
 
Join Date: Apr 2009
Location: Rome
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ops Sorry! work like a charm... was my error

Thanks!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:35 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08541 seconds
  • Memory Usage 2,331KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete