使用gtk +播放视频 [英] play a video using gtk+

查看:142
本文介绍了使用gtk +播放视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关如何使用gtk +播放视频的建议?



问候,
Lancy Norbert Fernandes

解决方案

在GTK +和其他GTK绑定上播放视频,您有很多选择。


选项:使用第三方库


1-尝试使用 ogmrip-gtk ,一组Gtk接口,它允许您使用开源的OGMRip库作为Gtk-Widget。



2-您可以使用其他库, gstreamer 。也可以轻松使用Gtk。



<3>您可以使用LibVLC - gtk。 LibVLC的GTK包装器(曾经使用过VLC媒体播放器?)。个人而言,我非常喜欢这一点。


选项:使用来自开源软件的代码


1- Banshee媒体播放器是开源的,虽然它使用了Gtk#,但您可以毫无困难地将代码转换为GTK +。



2-请参阅MPlayer或Totem Player源代码。 (或其他任何关于此事的内容,这里是列表


$ b $


选项:使用流程

1-我听说MPlayer Command Line非常简单。这是一个指南。 http://www.mplayerhq.hu/DOCS/HTML/en/commandline.html



使用GTK +总是有许多新颖且创新(更不用说开放源码)的方式来做东西。所以一直在寻找更好的方法。我个人非常喜欢GTK +工具箱,并且发现你不能用它做任何事情。


any suggestion regarding how to play videos using gtk+?

Regards, Lancy Norbert Fernandes

解决方案

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.

这篇关于使用gtk +播放视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