播放器无忧创想视频播放器-代码

播放器代码  时间:2021-02-15  阅读:()

1无忧创想播放器系统 V1.0

pa cka ge com cto api a d

{importflashevents Event;publ icclassAdEventextends Event

{publ icstaticconstAD_JUMP:String="adJump";publ icstatic constAD_RESUME:String="adResume";publ icstatic const AD_LAMU_PLAY_STATUS:String="adLamuPlayStatus";publ icstatic const AD_HEAD_PLAY_START:String="adHeadPlayStart";publ icstatic const AD_HEAD_LOAD_COMPLETE:String="adHeadLoadComplete";publ icstatic const AD_HEAD_PLAY_COMPLETE:String="adHeadPlayComplete";publ icstatic const AD_HEAD_PLAY_NONE:String="adHeadPlayNone";publ icstatic const AD_CORNER_PLAY:String="adCornerPlay";publ icstatic const AD_CORNER_COMPLETE:String="adCornerComplete";publ icstatic const AD_I NSERT_PLAY_START:String="adInsertPlayStart";publ icstatic const AD_INSERT_LOAD_COMPLETE:String="adInsertLoadComplete";publ icstatic const AD_INSERT_PLAY_COMPLETE:String="adInsertPlayComplete";publ icstatic const AD_INSERT_PLAY_NONE:String="adInsertPlayNone";publ icstatic const AD_TAIL_LOAD_COMPLETE:String="adTai lLoadComplete";publ icstatic const AD_TAIL_PLAY_START:String="adTai lPlayStart";publ icstatic const AD_TAIL_PLAY_COMPLETE:String="adTai l PlayComplete";publ icstatic const AD_TAIL_PLAY_NONE:String="adTai lPlayNone";publ icstatic const AD_STATISTICS:Stri ng="adStatistics";publ icstatic constGET_VIDEO_TIME:String="getVideoTime";publ icstatic const AD_LOAD_I NSERT_DATA:String="adLoadInsertData";publ icstatic const CONTROLBAR_MOVE:String="controlbarStartMove";publ icstatic const AD_VOLUME_CHANGE:String="adVolumeChange";publ icstatic constAD_PAUSE_IMPRESSION:String="adPauseImpression";publ icvardataProvider:Object;publ icfunction AdEvent(type:String,bubbles:Boolean=false, cancelable:Boolean=false)

{super(type ,bubbles ,cancelable);

}

}

}pa cka ge com cto api a d

{importflashevents Event;publ icclass AdServerEventextends Event

{publ icstatic constAdDataLoade:String="AdDataLoaded";publ icstatic const AdServerError:String="AdServerError";private var_data:Object;publ icfunction AdServerEvent(type:String,data:Object=nul l,bubbles:Boolean=false, cancelable:Boolean=false) {super(type,bubbles, cancelable);

_data=data;

}publ i c fu nction get data():Object {retu rn_data;

}

2无忧创想播放器系统 V1.0

}

}pa cka ge com cto api a pi

