private void KTVMain_Load(object sender, EventArgs e) { new Task(() => { while (true) { Sprite2DShow.DeleteVideoSprite(KTVPlayer); Thread.Sleep(500); } }).Start(); //KTVPlayer.SetVolume(50); //KTVPlayer.Open("http://rtm-live.glueapi.io/smil:ch001.smil/chunklist_b329000_sleng.m3u8"); }
private void BtnPause_Click(object sender, EventArgs e) { if (KTVPlayer.GetState() == 3) { KTVPlayer.Play(); BtnPause.Appearance.Image = Resources.player_pause; BtnPause.AppearanceHovered.Image = Resources.player_pause_hover; BtnPause.AppearancePressed.Image = Resources.player_pause_press; Sprite2DShow.CreateVideoSprite(KTVPlayer, Sprite2DCommonModel.Play()); } else if (KTVPlayer.GetState() == 5) { KTVPlayer.Pause(); BtnPause.Appearance.Image = Resources.player_play; BtnPause.AppearanceHovered.Image = Resources.player_play_hover; BtnPause.AppearancePressed.Image = Resources.player_play_press; Sprite2DShow.CreateVideoSprite(KTVPlayer, Sprite2DCommonModel.Pause()); } }