picoe / Eto

Cross platform GUI framework for desktop and mobile applications in .NET
Other
3.67k stars 335 forks source link

Add Media Playback Controls/API for Audio and Video #1300

Open Xisrith opened 5 years ago

Xisrith commented 5 years ago

Is there a current method for handling media playback?

I know WPF has the MediaElement and MediaPlayer classes. Is it expected that this sort of thing be handled by platform specific code? Or does Eto have a method for handling such things? I couldn't find anything media related in the API docs.

Thanks

cwensley commented 5 years ago

Hey @Zeman97, thanks for the inquiry.

There's no features in Eto for playing back audio or video at the moment.

Video might be tricky to support on Linux/Gtk due to the numerous frameworks (gstreamer, mplayer, vlc, etc), and WinForms as there's no built-in functionality like WPF though perhaps the WPF control can be embedded in that case to make it easy.

SlowLogicBoy commented 5 years ago

https://gitlab.gnome.org/GNOME/banshee looks like Banshee uses gstreamer

Xisrith commented 5 years ago

I use and target Windows, so I'm only able to look into WPF, but I could try to figure it out and make a branch. What is the best resource for creating platform controls? Didn't really understand the "custom control" section of the wiki.

harry-cpp commented 5 years ago

Video might be tricky to support on Linux/Gtk due to the numerous frameworks (gstreamer, mplayer, vlc, etc),

Gtk 4 will have a GtkVideo and some other nice Video/Audio related widgets so it will be pretty straight forward.

meteorsnows commented 5 years ago

Official way especially from Microsoft is slow and might no end well (half of them such as Microsoft Edge, possibly UWP, so does Google such as Google Newsreader) but it is one of good scenario. Can we have an example of how to use it with Xaml Island and with the MediaPlayerElement? For someone that non exposure to.NET

https://docs.microsoft.com/en-us/windows/uwp/xaml-platform/xaml-host-controls