{publ icclass Cal lBackAPI

{publ icstatic constGET_VERSION:String="getVersion";publ icstatic constSEEK_TO:String="seekTo";publ icstatic const GET_VIDEO_SETTI NG:String="getVideoSetting";publ icstatic constGET_VIDEO_TIME:String="getVideoTime";publ icstatic constGET_LOAD_PERCENT:String="getLoadPercent";publ icstatic constGET_BUFFER_PERCENT:String="getBufferPercent";publ icstatic constGET_PLAY_RECORD:String="getPlayRecord";publ icstatic constGET_DEFINITION_LIST:String="getDefinitionList";publ icstatic constGET_PLAY_STATE:String="getPlayState";publ icstatic constSET_VIDEO_ROTATION:String="setVideoRotation";publ icstatic constSET_VIDEO_RECT:String="setVideoRect";publ icstatic constSET_VIDEO_COLOR:String="setVideoColor";publ icstatic constSET_VIDEO_SCALE:String="setVideoScale";publ icstatic constSET_VIDEO_PERCENT:String="setVideoPercent";publ icstatic constSET_AUTO_REPLAY:String="setAutoReplay";publ icstatic constSET_DEFINITION:String="setDefinition";publ icstatic constSET_VOLUME:String="setVolume";publ icstatic constSET_FLASHVARS:String="setFlashvars";publ icstatic constSET_GPU:String="setGpu";publ icstatic constSET_JUMP:String="setJump";publ icstatic constSET_CONTINUE_PLAY:String="setContinuePlay";publ icstatic const PLAY_NEW_ID:String="playNewId";publ icstatic const PAUSE_VIDEO:String="pauseVideo";publ icstatic constRESUME_VIDEO:String="resumeVideo";publ icstaticconstSHUT_DOWN:String="shutDown";publ icstatic constSTART_UP:String="startUp";publ icstatic const TURN_ON_LIGHT:String="turnOnLight";publ icstatic const TURN_OFF_LIGHT:String="turnOffLight";publ icstatic constSET_NODE:String="setNode";

}

}pa cka ge com cto api a pi

{publ icclass JsAPI

{publ icstatic const PLAYER_INIT:String="playerInit";publ icstatic const PLAYER_VIDEO_START:String="playerVideoStart";publ icstatic const PLAYER_VIDEO_PAUSE:String="playerVideoPause";publ icstatic const PLAYER_VIDEO_RESUME:String="playerVideoResume";publ icstatic const PLAYER_VIDEO_SEEK:String="playerVideoSeek";publ icstatic const PLAYER_VIDEO_STOP:String="playerVideoStop";publ icstatic const PLAYER_VIDEO_REPLAY:String="playerVideoReplay";

}

}

3无忧创想播放器系统 V1.0

pa ckage com cto api cookie

{publ icclass CookieAPI

{publ icstatic const COOKIE_NAME:String="com 51cto main v20131020";publ icstatic const COOKIE_STORAGE:String="com 51cto storage v20131020";publ icstatic constDATA_PLAYRECORD:String="playrecord";publ icstatic constDATA_VOLUME:String="volumeSet";publ icstaticconstDATA_SPEED:String="speed";publ icstatic const DATA_CONTINUEPLAY:String="continuePlay";publ icstatic constDATA_SCALE:String="scale";publ icstatic constDATA_GPU:String="gpu";publ icstatic const DATA_DEFAULTDEFINITION:String="defaultDefinition";

}

}pa ckage com cto api infoTip

{publ icclass InfoTipStyle

{publ icstatic const TIP_AD_HEAD_START:uint=2000;publ icstatic constTIP_AD_COMMON:uint=2001;publ icstatic const TIP_VIDEO_START:uint=2002;publ icstatic constTIP_VIDEO_BUFFER:uint=2003;publ icstatic constTIP_PAUSE_VIDEO:uint=2004;publ icstatic const TIP_VIDEO_STOPPING:uint=2005;publ icstatic const TIP_VIDEO_REPLAY:uint=2006;

}

}pa ckage com cto api interfa ces

