You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
Core.Initialize();
// Initializes the GTK# app
Application.Init();
using var libvlc = new LibVLC(enableDebugLogs: true);
using var mediaPlayer = new MediaPlayer(libvlc);
// Create the window in code. This could be done in glade as well, I guess...
var myWin = new Window("LibVLCSharp.GTK.Sample");
myWin.Resize(800, 450);
Frame c = new Frame();
mediaPlayer.Hwnd = c.Handle;
myWin.Add(c);
myWin.ShowAll();
using var media = new Media(libvlc,
new Uri("https://bj.bcebos.com/kpy-organizations/U2943159/videos/2021062612303528372289135202.mp4"));
mediaPlayer.Play(media);
myWin.DeleteEvent += (sender, args) =>
{
mediaPlayer.Stop();
Application.Quit();
};
Application.Run();
}
`
The text was updated successfully, but these errors were encountered:
net core 3.1
`
static void Main(string[] args)
{
`
The text was updated successfully, but these errors were encountered: