=== ProPlayer === Contributors: isa.goksu Donate link: http://isagoksu.com/projects Tags: flv, video, embed, youtube, vimeo, google, metacafe, veoh, myspace, dailymotion Requires at least: 2.7 Tested up to: 2.7 Stable tag: tags/2.0 Display online videos from various sources (youtube, vimeo, veoh, dailymotion, etc) in any Custom FLV Player. 27 different skins, rating system, etc. == Description == Places online videos into your post by using any FLV Custom Player. 27 skins support. Rating video, Visualizer for audio files, Displaying watermark, and much more.. I used (JW FLV Media Player). You can customize your player with addons and skins. Please check add-ons page for more information. Other options might be any FLV player. However I found following players in the Internet: * ToobPlayer * MC Media Player * http://uppod.ru/player/intro * Xmoov FLV Player * http://sonettic.com/cinema * Open FLV Player * http://flv-mp3.com * http://www.martijndevisser.com/blog/flv-player You can use any of following online FLV media players. However, system is optimized for JW FLV Media player. My personal second best is ToobPlayer. When you change the player, it might require some little code changes too. I tried to code as flexible as I can. Currently supported video sources are: * All files that you've uploaded to your server (movies, images, etc..) * 56 * Bebo * Bofunk * Clipfish * Crunchyroll * Dailymotion * eBaumsWorld * Google Video * Metacafe * MySpace * MyVideo * Supernovatube * Tudou * Veoh * Vimeo * Youku * Youtube == Installation == It's pretty simple to install. Just follow the common intention: 1. Unzip the plugin file, it will create a directory named `proplayer` 1. Upload the directory to the `/wp-content/plugins/` directory 1. Activate the plugin through the 'Plugins' menu in WordPress That's it. The usage is like this (Please do not add additional white space, I stripped everything, but some characters cannot be removed!): [pro-player]http://www.youtube.com/watch?v=2YAvfxA6a94[/pro-player] [pro-player width="500" height="500"]http://vimeo.com/1473498[/pro-player] [pro-player type="MP4"]http://www.mydomain.com/media/awesome.mp4[/pro-player] And please guys, just remove the trailing stupid characters from url. People forget this thing and complaining me about their player is not working. It's working, just remove trailing extra characters other than video id. If you don't know what's video id, just google. Or just visit my blog. You'll see a page that explains it. Please go visit == Frequently Asked Questions == = Can I play YouTube files? = Yes, indeed you can play any video source file that's supported by ProPlayer. = Do I have to provide full video URL or just some part of it? = Yes, you have to provide full video URL. ProPlayer doesn't work if you just place some part of the URL. Please check following usages; [pro-player]http://www.youtube.com/watch?v=2YAvfxA6a94[/pro-player] = Are you gonna support more video resources? = Actually, I've created this plugin for my blog. And I thought all these video sources are enough. However, if there is a big demand for other video sources, I can implement them too. = Can ProPlayer play mp3 files? = Yes, ProPlayer supports any of the following file types: video: [3g2, 3gp, aac, f4b, f4p, f4v, flv, m4a, m4v, mov, mp4, sdp, vp6] image: [gif, jpg, png, swf] sound: [rbs, mp3] The only thing you need to do is adding a type attribute for your video file if it is other than FLV: [pro-player type="MP3"]http://www.trt.net.tr/medya/ses/2008/11/19/09be6054-1829-4cac-b068-e9493200196c.mp3[/pro-player] [pro-player type="JPG"]http://www.mydomain.com/albums/summer/1.jpg[/pro-player] = Can I change the width and height? = Width, height and type are optional attributes. You can pass these attributes to change the width and height: [pro-player width="500" height="500"]http://vimeo.com/1473498[/pro-player] Defaults for these attributes will be used if you don't pass them. And defaults are 'width' = 530, 'height' = 253. If you wanna change the defaults just go and edit plugin source. It's really easy. = Isn't there any button or something to add a new video? = Yeah, if you don't wanna type things, just use the editor button to add a new video. It's so easy. (This feature only available after 2.0 release) = Can I change the theme of the player? = Yes you can. You can even add some add-ons like rating, etc.. Just check the addons page site JW FLV Media Player for details. = Isn't there an easy way to change these skins? = Yes there is. Just go to the options page. You'll see a bunch of (26) new skins. Just change it and it will apply to all your players immediately. = Can I style a little bit more? = Yes, if you wanna style your player container like adding borders, changing background etc, just define "div.pro-player-container" in your CSS file: div.pro-player-container { border: 1px solid red; } = I wanna change player colors? = It is easy. Go to ProPlayer settings page in your WordPress admin panel, you are gonna see whole bunch of extra settings. = I wanna stretch my video? = Read above answer. = I'm having some errors? = First of all, I'm really appreciated everyone's support and interest. However, I wrote this plugin for myself. So it has just semi-advanced functionalities. And there might be bugs too. Because I don't have any business requirements other that show my own videos, youtube and vimeo videos. So if you're having some trouble, please send me an email with "site url, what did you write in your post (from your admin panel), contact information", or add a comment on project page. I'll try to get back to you in ASAP. And please don't forget I've a job to go in day time. = I wanna follow project = You can add me on twitter http://twitter.com/IsaGoksu or you can just follow the project page. I'll try to update as much as possible. = I want MegaVideo? = Guys I'm really sorry for that, but today I looked at megavideo site. And their video API is full of ads. If you don't have premium account (which I don't have), writing something over that API is really tricky, 'coz every time you develop something, they will change the API according to their needs. Free service doesn't have a fixed API. If the demand for that site is so high, I'll look at again. But for now, I don't wanna spend so much energy on that. = How can I add rating system for my videos? = Just check options page. = Is there any chance to add visualizer for my audio files? = Read above answer. = I wanna show some watermark/logo for my videos = Check the options page. One thing you need to know is, place your watermark image under proplayer/players/watermark.png. It has to be transparent. And when this option is enabled, you cannot use visualizer for your audio files. = I can't see the preview of the video if I don't press play? = Guys, I'm sorry but every video source has a different implementation for this. It's really hard for me to find the first frame of every video file since you might have a bunch of different file types (flv, mov, avi, etc..). I'll try to find a free service for this. Please continue supporting the project. However, I managed to implement this preview option for youtube, vimeo and veoh. I hope this helps. And for the rest of the videos, you can go to options page and set a default preview image. = How about playlist support? = This one is not that hard. I'll add soon, don't worry :) = I can't post 2 videos in the same post? = No you can. Just upgrade the plugin to 2.0 version. = Sometimes I see this video is not available? = It means that your video link is broken, or the video server blocked your IP for a certain time. Please try after some time. = Veoh movies are just 5 minutes? = Well, veoh released a new player for desktops. If you don't have premium account, you can only watch preview from the web. If you wanna watch full movies, you should download their desktop media player. = Is there a PHP 4 support? = I really don't have any machine to test php4 right now. However, I removed the version check. I assume it's gonna work without any problem. = Isn't there a Wordpress 2.x support? = Truely I don't know. I've never tried. Just try and let us know. = Can I copy your code for my own web projects? = Honestly, I don't care as long as you carry each person's name in the creative commons/gpl license that I put in the beginning of my php codes. Well my name too :P Just one thing here.. It would be so annoying if someone takes my code and create another plugin from it :S IDK.. I thing we should support the existing one. If you wanna become a developer of this plugin, just send me and email please. I don't have any problem with sharing.. = You are releasing so frequently? = Folks believe me, it's not gonna be like this after a while. Right now there are so many features that can be added to the player. I'm not creating WMP or QT here.. It's just I'm making our video posting more easier. Possibly I'm gonna add following features and then I'll stop till some time. * Playlist support * Maybe couple new video sources * Sharing video files support * etc.. You see? I'm almost done :P Just support me and if you can share/rate plugin, more people might interest and I could try to build more robust player. == Screenshots == Here are some screenshots from the player. 1. In the post 2. Single 3. Customizable colors, width, height, stretching, etc.. 4. New skins (26 new) and visualizer option for audio files 5. Rating system 6. Watermark/logo display 7. Options page 8. Preview Image before video starts 9. New Editor Enhancement 10. New Toolbar Button 11. New Quicktag == Change History == version 2.0 * Added ProPlayer button to WordPress default post editor toolbar * Added ProPlayer quicktag to the HTML view * Added support for multiple video in one post * Some problematic dailymotion, youtube video resolution have been fixed. version 1.6 * Added preview image support for Youtube, Vimeo and Veoh * Default preview image support * Some minor bugs are fixed version 1.5 * Added 26 new skins [Stylish v1.1 (Default), Blue Metal, Grunge Tape, 3D Pixel Style, Atomic Red, Overlay, Comet, Control Panel, DangDang, Fashion, Festival, Ice Cream Sneaka, Kleur, Magma, Metarby 10, Stylish v1.0, Nacht, Neon, Pearlized, Pixelize, Playcasso, Schoon, Silvery White, Simple, Snel, Stijl, Traganja] * Added customized skin addition option * Added Visualizer support for audio files * Added Rating support for all media files (by Rate it all) * Added Watermark/Logo support for all media files version 1.1 * Added options page * Customizable skin * Customizable colors * Customizable default width and height options * Customizable video stretching options (fill, uniform, exact fit, none) version 1.0.5 * Usage changed from <pro-player> to [pro-player] * Some bug fixes version 1.0 * Initial release == Limitations == * Unfortunately I haven't implemented a ID detection algorithm. So you sometimes have to manually strip the irrelevant tags from the link URL. For example: instead of: http://vimeo.com/2440304&embed=23023492873 you should place: http://vimeo.com/2440304 This is not mandatory. However, some videos doesn't work if you don't strip the irrelevant text from the video URL. * In some cases, the whitespaces before/after link URL can cause some problems. If you don't want any problems, just please pay attention to not use whitespaces before and after the video URL. * Veoh music videos are not supported. Because they're chaning their player implementation every single day. While I was developing 1.6, this time they were using another player than their original player. So I'm not gonna support that, sorry!