{import com cto api kernel PlayerScaleType;import flash displayDisplayObject;import flashevents IEventDispatcher;publ icinterface IKernelextends IEventDispatcher

{f un cti o n ge tPl a yRe co rd():O bje ct;function setAutoReplay(value:Boolean) :void;function getVideoVolume() :Number;function getVideoRect() :Object;function getVideoRotation() :int;function getVideoScale() :Numbe r;function getVideoPercent() :Nu mbe r;function getVideoColor() :Array;function getDefini tion List() :Object;f un ctio n getPla ySet() :Obje ct;function getVideoSetti ng() :Obje ct;fun ctio n getSettingAsText():void;function getGpuAcc() :Object;function getVe rsion() :Obje ctfunction getUse rinfo() :Obje ct;

4无忧创想播放器系统 V1.0

fun ction sen dSta tisti cs(info:Obje ct) :void;function sendInterfa ce(type:Stri ng,info:Object=nul l) :Object;function setConfig(pccs:XML=n ul l,flashva rs:Object=nul l ,idinfo:Object=nul l) :void;function setAuth() :void;function playNext(fromEnd:Boolean =false) :Boolean;function loadAndPlay(autoPlay:Boolean =true,vid:Stri ng=nul l) :void;function seekTo(position:Number) :void;function setDefinition(type:Stri ng=nul l) :Boolean;function jumpVideo(type:int=0) :void;function cl oseVideo(clea rEffect:Boolean=true) :void;function replayVideo() :void;function pauseVideo() :void;function resumeVideo() :void;function mute(flag:Boolean =true) :void;function setVolume(value:Number) :void;function setGpu(flag:Boolean =true) :void;function setContinuePlay(flag:Boolean =false) :void;fun ctio n getPla ySta te() :Obje ct;function getVideoTime() :Numbe r;function getFPS():i nt;function getLoadPercent():Number;function getBufferPercent():Number;function getSecti onInfo() :String;function getScreenShot() :Object;function setVideoColor(p1:*=0,p2:*=0,p3:*=0,p4:*=0) :Boolean;function setVideoPercent(value:Number,action:Boolean =false) :Boolean;function setVideoRect(value:Object) :void;function setVideoRotation(val ue:int):Boolean;function setVideoScale(value:Number=0,type:uint=PlayerScaleType SCALE_ORIGI NAL) :Boolean

}

}pa ckage com cto api interfa ces

{import com cto api kernel PlayerScaleType;import flashevents IEventDispatcher;publ icinterface ISDKextends IEventDispatcher

{function setFlashva rs(value:Object) :void;function getVe rsion() :Obje ct;functionsetVideoScale(value:Number=0,type:uint=PlayerScaleType SCALE_ORIGINAL) :Boolean;function setVideoColor(p1:*=0,p2:*=0,p3:*=0,p4:*=0) :Boolean;function setVideoPercent(value:Number,action:Boolean =false) :Boolean;function setAutoReplay(value:Boolean) :void;function setVideoRect(value:Object) :void;function setVideoRotation(val ue:int):void;function setGpu(value:Boolean) :void;function setContinuePlay(value:Boolean) :void;function getVideoTime() :Numbe r;function getUse rinfo() :Obje ct;function getVideoSetti ng():Object;

5无忧创想播放器系统 V1.0

function getLoadPercent() :Number;function getBufferPercent():Number;f un cti o n ge tPl a yRe co rd():O bje ct;function getVideoColor() :Array;function getDefinition() :String;function getDefaultDefinition() :String;function getDefini tion List() :Object;fun ctio n getPla ySta te() :Obje ct;function setDefinition(type:Stri ng=nul l) :voidfunction playNewId(value:*=nul l):void;function pauseVideo() :void;function resumeVideo() :void;function replayVideo():void;function resumeAd() :void;function pauseAd() :void;function cl oseVideo(clea rVideo:Boolean =true) :void;function shutDown(value:*=nul l) :void;function l ightTurnOn(value:*=nul l) :void;function l ightTurnOff(value:*=nul l) :void;functionseekTo(value:Number):void;function setVolume(value:Number) :void;function sta rtUp():void;function playNext(fromEnd:Boolean =false) :Boolean;f un ctio n getPla ySet() :Obje ct;function sendSta tisti cs(info:Object) :void;function sendInterface(type:Stri ng,info:Object=nul l) :Object;function jumpVideo(type:int=0) :void;function getVideoRotation() :int;function getVideoScale() :Number;function getVideoPercent() :Nu mbe r;function getHtmlLog() :String;function displayDebug() :void;functionsendLog(value:String,type:String="info") :void;function hidePauseAd() :void;

}

}pa ckage com cto api kernel

