private void callback_Ready(IVedioController player) { MsgData_VedioCallback msgParam = new MsgData_VedioCallback(player.ID, player.Resource); MobaMessage message = MobaMessageManager.GetMessage((ClientMsg)25014, msgParam, 0f); MobaMessageManager.ExecuteMsg(message); }
private void OnMsg_Create(MobaMessage msg) { MsgData_Vedio_creatPlayer msgData_Vedio_creatPlayer = msg.Param as MsgData_Vedio_creatPlayer; if (msgData_Vedio_creatPlayer != null && this.player == null && msgData_Vedio_creatPlayer._create) { this.player = this.CreatePlayer(msgData_Vedio_creatPlayer._playerID); } }
private IVedioController CreatePlayer(int id) { IVedioController vedioController = this.CreatePlayer_mobile(id); vedioController.ID = id; vedioController.Callback_Ready = new Action <IVedioController>(this.callback_Ready); vedioController.Callback_Start = new Action <IVedioController>(this.callback_Start); vedioController.Callback_End = new Action <IVedioController>(this.callback_Stop); return(vedioController); }