Namespace.register("U.MPlayer"); //音乐播放器区域 //#region 音乐播放器 U.Ut.AddObj(U.MPlayer, { "IsUpPos": true, "IsP": true, "Time": null, "UMPL": null, "UMPP": null, "UMMP": null, "TF": "J", "UTF": ["MPlayer"] }); //统一回调 U.MPlayer.UHD = function (UTF) { var i, _UCB = U, _UTE = U.MPlayer.UTF, _UAE = Array.apply(this, arguments); _UAE.shift(); for (i = 0; i < _UTE.length; i++) { _UCB = _UCB[_UTE[i]]; }; _UCB[UTF].apply(this, _UAE); //函数执行 } //#region 初始化音乐播放器 //#region 窗体播放器 //加载音乐播放器 U.MPlayer.InitMusicPlayer = function () { var _UDOD = $("#UD_SYMM")[0]; (_UDOD && !U.D.SY.ET["FL"]["MO"]) && (_UDOD.innerHTML = ' '); // U.D.SY.ET["FL"]["MO"] = $("*UD_SYMMF")[0]; U.MPlayer.UTF = ["MPlayer"]; //音乐播放 } //点击直接打开音乐播放器 U.MPlayer.DKCSHYY = function () { if (U.D.SY.ET["FL"]["userid"]) { var _UDOD = $("#UD_SYMMO").addAttrArray({ "style": { "display": "block"} }).Parent(); U.D.PopupWindow(_UDOD); U.MPlayer.DXBFYY(); } else { U.Dk.CSHYY(US.userInfo); } } //初始化音乐播放器 //参数一:文件信息 //参数二:用户信息。 //参数四:userid为用户id。 U.MPlayer.YYLoad = function (UDID, UIF, UDE) { var _UGE = U.D.SY.ET["FL"], _UDOD = $("#UD_SYMMO"), _UDAD = $("div", $("#UD_SYMRTLT")[0]), _UDCD = _UDAD[0], _UIMG = $("img", _UDCD)[0] || $$("img", {}, _UDCD); UDID = UDID || US.MG; _UGE.er = 0; _UGE["MO"].Playing = true; setTimeout(U.M.apply(this, [[U.MPlayer.AsynYYLoad, [UDE, UIF, UDID]]]), 0); U.MPlayer.YFOP(U.D.SY.ET["UL"]["WS"][4], $("#UD_SYMRC")[0]); _UGE["LOD"] = $("#UD_SYMRTLC").find("div"); //初始化资料 $(_UIMG).addAttrArray({ "onerror": U.M.ImgError, "title": (_UDAD[4].innerText = UIF.UserNickName || UIF.UserName || "游客"), "src": U.M.GetImgU(UIF.UserThumbnailImageHead), "onclick": [[U.M.StopBubble], [U.U.I.ViewOtherUserInfo, [UIF.UserId]]] }); //用户信息提示 _UDOD[0].style.display = "block"; U.Ut.AddObj(_UGE, { "DID": UDID, "userid": UIF.UserId || UIF.UserID }); //当前使用用户的变量 U.UI.Form({ draw: false, max: false, close: { onclick: U.MPlayer.SYYJY }, id: "UD_SYM", style: { width: "953px", height: "553px" }, content: _UDOD, title: "音乐播放器", hst: { style: { "padding": "0 0 0 10px"} }, bst: { "style": { overflow: "hidden"}} }); //创建窗体 } //初始化音乐播放界面 U.MPlayer.AsynYYLoad = function (UDE, UIF, UDID) { if (UDE) { //打印音乐 var _UIF, _UAE = UDE, _UDOD = $("#UD_SYMMLC")[0]; _UDOD.innerText = ""; _UIF = U.MPlayer.YYOP(_UAE, _UDOD); $("#UD_SYMMLXO")[0].innerHTML = "共有" + _UIF + "首音乐"; } else { U.Dk.CSHYY(UIF) } //获取音乐 } //打印文件和文件夹 U.MPlayer.YYOP = function (UDE, UDOD) { var i, j, _UDTD, _UDSD, _UDMD, UCE, _UDJD, _UIF = 0, _UDFD = $$("frag"); if (UDE.length) { for (i = 0; i < UDE.length; i++) { _UDTD = $$("div", { "className": "UD_SYMMLCA" }, (UDOD || _UDFD)); _UDSD = $$("div", { "className": "UD_SYMMLCT", "onclick": [[U.MPlayer.SYYOP, [_UDTD]]] }, _UDTD); _UDMD = $$("div", { "className": "UD_SYMMLCTI UD_SYI UD_SYMMLCTIO" }, _UDSD); $$("div", { "className": "UD_SYMMLCTM UTDF", "innerHTML": UDE[i][0].UserallDirectoryName }, _UDSD); UCE = U.MPlayer.MYYOP(_UDTD, UDE[i][2]); _UIF += UCE[0]; (UCE[1]) && (_UDJD = UCE[1]); } } else {//空音乐提示 _UDTD = $$("div", { "className": "UD_SYMMLCV" }, _UDFD); $$("div", { "className": "UD_SYMMLCVL UD_SYI" }, _UDTD); _UDSD = $$("div", { "className": "UD_SYMMLCVR" }, _UDTD); $$("div", { "className": "UD_SYMMLCVRS", "innerHTML": "这里当前还没有任何歌曲!!" }, _UDSD); _UDMD = $$("div", { "className": "UD_SYMMLCVRX", "innerHTML": "你可以:" }, _UDSD); $$("span", { "innerHTML": "云分享添加", "onclick": [[U.D.DT.YYDK, ["Disk", { userid: US.userInfo.userid, directoryid: US.MG}]]] }, _UDMD); } UDOD.appendChild(_UDFD); (_UDJD) && (U.M.SCT(_UDJD)); return _UIF; } //打印音乐文件 U.MPlayer.MYYOP = function (UDOD, UDE) { var i, _UDSD, _UDMD, _UDKD, _UTP = ["UserFilesID", "UserDirectoryID"], _UGE = U.D.SY.ET["FL"], _UCE = _UGE["Entity"], _UTF = _UGE["MO"].getStatus(), _UDTD = $$("div", { "className": "UD_SYMMLCO" }, UDOD); for (i = 0; i < UDE.length; i++) { _UDSD = $$("ul", { "className": "UD_SYMMLCOO", "ondblclick": [[U.MPlayer.BFYY, [UDE[i], "this"]]] }, _UDTD); $$("div", { "className": "UD_SYMMLCOOL", "innerHTML": (i < 9 ? "0" : "") + (i + 1) }, _UDSD); _UDMD = $$("div", { "className": "UD_SYMMLCOOC UTDF", "innerHTML": UDE[i].UserallDirectoryName || UDE[i].UserFilesName }, _UDSD); $$("div", { "className": "UD_SYMMLCOOR", "innerHTML": "00:00" }, _UDSD); if (_UCE && ((_UCE[_UTP[0]] && (_UCE[_UTP[0]] == UDE[i][_UTP[0]] || _UCE[_UTP[0]] == UDE[i][_UTP[1]])) || (_UCE[_UTP[1]] && (_UCE[_UTP[1]] == UDE[i][_UTP[0]] || _UCE[_UTP[1]] == UDE[i][_UTP[1]])))) { (_UDKD = _UDSD).ondblclick(_UTF); } } (_UCE && !_UDKD) && (U.MPlayer.BFYY(_UCE)); return [UDE.length, _UDKD]; } //鼠标移动 文字移动 U.MPlayer.MYYOPWZ = function () { } //打印好友区域 U.MPlayer.YFOP = function (UDE, UDOD) { var i, _UDTD, _UDID, _UDSD, _UDJD, _UDFD = $$("frag"); for (i = 0; i < UDE.length; i++) { _UDTD = $$("div", { "className": "UD_SYMRCO", "title": "查看" + UDE[i].UserName + "音乐列表", "onclick": [[U.Dk.CSHYY, [UDE[i]]]] }, _UDFD); _UDID = $$("div", { "className": "UD_SYMRCOL" }, _UDTD); $$("img", { "onerror": U.M.ImgError, "src": U.M.GetImgU(UDE[i].UserThumbnailImageHead) }, _UDID); _UDSD = $$("div", { "className": "UD_SYMRCOR UTDF" }, _UDTD); _UDJD = $$("div", { "className": "UD_SYMRCORS" }, _UDSD); $$("div", { "className": "UD_SYMRCORSL UTDF", "innerHTML": UDE[i].FriendsDescript || UDE[i].UserName, "onclick": [[U.M.StopBubble], [U.U.I.ViewOtherUserInfo, [UDE[i].UserId || UDE[i].UserID]]] }, _UDJD); $$("div", { "className": "UD_SYMRCORSR UTDF", "innerHTML": "音乐(" + (UDE[i].UMN == null ? UDE[i].CN : UDE[i].UMN || 0) + ")" }, _UDJD); $$("div", { "className": "UD_SYMRCORX UTDF", "innerHTML": UDE[i].UserIndividualitysignature || "暂时没有填写个人介绍" }, _UDSD); } UDOD.innerText = ""; UDOD.appendChild(_UDFD); } //切换好友和热门 U.MPlayer.RMQHYY = function (UDOD, UTF) { if (!UTF || !U.U.L.isLogin(3)) { var i, _UDE = [U.D.SY.ET["UL"]["WS"][4], "#F14242", "UD_SYMRQR UD_SYMRQRO", "UD_SYMRQZ"], _UDPD = $(UDOD).Parent(), _UDAD = $("div", _UDPD); if (UTF) { _UDE[0] = US.Friend[1]; _UDE[1] = "#1796F5"; _UDE[2] = "UD_SYMRQZ"; _UDE[3] = "UD_SYMRQR UD_SYMRQZO"; } for (i = 0; i < _UDAD.length; i++) { _UDAD[i].className = _UDE[i + 2]; }; _UDPD.style.border = "1px solid " + _UDE[1]; if (_UDE[0]) { U.MPlayer.YFOP(_UDE[0], $("#UD_SYMRC")[0]) } else { U.Alert("请登录查看"); } //打印查看 } } //#endregion //#endregion //#region 点击播放音乐 //点击播放音乐 U.MPlayer.BFYY = function (UDE, UDOD, UTF) { U.MPlayer.TBFYY(UDE, UDOD, UTF); // setTimeout(U.M.apply(this, [[U.MPlayer.TBFYY, [UDE, UDOD, UTF]]]), 0); } //点击直接播放 U.MPlayer.TBFYY = function (UDE, UDOD, UTF) { var _userid = US.userInfo.userid, _UGE = U.D.SY.ET["FL"], _UDAD = $("#UD_SYMRTLC").Child(), _UDCD = $(_UDAD[1]).Child(); //设置样式播放样式 $("#UD_SYMRTLTRX")[0].innerHTML = UDE.UserallDirectoryName || UDE.UserFilesName; $("#UD_SYMRTLTLO")[0].style.display = "block"; _UDAD[0].innerText = _UDAD[2].innerText = "00:00"; _UDCD[1].style.width = _UDCD[2].style.left = "0px"; _UGE["Entity"] = UDE; U.MPlayer.DXBFYY(); U.MPlayer.ZPYY([$("#UD_SYMMLSK")[0], $("#UD_SYMRTLTLO")[0]], true); U.MPlayer.YSBFYY(UDOD, _UGE["PF"]["OB"]); //播放的位置样式 //修改播放的时间 (_userid == US.userInfo.userid) && (UDE.UserDirectoryModifyTime = U.MT.toTimeStamp(new Date()), U.A.Request(US.Auth, ["SaveFileContent", UDE.UserDirectoryID, ""], U.M.apply, [""])); (!UTF) && (_UGE["MO"].loadAplay(US.fs + UDE.UserFilesServerName, 0.6)); //播放音乐 } //获取最近排序的音乐 U.MPlayer.PXYYOP = function (DID, userid) { var _UDE, _UDOD = $("#UD_SYMMLC")[0], _UDFL = U.D.SY.ET["FL"]; DID = DID || _UDFL["DID"]; userid = userid || _UDFL["userid"]; U.Alert("列表加载中,请稍后..."); _UDE = _$(U.Dk.LE.GM(DID || US.MG)).Like({ "UserDirectoryModifyTime": "Date", "UserDirectoryExtendType": "mp3" }); //获取所有播放过的音乐 _UDE = U.M.Sequence(_UDE, "UserDirectoryModifyTime", U.MT.SizeComparison).reverse(); //排序播放 _UDOD.innerText = ""; U.MPlayer.MYYOP(_UDOD, _UDE); } //播放区域大小调整 U.MPlayer.DXBFYY = function () { var _UDOD = $("#UD_SYMRTLT"), _UDAD = _UDOD.Child(); _UDOD[0].style.width = (_UDAD[0].clientWidth + _UDAD[1].clientWidth + 18) + "px"; //加载音乐 } //#region 音乐播放器调整 //点击展开和缩小 U.MPlayer.SYYOP = function (UDOD) { var _UDAD = $(UDOD).Child(), _UDTD = $(_UDAD[0]).Child()[0], _UDE = _UDAD[1].style.display == "none" ? ["block", " UD_SYMMLCTIO"] : ["none", ""]; $(_UDTD).addAttrArray({ "className": "UD_SYI UD_SYMMLCTI" + _UDE[1] }); _UDAD[1].style.display = _UDE[0]; } //设置播放样式设置 U.MPlayer.YSBFYY = function (UDOD, UDTD) { var i, _UDSD, _UGE = U.D.SY.ET["FL"], _UDE = [[UDTD, "", _UGE["PF"]["HL"], ""], [UDOD, "UD_SYMMLCOOB", "", " UD_SYI UD_SYMMLCTI"]]; U.Ut.AddObj(_UGE["PF"], { "OB": UDOD, "HL": $("div", UDOD)[0].innerText }); for (i = 0; i < _UDE.length; i++) { (_UDSD = _UDE[i][0]) && (_UDSD.className = "UD_SYMMLCOO " + _UDE[i][1], $("div", _UDSD).addAttrArray({ "innerHTML": _UDE[i][2], "className": "UD_SYMMLCOOL" + _UDE[i][3] }, 0)); } } //点击音乐播放暂停 U.MPlayer.SDZT = function (UDOD) { var _UTF, _UGE = U.D.SY.ET["FL"]; if (_UGE["UBMT"]) { U.MPlayer.AsynSYBFYY(_UGE["Entity"]); _UGE["UBMT"] = false; _UTF = true; } //播放音乐 U.MPlayer.ZPYY(UDOD, _UTF); //播放停止样式 } //暂停和播放 U.MPlayer.ZPYY = function (UDOD, UTF) { var i, _UDTD = U.D.SY.ET["FL"]["MO"], _UDE = [{ "className": "UD_MPLZ UD_SYMMLSO UD_SYI UD_SYMMLSK", "title": "暂停" }, { "className": "UD_SYMRTLTLOO UD_SYI", "title": "暂停"}]; if (!UTF && !_UDTD.pauseOstart(false)) { U.Ut.AddObj(_UDE[0], { "className": _UDE[0].className + "O", "title": (_UDE[0].title = _UDE[1].title = "播放") }); _UDE[1].className += " UD_SYMRTLTLOT"; } UDOD[1] = $(UDOD[1]).Child()[0]; for (i = 0; i < UDOD.length; i++) { $(UDOD[i]).addAttrArray(_UDE[i]); } //设置值 } //关闭音乐 U.MPlayer.SYYJY = function () { var _UDOD = U.D.SY.ET["FL"]["MO"]; if (_UDOD.getStatus() == true) { U.MPlayer.ZPYY[$("#UD_SYMMLSK")[0], $("#UD_SYMRTLTLO")[0]]; } //正在播放停止播放 else { _UDOD.pauseOstart(true); } } //#endregion //#endregion //#region 音乐播放添加 //直接听音乐 直接听了添加到我的音乐列表里 U.MPlayer.TYY = function (UDE) { if (UDE) { if (US.userInfo.userid) { U.MPlayer.SCYYJY(UDE, U.M.apply(this, [[U.MPlayer.YYLoad, [US.MG, US.userInfo, null]]])); } //登录用户添加到自己的列表下 else { U.D.SY.ET["FL"]["Entity"] = UDE; U.MPlayer.YYLoad(null, {}, [[{ "UserallDirectoryName": "试听列表" }, [], [UDE]]]); } //游客用户 } } //音乐到试听类表 U.MPlayer.SCYYJY = function (UDE, UCB) { if (!U.U.L.isLogin(3)) { UDE = UDE || U.D.SY.ET["FL"]["Entity"]; U.A.Request(US.Auth, ["CopyAndPasteFiles", US.userInfo.userid, US.MG, UDE.UserFilesID || UDE.UserDirectoryID, ""]), U.MPlayer.AsynSCYYJY, ["", US.MG, [UDE], 0, UCB, US.userInfo.userid, null, "Copy"]; //添加到用户列表 } } //异步 U.MPlayer.AsynSCYYJY = function (r) { var context = r.context, _UFN = context[4]; context[4] = null; U.D.SY.ET["FL"]["Entity"] = U.Dk.RE.AsynUFStick(r); //回调函数 (_UFN) && (_UFN()); U.Alert("成功收藏该音乐~"); //收藏成功 } //添加列表 U.MPlayer.TJYYLB = function () { U.D.DT.YYDK("Disk", { "userid": US.userInfo.userid, "directoryid": US.MG }); //打开网盘 U.Dk.RE.WPXJWJ("folder", $("#UD_SYW")[0]); //新建文件夹 } //#endregion //#region flash交互 //#region 播放数据更新 //更新下载的进度 缓冲 U.MPlayer.ULD = function (UTL, UST, UTF) { var _UGE = U.D.SY.ET["FL"], _UW = _UGE["LOD"][1].offsetWidth; _UGE["LOD"][2].style.width = _UW * UTL / 100 + "px"; //更新的进度 if (!UTF && _UGE["BM"] && (UTL == 100 || (UST % 60) >= 4)) { U.D.SY.ET["FL"]["MO"].pauseOstart(false); _UGE["BM"] = false; } //进度更新到制定位置播放 } //播放的更新 U.MPlayer.UPT = function (UPT, UTM, ULD, USL) { var _UGE = U.D.SY.ET["FL"], _UDOD = _UGE["MO"], _UDAD = _UGE["LOD"], _UTF = _UDOD.getStatus(), _UST = USL - UPT; _UST = _UST / 60 > 0 ? true : (_UST % 60) >= 10; _UGE["TI"] = UTM; if (ULD == 1 || _UST) {//下载完成 (!_UTF && _UGE["BM"]) && (_UDOD.pauseOstart(false), _UGE["BM"] = false); _UDAD[0].innerText = parseInt(UPT / 60).prefixInteger() + ":" + parseInt(UPT % 60).prefixInteger(); _UDAD[3].style.width = _UDAD[4].style.left = (_UDAD[1].offsetWidth * (UTM ? (UPT / UTM) : 0)) + "px"; ; //播放时间 } else { (_UTF && UPT) && (_UDOD.pauseOstart(true), _UGE["BM"] = true); } //暂停播放 } //加载成功后总时间 U.MPlayer.GD = function (ULD) { var _UGE = U.D.SY.ET["FL"], _UDTD = _UGE["PF"]["OB"] ? $(_UGE["PF"]["OB"]).Child() : null, _UDAD = _UGE["LOD"]; _UGE["TI"] = ULD; _UDAD[5].innerText = parseInt(ULD / 60).prefixInteger() + ":" + parseInt(ULD % 60).prefixInteger(); (_UDTD[2]) && (_UDTD[2].innerText = _UDAD[5].innerText); } //错误处理 U.MPlayer.Error = function (UE) { var _UGE = U.D.SY.ET["FL"]; (US.userInfo.userid) && (U.Alert("此音乐暂停服务。")); if (_UGE.er++ < 10) { U.MPlayer.PNM(); } else { _UGE["MO"].pauseOstart(true); _UGE.er = 0; } //错误音乐太多 停止 } //#endregion //#region 上下首 //切换播放模式 U.MPlayer.QHMS = function (UDOD) { var _UDFL = U.D.SY.ET["FL"], _UTF = _UDFL["TF"], _UDE = ["J", "UD_SYMRTRLO", "随机"]; switch (_UTF) { case "J": _UDE = ["D", "UD_SYMRTRLT", "单曲"]; break; case "D": _UDE = ["S", "", "列表"]; break; } _UDFL["TF"] = _UDE[0]; $(UDOD).addAttrArray({ "className": "UD_SYMRTRL UD_SYI " + _UDE[1], "title": _UDE[2] }); U.Alert("切换到" + _UDE[2] + "模式"); } //flash听完一首后直接下一首 U.MPlayer.PNM = function () { U.MPlayer.LBSXYY(1); } //首页音乐上下首 U.MPlayer.TSDSXS = function () { var _UDE = U.D.SY.ET["FL"]["Entity"]; if (_UDE["bs"]) { _UDE["bs"](); } else { U.MPlayer.SDSXS(1, true); } } //上下首 U.MPlayer.SDSXS = function (UIE, UTF) { var _UDE, _UIM, _UTF, _UDSD, _UGE = U.D.SY.ET, _UDOD = $("#UD_MP.UD_MPRRR").Child(), _UDTD = _UGE["FL"]["PF"]["OB"], _UTP = _UGE["FL"]["TF"], _UCE = _UGE["FL"]["Entity"], _UIF = US.userInfo; (_UTP == "D" && UTF) && (_UTP = ""); if ((_UTF = (_UIF.UserId && _UDOD[0].className != "UD_MPRRRL UD_MPRRRLO"))) { _UDE = U.Dk.DiskOperatingSwitch(_UIF.UserId)[0]; } else { _UDE = _UGE["UL"]["WS"][0]; } //随机播放模式 //播放音乐 switch (_UGE["FL"]["TF"]) { case "J": _UIM = U.P.getRandom(_UDE.length); _UDE = _UDE[_UIM]; _UDOD = $(_UDOD[_UTF ? 2 : 3]).childg()[1]; _UDOD = $(_UDOD).Child()[UIE]; break; //随机 case "D": _UGE["FL"]["Entity"] = null; _UDE = _UCE; _UDOD = _UDTD; break; //单曲循环 default: //列表循环 if (_UDTD) { _UDSD = $(_UDTD)[UIE == 1 ? "next" : "prev"]()[0]; if (!_UDSD) { if (UIE == -1) { _UDSD = _UDTD; break; } } } //获取 if (!_UDSD) { _UIM = _UDE.indexOf(_UCE); _UIM = _UIM + UIE; if (_UIM < 0) { _UIM = 0 } else if (_UIM == _UDE.length) { if (!_UTF && !(_UDE.length % 100)) { U.MPlayer.GSDSXS(_UDE.length, UIE); return; } else { _UIM = 0; } } _UDSD = $(_UDOD[_UTF ? 2 : 3]).childg()[1]; _UDSD = $(_UDSD).Child()[_UIM]; _UDE = _UDE[_UIM]; } _UDOD = _UDSD; break; } if (_UDOD) { _UDOD.ondblclick(); } else { U.MPlayer.SYBFYY(_UDE); } //播放音乐 } //获取随机音乐 U.MPlayer.GSDSXS = function (US, UIE, UCB) { //#error U.A.Request(US.CD, [US.DB, "UseStudio_Disk", "UD_S_GetUserAlbu", US + 1, US + 100]), U.MPlayer.AsynGSDSXS, [null, UIE, UCB]; //等待播放中 // U.A.Request(US.Auth,"UseStudioDisk.GetUserAlbu", [US + 1, US + 100]), U.MPlayer.AsynGSDSXS, [null, UIE, UCB]; //等待播放中 } //获取随机音乐异步 U.MPlayer.AsynGSDSXS = function (r) { var _UDE = U.D.SY.ET["UL"]["WS"], context = r.context, _UIE = context[1], _UCB = context[2]; r = r.value; if (r && r.length) { _UDE[0] = _UDE[0].concat(r); } else { UIE = 0; } _UCB ? _UCB() : U.MPlayer.SDSXS(_UIE); //获取播放音乐 } //上下首歌曲 U.MPlayer.SXYY = function (TF) { switch (U.D.SY.ET["FL"]["TF"]) { case "J": U.MPlayer.SFSXYY(); break; case "D": U.D.SY.ET["FL"]["PF"]["OB"].ondblclick(); break; default: U.MPlayer.LBSXYY(TF); break; } } //列表顺序 U.MPlayer.LBSXYY = function (ITF) { var i, _UDCD, _UTF, _UDFL = U.D.SY.ET["FL"], _UDOD = _UDFL["PF"]["OB"], _UDAD = $("ul", $("#UD_SYMMLC")[0]), _UTL = _UDAD.length; for (i = 0; i < _UTL; i++) { if ((_UDCD = _UDAD[i]) == _UDOD) { if ((_UTF = i + ITF) >= _UTL) { _UDCD = _UDAD[0]; } //最后一首下一首回到第一首 else if (_UTF < 0) { _UDCD = _UDAD[_UTL - 1]; } //第一首回到最后一首 else { (_UDAD[_UTF]) && (_UDCD = _UDAD[_UTF]); } //上下首 _UDCD.ondblclick(); return; } } } //随机播放 U.MPlayer.SFSXYY = function () { var _UDAD = $("ul", $("#UD_SYMMLC")[0]), _UTF = U.P.getRandom(_UDAD.length); _UDAD[_UTF - 1].ondblclick(); } //#endregion //#region 声音和进度调整调整 //声音调整 U.MPlayer.YYSYTJ = function (UDOD, UL) { UDOD.title = Math.round(UL) + "%"; U.D.SY.ET["FL"]["MO"].setVol(UL / 100); } //静音变化 U.MPlayer.YYJY = function (UDOD, UL) { var _UDAD = $("div", $(UDOD).Parent()); _UDAD[UL ? "removeClass" : "addClass"]("UD_SYMMLSYOO", 0); U.MPlayer.YYSYTJ(_UDAD[1], UL); } //调节进度 U.MPlayer.YYST = function (UDOD, UL) { var _UGE = U.D.SY.ET["FL"], _UTF = event.type == "mouseup"; _UGE["MO"].SetTF(_UTF); if (_UTF) { _UGE["MO"].SkipTo(_UGE["TI"] * UL * 10); } } //调节声音和进度 U.MPlayer.YDSYTJ = function (UDOD, UCB) { UCB = [U.MPlayer.OVM, [$(UDOD).Parent(), UCB]]; document.onmousemove = U.M.apply(UDOD, [[UDOD.setCapture], UCB]); document.onmouseup = U.M.apply(UDOD, [[U.MPlayer.TYDSYTJ, [UDOD]], UCB]); } //进度调变化 U.MPlayer.OVM = function (UDOD, UCB) { var _UDAD = $("div", UDOD), _UCW = UDOD.clientWidth, _UL = ((U.M.GetMousep()["X"] - U.M.pageXY(UDOD)[1]) / _UCW) * 100; _UL = _UL < 0 ? 0 : (_UL > 100) ? 100 : _UL; _UDAD[_UDAD.length - 2].style.width = _UDAD[_UDAD.length - 1].style.left = _UL + "%"; (UCB) && (UCB(UDOD, _UL)); } //释放调节 U.MPlayer.TYDSYTJ = function (UDOD) { UDOD.releaseCapture(); document.onmouseup = document.onmousemove = null; } //#endregion //#endregion //#endregion