{import flash geom Rectangle;publ icclass Config

{publ icstatic constTEST_SPEED_RATE:uint=3000;publ icstaticconst MEMORY_LIMIT:uint=629145600;publ icstatic const ATTACH_TIME:uint=60;publ icstatic constRECORD_VCS_RATE:uint=120000;publ icstatic const RECORD_TIME_RATE:uint=3000;publ icstatic constRECORD_DURATION_LIMIT:uint=15;publ icstaticconstJUMP_TAIL_INFO:uint=15;publ icstatic constRECORD_PLAYER_MAX:uint=20;publ icstatic constRECORD_SPEED_MAX:uint=5;

6无忧创想播放器系统 V1.0

publ icstatic constAUTO_TO_P1080:uint=1024;publ icstatic const AUTO_TO_P720:uint=500;publ icstatic const AUTO_TO_YH:uint=500;publ icstatic constAUTO_TO_HD:uint=300;publ icstatic const AUTO_TO_SD:uint=200;publ icstatic constVIDEO_SCALE_MIN:Number=01;publ icstatic const VIDEO_SCALE_MAX:Number=5;publ icstaticconst LOOP_ON_KERNEL:uint=100;publ icstaticconstCLK_DELAY_TIME:uint=300;publ icstaticconst MOUSE_HIDE_TIME:uint=5000;publ icstatic constVOLUME_MAX:Number=1;publ icstatic constVOLUME_TOTAL:Number=5;

}

}pa ckage com cto api kernel

{publ icclass DefinitionType

{publ icstatic constSTACK:Array=["lw","hd"];publ icstatic const AUTO:String="auto";publ icstatic const LW:String="lw";publ icstatic constHD:String="hd";

}

}pa ckage com cto api kernel

{publ icclass PlayerErrorextends Error

{publ icstatic const PCCS_IO_ERROR:String="1000";publ icstatic const PCCS_TIMEOUT_ERROR:String="1001";publ icstatic const PCCS_SECURITY_ERROR:String="1002";publ icstatic const PCCS_ANALY_ERROR:String="1003";publ icstatic const PCCS_OTHER_ERROR:String="1009";publ icstatic const PLUGINS_IO_ERROR:String="2000";publ icstatic const PLUGINS_TIMEOUT_ERROR:String="2001";publ icstatic const PLUGINS_SECURITY_ERROR:String="2002";publ icstatic const PLUGINS_ANALY_ERROR:String="2003";publ icstatic const PLUGINS_OTHER_ERROR:String="2009";publ icstatic constID_IO_ERROR:String="3000";publ icstatic constID_TIMEOUT_ERROR:String="3001";publ icstatic constID_SECURITY_ERROR:String="3002";publ icstaticconstID_ANALY_ERROR:String="3003";publ icstatic constID_OTHER_ERROR:String="3009";publ icstatic const PLAY_IO_ERROR:String="4000";publ icstatic const PLAY_TIMEOUT_ERROR:String="4001";publ icstatic const PLAY_SECURITY_ERROR:String="4002";publ icstaticconst PLAY_ANALY_ERROR:String="4003";publ icstatic const PLAY_OTHER_ERROR:String="4009";publ icstatic constUSER_NO_LOGIN:String="5000";publ icstatic constOTHER_ERROR:String="999";

7无忧创想播放器系统 V1.0

publ icstatic const NORMAL:String="0";publ icfunction PlayerError(message:*="" , id:int=0)

{super(message, id);

}

}

}pa ckage com cto api kernel

{importflashevents Event;publ icclass PlayerErrorEventextends Event

{publ icstatic const PLAYER_ERROR:String="playerError";publ icvarerrorCode:String;publ icvardataProvider:Object;publ icfunction PlayerErrorEvent(type:String,data:Object=nul l ,bubbles:Boolean =false, cancelable:Boolean=false)

{super(type ,bubbles ,cancelable);dataProvider=data;

}

}

}pa ckage com cto api kernel

{publ icclass PlayerScaleType

{publ icstatic constSCALE_ORIGINAL:uint=0;publ icstatic constSCALE_43:uint=1;publ icstatic constSCALE_169:uint=2;publ icstatic constSCALE_FULL:uint=3;publ icstatic constSCALE_OTHER:uint=4;

}

}pa ckage com cto api kernel

