Play a video using gtk+

孤人 提交于 2019-12-12 11:31:48

问题


Any suggestion regarding how to play videos using GTK+?

Regards,

Lancy Norbert Fernandes


回答1:


For Playing Videos on GTK+ and other GTK Bindings you have a lot of options.

Option: Use A Third-Party Library

1- Try using ogmrip-gtk , A set of Gtk Interface, which allows you to use the open-source OGMRip library as a Gtk-Widget.

2- You may use another library, gstreamer. Also can be used easily with Gtk.

3- You may use LibVLC - gtk. A GTK wrapper for LibVLC (ever used the VLC Media Player?). Personally , I like this a lot.

Option: Using Code from Open-Source Software

1- The Banshee media player is open-source and although it uses Gtk#, you may have no trouble converting the code to GTK+.

2- See the MPlayer or Totem Player Source Code. (or any other for that matter, here is a list )

Option: Use A Process

1- I've heard the MPlayer Command Line is pretty simple. Here's a guide. http://www.mplayerhq.hu/DOCS/HTML/en/commandline.html

With GTK+ there are always a lot of new and innovative (not to mention open-source) ways to do stuff. So always keep looking for better ways. I am personally a great fan of the GTK+ toolkit and have found that there is nothing you cannot do with it.




回答2:


GStreamer integrates well with GTK+.



来源:https://stackoverflow.com/questions/3305736/play-a-video-using-gtk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!