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

播放器代码  时间: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>

wordpress高级跨屏企业主题 wordpress绿色企业自适应主题

wordpress高级跨屏企业主题,通用响应式跨平台站点开发,自适应PC端+各移动端屏幕设备,高级可视化自定义设置模块+高效的企业站搜索优化。wordpress绿色企业自适应主题采用标准的HTML5+CSS3语言开发,兼容当下的各种主流浏览器: IE 6+(以及类似360、遨游等基于IE内核的)、Firefox、Google Chrome、Safari、Opera等;同时支持移动终端的常用浏览器应...

美国cera机房 2核4G 19.9元/月 宿主机 E5 2696v2x2 512G

美国特价云服务器 2核4G 19.9元杭州王小玉网络科技有限公司成立于2020是拥有IDC ISP资质的正规公司,这次推荐的美国云服务器也是商家主打产品,有点在于稳定 速度 数据安全。企业级数据安全保障,支持异地灾备,数据安全系数达到了100%安全级别,是国内唯一一家美国云服务器拥有这个安全级别的商家。E5 2696v2x2 2核 4G内存 20G系统盘 10G数据盘 20M带宽 100G流量 1...

A400互联37.8元/季,香港节点cn2,cmi线路云服务器,1核/1G/10M/300G

A400互联怎么样?A400互联是一家成立于2020年的商家,A400互联是云服务器网(yuntue.com)首次发布的云主机商家。本次A400互联给大家带来的是,全新上线的香港节点,cmi+cn2线路,全场香港产品7折优惠,优惠码0711,A400互联,只为给你提供更快,更稳,更实惠的套餐,香港节点上线cn2+cmi线路云服务器,37.8元/季/1H/1G/10M/300G,云上日子,你我共享。...

播放器代码为你推荐
真正免费的网络电话有没有真正免费的网络电话?而且是好用的?网站运营一般网站如何运营手机区号手机号码前怎样填写正确的国内区号?如何建立一个网站如何建立一个网站?开机滚动条谁会调开机的滚动条宕机宕机是什么意思bluestack安卓模拟器bluestacks怎么用?虚拟专用网虚拟专用网 有什么用处?电子商务网站模板网页制作模板网站优化方案网站优化方案如何写?
代理域名备案 2019年感恩节 google电话 linode日本 秒解服务器 美国主机论坛 云主机51web typecho bgp双线 1g空间 网络空间租赁 重庆双线服务器托管 hdd 联通网站 免费蓝钻 域名转入 rewritecond 脚本大全 winds 远程登录 更多