[wordpress插件] Chromeless YouTubeChromeless YouTube

wordpress 插件 文章 2020-03-23 11:30 507 0 全屏看文

AI助手支持GPT4.0

评分
60
描述

This plugin is a custom YouTube video player.

此插件是自定义的YouTube视频播放器。

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.

不用担心,您可以根据需要使用默认的YouTube控件。

The player is meant to play only one single video, by simply entering it’s YouTube ID number.

只需输入YouTube ID号,播放器就只能播放一个视频。

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.

对于任何WordPress开发人员来说,此插件都是必需的。

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.

YouTube将超过35%的视频媒体托管在互联网上,如果不利用其简单而强大的网站来存储您的所有视频,那就太可笑了。

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.

要在您的网站上显示这些视频,您需要嵌入一堆HTML,这些嵌入的片段是在您的网站上播放每个YouTube视频所需的代码。

This can sometimes be tedious and that is why I created the Chromeless YouTube Plugin.

有时候这可能很乏味,这就是为什么我创建了无Chrome YouTube插件。

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.

Chromeless YouTube Player非常简单,只需将小部件拖到侧边栏中,输入视频的YouTube ID号,然后为其指定宽度和高度即可。

安装步骤

    1. Upload the entire ‘chromeless-youtube’ folder to the /wp-content/plugins/ directory
    2. 将整个“ chromeless-youtube”文件夹上载到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. Create a new player widget from the wordpress dashboard: Appearance -> Widgets
    6. 从wordpress仪表板创建一个新的播放器小部件:外观->小部件

    7. Post Shortcode: [chromeless id=hnwccozR_oI width=280 height=180 autoplay=no ytcontrols=no]
    8. 发布短代码:[chromeless id = hnwccozR_oI width = 280 height = 180 autoplay = no ytcontrols = no]

    9. Template PHP:

    10. 模板PHP: <?php chromeless_youtube('hnwccozR_oI','280','180','no','no');

      ?>

    11. ?>

下载地址
https://downloads.wordpress.org/plugin/chromeless-youtube.1.01.zip
-EOF-

AI助手支持GPT4.0