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

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

DiyVM独立服务器:香港沙田服务器,5M带宽CN2线路,L5630*2/16G内存/120G SSD硬盘,499元/月

diyvm怎么样?diyvm商家VPS主机均2GB内存起步,三个地区机房可选,使用优惠码后每月69元起;DiyVM独立服务器开设在香港沙田电信机房,CN2线路,5M带宽,自动化开通上架,最低499元/月,配置是L5630*2/16G内存/120G SSD硬盘。DiyVM是一家成立于2009年的国人主机商,提供的产品包括VPS主机、独立服务器租用等,产品数据中心包括中国香港、日本大阪和美国洛杉矶等,...

RAKSmart VPS主机半价活动 支持Windows系统 包含香港、日本机房

RAKSmart 商家最近动作还是比较大的,比如他们也在增加云服务器产品,目前已经包含美国圣何塞和洛杉矶机房,以及这个月有新增的中国香港机房,根据大趋势云服务器算是比较技术流的趋势。传统的VPS主机架构方案在技术层面上稍微落后一些,当然也是可以用的。不清楚是商家出于对于传统VPS主机清理库存,还是多渠道的产品化营销,看到RAKSmart VPS主机提供美国、香港和日本机房的半价促销,当然也包括其他...

GreenCloudVPS$20/年多国机房可选,1核@Ryzen 3950x/1GB内存/30GB NVMe/10Gbps端口月流量2TB

GreencloudVPS此次在四个机房都上线10Gbps大带宽VPS,并且全部采用AMD处理器,其中美国芝加哥机房采用Ryzen 3950x处理器,新加坡、荷兰阿姆斯特丹、美国杰克逊维尔机房采用Ryzen 3960x处理器,全部都是RAID-1 NVMe硬盘、DDR4 2666Mhz内存,GreenCloudVPS本次促销的便宜VPS最低仅需20美元/年,支持支付宝、银联和paypal。Gree...

播放器代码为你推荐
支付宝查询余额支付宝里如何查询银行卡里面的余额?伪静态怎么做伪静态?办公协同软件免费的多人协同办公软件哪些,我了解的有钉钉、企业微信,其他的还有么?中小企业信息化中小企业如何进行企业信息化规划bt封杀现在是全面封杀BT下载了吗?现在都找不到BT下载影片了网站优化方案网站优化方案怎么写?gbk编码表gbk内码表怎么看服务器连接异常服务器连接异常,即将退出,请重新进入游戏.怎么回事微信怎么看聊天记录微信在手机上怎么查看聊天记录微信怎么看聊天记录怎样查找一个人的微信聊天记录
com域名空间 域名服务器的作用 新网域名管理 华为云服务 godaddy主机 Dedicated 线路工具 日本空间 php免费空间 域名转向 北京双线 isp服务商 中国电信测速网 如何用qq邮箱发邮件 国外免费asp空间 hdd 512mb 太原联通测速 ssl加速 google搜索打不开 更多