private void Play(PlayInfo item) { _mediaPlayer.Source = new Uri(_playInfoFactory.CreatePlayUri(item.ft)); _dacPlayInfo.fn = item.Bitrate; _dacPlayInfo.ft = item.ft; _dacPlayInfo.mp4Name = item.Rid; }
void _playInfoFactory_GetPlayInfoSucceed(object sender, HttpFactoryArgs<PlayInfo> args) { _playInfo = args.Result; SetVarDefault(); BuildBitrates(); if (BeginPlay(-1, false)) { xPlayerControlBar.ChannelDetailInfo = ChannelDetailInfo; } else { SetInfo(false, "", false); MessageBox.Show("不能播放该影片"); } }