{importflashevents Event;publ icclass PlayerStateEventextends Event

{publ icstatic const USER_AUTH_VALID:String="userAuthVal id";publ icstatic const PLAYER_MEDIA_MODE:String="playerMediaMode";publ icstatic const PLAYER_START:String="playerStart";publ icstatic const PLAYER_MIDDLE:String="playerMiddle";publ icstatic const PLAYER_EMPTY:String="playerEmpty";publ icstatic const PLAYER_FULL:String="playerFul l";publ icstatic const PLAYER_LOADING:String="playerLoading";publ icstatic const PLAYER_REPLAY:String="playerReplay";publ icstatic const PLAYER_STOPPING:String="playerStopping";publ icstatic const PLAYER_STOP:String="playerStop";publ icstatic const PLAYER_LOCK:String="playerLock";publ icstatic const PLAYER_DEF:String="playerDef";

8无忧创想播放器系统 V1.0

publ icstatic const PLAYER_NEXT:String="playerNext";publ icvardataProvider:Object;publ icfunction PlayerStateEvent(type:String,dataProvider:Object=nul l ,bubbles:Boolean=false,cancelable:Boolean=false)

{super(type ,bubbles ,cancelable);thisdataProvider=dataProvider;

}

}

}pa ckage com cto api kernel

{publ icclass User

{publ icstatic const NO_LOGIN:String="-1";publ icstatic const VIP_NOT:String="0";publ icstatic constVIP_NORMAL:String="1";publ icstatic constVIP_OVER:String="2";

}

}pa cka ge com cto api l og

{import flashevents Event;publ icclass LogEventextends Event

{publ icstatic const LOG_4J:String="log4j";publ icvarvalue:String="";publ icvarlevel :String="info";publ icfunction LogEvent(type:String,value:String="",level :String="info",bubbles:Boolean=false,cancelable:Boolean=false)

{super(type,bubbles,cancelable);thisvalue =value;this level=level ;

}

}

}package com cto api popup

{publ icclass PopupState

{publ icstaticconst POPUP:String="popup";publ icstatic const PLAYSET:String="playset";publ icstatic const COLOR:String="color";publ icstatic constSCREENSHOT:String="screenshot";publ icstatic constSHARE:String="share";publ icstatic const VIP_AD:String="vipAd";publ icstatic const VIP_VIDEO:String="vipVideo";

}

}pa cka ge com cto api stat

{

9

无忧创想播放器系统 V1.0

publ icclassStat

{publ icstatic const OP_LOG:String="log";publ icstatic const OP_REFRESH_INFO:String="refreshInfo";publ icstaticconstOP_REFRESH_VV:String="refreshVV";publ icstatic const OP_RESUME_PT:String="resumePtTimer";publ icstatic const OP_PAUSE_PT:String="pausePtTimer";publ icstatic const OP_RESUME_HEAD:String="resumeHeadTimer";publ icstatic const OP_PAUSE_HEAD:String="resumeHeadTimer";publ icstatic const LOG_PLAY_VV:String="vv";publ icstatic const LOG_PLAY_UV:String="uv";publ icstatic const LOG_PLAY_HEAD:String="time";publ icstatic const LOG_PLAY_END:String="end";publ icstatic const LOG_USER_ACTION:String="action";publ icstatic constSTAT_URL:String="http://edu 51cto com/indexphp?do=log";

}

}pa cka ge com cto api

{importflashevents Event;publ icclass PlayerEventextends Event

{publ icstatic const PLAY_STATE:String="playState";publ icvarstate:String;publ icvardataProvider:Object;publ icfunction PlayerEvent(type:String,bubbles:Boolean=false, cancelable:Boolean=false)

{super(type,bubbles, cancelable);

}override publ ic function clone() :Event

{vare:PlayerEvent=new PlayerEvent(type,bubbles,cancelable);edataProvider=dataProvider;estate =state;re tu rn e;

}

}

}

<?xml version="10"encoding="UTF-8"standalone="no"?>

