這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Chromeless YouTube

描述

This plugin is a custom YouTube video player. The default player has custom control buttons that are hidden while the video is playing. Don’t worry, there is an option to use the default YouTube controls if you want. The player is meant to play only one single video, by simply entering it’s YouTube ID number. You can then size the player to any width and height, enabling you to display videos anywhere on your site. Every chromeless widget you create is unique, you can have multiple videos on one page, each with a different source and size.
This plugin is a must have for any WordPress developer. Adding videos to your site has never been easier. YouTube hosts over 35% of the video media on the internet, it would be silly not to utilize their their simple yet powerful website to store all of your videos.

To display these videos on your site, you need to embed a whole bunch of HTML, these embed snippets are the code needed to play each YouTube video on your site. This can sometimes be tedious and that is why I created the Chromeless YouTube Plugin.

The Chromeless YouTube Player is super easy, just drag a widget into your sidebar, type in the YouTube ID number of a video, give it a width and height and that is it.

螢幕截圖

  • Widget Options
  • Three players in action

安裝

  1. Upload the entire ‘chromeless-youtube’ folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Create a new player widget from the wordpress dashboard: Appearance -> Widgets
  4. Post Shortcode: [chromeless id=hnwccozR_oI width=280 height=180 autoplay=no ytcontrols=no]
  5. Template PHP: <?php chromeless_youtube ('hnwccozR_oI','280','180','no','no'); ?>

常見問題

Why do I get a blank black screen?

If YouTube has the code disabled you cannot play the video outside of youtube.com, the result is a blank black player screen. You can check to see if this is your issue by visiting youtube and clicking on the
button, if code comes up then good otherwise you cannot play it externally.

I am working on adding some error reporting for this in future versions.

Why should I use this player?

This player allows you to easily place specific YouTube videos wherever you want on your Blog or Website. Your videos can be sized and scattered among your pages or posts, and without the default controls cluttering the experience.

What is a YouTube ID number?

The ID number is YouTube’s unique identifier for each video. You can find the ID number in the address bar at the end of the URL after the “v=” part. It can also be found in the embed code.

How many players can I create?

Theoretically there is no limit, but for practical reasons you may want to limit yourself to a couple of players for each page. Use your judgment, the more players that are buffering data at the same time, the more likely there is to be loading issues.

Can I have more than one video per player?

No, for now you are limited to one. Future releases are planned with support for playlists, so stay tuned.

My player won’t respond?

Try refreshing the page using F5, sometimes the video requests to YouTube will get stuck, due to traffic.

My player is stuck loading?

Try refreshing the page using F5. If you have another player with the same video (same video ID) open in another tab the two players may interfere with each other depending on which browser you are using.

How do I control playback?

If you are using the chromeless controls, just click on the video to display the basic control buttons.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Chromeless YouTube” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Chromeless YouTube 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0

  • Hello WordPress World!

1.01

  • Fixed file path issue. Last minute directory change from chromeless to chromeless-youtube, needed to change the path to the player .swf