WordPress is a popular open-source blog framework and content management system. It can significantly reduce the difficulty and increase the efficiency of website building. Using WordPress plans, you can get a small website up and running in just a few minutes. However, as you add images, audios, and videos to your WordPress website, it will become more and more demanding on bandwidth and storage, which may start to affect your website’s performance. The management of media files is crucial to the long-term success of a website.
We do not recommend using WordPress’ default features to upload videos directly to a WordPress website that you intend to run long term. This is mainly because the media files are stored in a web server, which has the following disadvantages:
|1||When users access media files hosted in a web server, videos may stutter and images may be slow to load.|
|2||Accessing media files hosted in a web server consumes bandwidth resources and may take up all your bandwidth.|
|3||As your website grows, media files may take up all the server’s storage space.|
|4||When you migrate to a different server, the transfer of media files can be cumbersome.|
VOD offers media storage, transcoding, and distribution/playback acceleration services. Using it to build your website has the following advantages:
|1||Using our WordPress plugin or SDK, you can upload and store your website’s media files to VOD. This can free up storage space in the server and facilitate easier server migration. It also avoids the problem of deleting files by mistake.|
|2||VOD offers CDN addresses for your media files, which makes accessing images, audios, and videos faster and does not consume your server’s bandwidth.|
VOD also offers access control, media processing, and content moderation capabilities. For details, see Feature Overview.
VOD offers a WordPress plugin. Using this plugin, you can bind a VOD subapplication to host your WordPress media files in VOD. Visitors of your website can access the files via the CDN addresses provided by VOD. Currently, the plugin can achieve the following:
VOD supplications help you achieve resource isolation. You can bind different websites to different VOD subapplications so that you can manage their media files separately. To learn about how to create a subapplication, see Subapplication System.
You can build a WordPress website in one of the following two ways:
Type tencentcloud-vod in the search box, click Install, and then click Activate.
Download a ZIP file of the latest version of the plugin. In WordPress, click Upload Plugin > Choose File > Install Now. After the installation, click Activate.
In WordPress, select Tencent Cloud Settings > VOD on the left sidebar.
Complete the following settings:
|Custom key||If you toggle this off, the key configured for Tencent Cloud Settings will be used, which means the VOD plugin will use the same key as other Tencent Cloud plugins. If you toggle this on, the key configured below will be used.|
|SecretId, SecretKey||The access key. You can go to the API Keys page of the console to create and view access keys.|
|SubAppID||The ID of the VOD subapplication you want to bind. You can view your VOD subapplications in Application Management.|
|Adaptive bitrate||If you toggle this on, videos uploaded will be encoded at multiple bitrates. For details, see Adaptive Bitrate Streaming.|
VOD uses HTTP by default. If you want to use HTTPS, select your subapplication in the VOD console, go to System Settings > Distribution and Playback > Default Distribution Domain, click Edit, and select HTTPS for Default Distribution Protocol.