mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-25 14:19:58 +09:00
17223554 : xquared upgrade to 0.7
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4968 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5956e254e7
commit
7c3b336e41
59 changed files with 34562 additions and 8454 deletions
|
|
@ -0,0 +1,39 @@
|
|||
/**
|
||||
* @requires macro/Base.js
|
||||
*/
|
||||
xq.macro.FlashMovieMacro = xq.Class(xq.macro.Base,
|
||||
/**
|
||||
* Flash movie macro
|
||||
*
|
||||
* @name xq.macro.FlashMovieMacro
|
||||
* @lends xq.macro.FlashMovieMacro.prototype
|
||||
* @extends xq.macro.Base
|
||||
* @constructor
|
||||
*/
|
||||
{
|
||||
initFromHtml: function() {
|
||||
this.params.html = this.html;
|
||||
},
|
||||
initFromParams: function() {
|
||||
if(!xq.macro.FlashMovieMacro.recognize(this.params.html)) throw "Unknown src";
|
||||
},
|
||||
createHtml: function() {
|
||||
return this.params.html;
|
||||
}
|
||||
});
|
||||
xq.macro.FlashMovieMacro.recognize = function(html) {
|
||||
var providers = {
|
||||
tvpot: /http:\/\/flvs\.daum\.net\/flvPlayer\.swf\?/,
|
||||
youtube: /http:\/\/(?:www\.)?youtube\.com\/v\//,
|
||||
pandoratv: /http:\/\/flvr\.pandora\.tv\/flv2pan\/flvmovie\.dll\?/,
|
||||
pandoratv2: /http:\/\/imgcdn\.pandora\.tv\/gplayer\/pandora\_EGplayer\.swf\?/,
|
||||
mncast: /http:\/\/dory\.mncast\.com\/mncHMovie\.swf\?/,
|
||||
yahoo: /http:\/\/d\.yimg\.com\//
|
||||
};
|
||||
|
||||
for(var id in providers) {
|
||||
if(html.match(providers[id])) return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue