ZeBobo5 / Vlc.DotNet

.NET control that hosts the audio/video capabilities of the VLC libraries
MIT License
947 stars 416 forks source link

I want to develop UI in raspberry pi. Is there any way? #694

Closed bbhxwl closed 3 years ago

bbhxwl commented 3 years ago

I tried GTK? Using VLC, I can play sound, but no image, I don't know why?

https://github.com/GtkSharp/GtkSharp/issues/264

jeremyVignelles commented 3 years ago

Probably the wrong repo, Gtk is only supported in LibVLCSharp

bbhxwl commented 3 years ago

Probably the wrong repo, Gtk is only supported in LibVLCSharp

This code I can have sound in Windows 10, but no image, there are many errors in raspberry, it seems that it can not run. Hope to get help, I have a project to play video in raspberry pie, but I only know C #. If C #, I can only use Python's Qt5, but I'm not very proficient in Python

jeremyVignelles commented 3 years ago

Use this: https://code.videolan.org/videolan/LibVLCSharp/-/blob/3.x/samples/LibVLCSharp.GTK.Sample/Program.cs

Hwnd is windows-specific, you can't use it on linux.

If it still doesn't work, report your issue there : https://code.videolan.org/videolan/LibVLCSharp/-/issues

bbhxwl commented 3 years ago

Use this: https://code.videolan.org/videolan/LibVLCSharp/-/blob/3.x/samples/LibVLCSharp.GTK.Sample/Program.cs

Hwnd is windows-specific, you can't use it on linux.

If it still doesn't work, report your issue there : https://code.videolan.org/videolan/LibVLCSharp/-/issues

Net core 3.1 has no videoview. The example you give is net framework

bbhxwl commented 3 years ago

Use this: https://code.videolan.org/videolan/LibVLCSharp/-/blob/3.x/samples/LibVLCSharp.GTK.Sample/Program.cs

Hwnd is windows-specific, you can't use it on linux.

If it still doesn't work, report your issue there : https://code.videolan.org/videolan/LibVLCSharp/-/issues

For help, I will not use net core 3.1 to display in Linux.

jeremyVignelles commented 3 years ago

We only support mono's GtkSharp which doesn't support .net core. We plan to implement GtkSharp/GtkSharp later, but feel free to do the PR for that

bbhxwl commented 3 years ago

We only support mono's GtkSharp which doesn't support .net core. We plan to implement GtkSharp/GtkSharp later, but feel free to do the PR for that I also tested the GTKSharp of mono, which can't play VLC

public LibVLC _libVLC; public MediaPlayer _mp; public Form1() { Core.Initialize(); InitializeComponent(); _libVLC = new LibVLC(); _mp = new MediaPlayer(_libVLC); videoView1.MediaPlayer = _mp; var media = new Media(_libVLC, new Uri("https://bj.bcebos.com/kpy-organizations/U2943159/videos/2021062612303528372289135202.mp4")); bool b= _mp.Play(media); }

image

bbhxwl commented 3 years ago

We only support mono's GtkSharp which doesn't support .net core. We plan to implement GtkSharp/GtkSharp later, but feel free to do the PR for that

sudo apt install libvlc-dev sudo apt install vlc sudo apt install gtk-sharp2

bbhxwl commented 3 years ago

image

bbhxwl commented 3 years ago

We only support mono's GtkSharp which doesn't support .net core. We plan to implement GtkSharp/GtkSharp later, but feel free to do the PR for that

https://github.com/videolan/libvlcsharp/blob/3.x/docs/linux-setup.md

libvlc.so and libvlccore.so will be located at /usr/lib. Should you want to load the libvlc libraries from another location than /usr/lib, you'd need to set LD_LIBRARY_PATH.

Where is libvlc.so and libvlccore.so

jeremyVignelles commented 3 years ago

Please copy the sample I gave you and stop sending messages on this closed issue

bbhxwl commented 3 years ago

Please copy the sample I gave you and stop sending messages on this closed issue I really tested it. I can't. My English is not good. I hope I can help. Can raspberry be CSharp + VLC?

image

bbhxwl commented 3 years ago

I really tested it. I can't. My English is not good. I hope I can help. Can raspberry be CSharp + VLC?