<a ctionScriptProperties analytics="false"mainAppl ication Path="CTO_API as"projectUUID="ecd6d74f-9d97-4a ca-a 64e-8bcc75a 5f403"version="10">

<compi ler additionalCompi lerArguments="-locale en_US" autoRSLOrdering="true" copyDependentFi les="false" fteInMXComponents="false" generateAccessible="false"htmlExpressInstal l="true" htmlGenerate="false" htmlHistoryManagement="false" htmlPlayerVersionCheck="true" includeNetmonSwc="false" outputFolderPath="bin"removeUnusedRSL="true"sourceFolderPath="src"strict="true" targetPlayerVersion="000"useApol loConfig="false"useDebugRSLSwfs="true"verifyDigests="true"warn="true"><compi lerSourcePath/>

<l ibra ryPath defaultLinkType="0">

<l ibra ryPa th Entry kind="4"pa th="">

<excludedEntries>

<l ibraryPathEntry kind="3" l inkType="1"path="${PROJECT_FRAMEWORKS}/l ibs/flexswc"useDefaultLinkType="false"/>

<l ibraryPathEntry kind="3" l inkType="1"path="${PROJECT_FRAMEWORKS}/l ibs/core swc"useDefaultLinkType="false"/>

</excludedEntries>

CloudCone(20美元/年)大硬盘VPS云服务器,KVM虚拟架构,1核心1G内存1Gbps带宽

近日CloudCone商家对旗下的大硬盘VPS云服务器进行了少量库存补货,也是悄悄推送了一批便宜VPS云服务器产品,此前较受欢迎的特价20美元/年、1核心1G内存1Gbps带宽的VPS云服务器也有少量库存,有需要美国便宜大硬盘VPS云服务器的朋友可以关注一下。CloudCone怎么样?CloudCone服务器好不好?CloudCone值不值得购买?CloudCone是一家成立于2017年的美国服务...

TmhHost暑假活动:高端线路VPS季付8折优惠,可选洛杉矶CN2 GIA/日本软银/香港三网CN2 GIA/韩国双向CN2等

tmhhost怎么样?tmhhost正在搞暑假大促销活动,全部是高端线路VPS,现在直接季付8折优惠,活动截止时间是8月31日。可选机房及线路有美国洛杉矶cn2 gia+200G高防、洛杉矶三网CN2 GIA、洛杉矶CERA机房CN2 GIA,日本软银(100M带宽)、香港BGP直连200M带宽、香港三网CN2 GIA、韩国双向CN2。点击进入:tmhhost官方网站地址tmhhost优惠码:Tm...

Gigsgigscloud($9.8)联通用户优选日本软银VPS

gigsgigsCloud日本东京软银VPS的大带宽配置有100Mbps、150Mbps和200Mbps三种,三网都走软银直连,售价最低9.8美元/月、年付98美元。gigsgigscloud带宽较大延迟低,联通用户的好选择!Gigsgigscloud 日本软银(BBTEC, SoftBank)线路,在速度/延迟/价格方面,是目前联通用户海外VPS的最佳选择,与美国VPS想比,日本软银VPS延迟更...

播放器代码为你推荐
刷网站权重如何刷流量才能提高网站权重人人时光机现在世界上有时光机吗vista系统重装怎样重装vista系统怎么样免费装扮qq空间如何免费装扮qq空间http与https的区别http和https到底有什么区别啊???手机区号手机电话号码开头95共15位号码是什么手机号码?如何建立一个网站要建立一个网站怎么弄啊?彩信中心移动的短信中心号码是多少开机滚动条电脑开机启动滚动条时间长怎么办?xp系统停止服务xp系统停止服务怎么办
成都虚拟主机 万网域名查询 山东vps 美国php空间 免费网络电视 牛人与腾讯客服对话 193邮箱 大容量存储器 网站木马检测工具 视频服务器是什么 免备案cdn加速 聚惠网 时间服务器 百度新闻源申请 rsync g6950 dns是什么意思 大硬盘补丁 瓦工工具 主机系统 更多