[Original] Allow the allvidoes plug-in to support videos of Youku (www.youku.com)

Source: Internet
Author: User
Allvideos reloaded is a video plug-in for joomla. It can be used to easily insert videos into your webpage. It supports various video formats and is compatible with mainstream video website references. Currently (version: 1.2.6) most compatible video websites are abroad, and only 6.cnis supported in China. Other videos such as Youku cannot be consumed, but it doesn't matter. allvideos reloaded is very flexible and can be set in the background to support other video websites, the following describes how to enable him to support videos of Youku (youku.com.
Running Environment: allvideos reloaded 1.2.6, joomla 1.5.8
1. Open the settings page.
Log on to the joomla background management program and choose Components> allvideos reloaded]
 

2. Add player
Select the "manage players" tab and click "CREATE". Enter the following content in name, description, and Code on the displayed page, and keep the rest unchanged. after entering the content, click "save]
Name: Youku
Description: youku.com Original player (qplayer)
Code:

<SCRIPT type = "text/JavaScript">
Swfobject. embedswf ('HTTP: // response @,
{Videoids: '@ code @', isautoplay: false, version: '/v1.0.0444', wintype: 'interio '}, {allowfullscreen: 'true', wmode: '@ wmode @', bgcolor: '@ bgcolor @', menu: '@ menu @'}, {ID: 'P _ @ divid @ ', styleclass: '@ avcss @'});
</SCRIPT>

In the code, isautoplay: false indicates that the page is not automatically played when it is opened. If you need to play it automatically, set this parameter to true.
The effect after setting is as follows:

3. Add rippers
Select the "manage Rippers" tab and click "CREATE". Enter the following content on the displayed page, and click "save]
[Name:] Youku
[Description]: youku video
[Version]: 0
[Url]: http://v.youku.com/v_show/id_@CODE@.html
[Regular expression]:/V/showvideoreference/ID/(\ D +)
[ID-Index]: 0
[Perform URL Decoding]: No

4. Add Tag/presets
Select the manage tags/presets tab and click Create. On the displayed page, enter the following content. after entering the content, click Save]

[Name:] Youku
[Description:] youku.com
[Version:] 0
[Sampling RegEx:] HTTP: \/V \. Youku \. com \/V \ _ show \/ID _ (. +) \. html
[Local:] not selected
[Playlist:] not selected
[PLAYER:] youku.com Original player (qplayer)
[RIPPER:] youku video
[PLAYER template tweaks:] remains unchanged
The effect is as follows:

After the settings are completed, let's talk about how to use them: Click the [AVR media] button at the bottom of the text editing box of the article editing screen,

Insert media-allvideos reloaded

In the remote media tab, enter
The address of the youku video you want to insert (that is, the address bar in the browser, for example, http://v.youku.com/v_show/id_xmtexmzewmti0.html, which is not a reference outside the site.

End

Note: If you add a video of 6.cn, the video will be automatically played when it is opened on the page. You can disable automatic playback of the video of 6.cn using the following method:
Find 6cn in [manage players-allvideos reloaded], click [6cn] To Go To The editing screen, find the flag: '1' in the code box, and change 1 to 0, then click Save.

At last, please indicate the source for reprinting. Thank you!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.