info: start adding gstreamer discoverer
This commit is contained in:
parent
076bfdceb6
commit
cd1f50a971
@ -16,8 +16,8 @@ AC_PROG_INSTALL
|
|||||||
AC_PROG_INTLTOOL([0.35])
|
AC_PROG_INTLTOOL([0.35])
|
||||||
PKG_PROG_PKG_CONFIG
|
PKG_PROG_PKG_CONFIG
|
||||||
|
|
||||||
pkg_modules="gtk+-2.0 >= 2.14.0"
|
pkg_modules="gtk+-2.0 >= 2.14.0 gstreamer-0.10 >= 0.10.30 gstreamer-plugins-base-0.10 >= 0.10.30"
|
||||||
MI_PACKAGES="--pkg gtk+-2.0"
|
MI_PACKAGES="--pkg gtk+-2.0 --pkg gdk-x11-2.0 --pkg gstreamer-0.10 --pkg gstreamer-interfaces-0.10 --pkg gstreamer-pbutils-0.10"
|
||||||
PKG_CHECK_MODULES(MI, [$pkg_modules])
|
PKG_CHECK_MODULES(MI, [$pkg_modules])
|
||||||
AC_SUBST(MI_CFLAGS)
|
AC_SUBST(MI_CFLAGS)
|
||||||
AC_SUBST(MI_LIBS)
|
AC_SUBST(MI_LIBS)
|
||||||
|
@ -18,24 +18,34 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
using Gtk;
|
using Gtk;
|
||||||
|
using Gst;
|
||||||
|
|
||||||
public class MediaInfo.Info : VBox
|
public class MediaInfo.Info : VBox
|
||||||
{
|
{
|
||||||
private Label uri;
|
private Label uri;
|
||||||
|
//private Discoverer dc;
|
||||||
|
|
||||||
public Info ()
|
public Info ()
|
||||||
{
|
{
|
||||||
|
// configure the view
|
||||||
set_homogeneous (false);
|
set_homogeneous (false);
|
||||||
|
|
||||||
|
// add widgets
|
||||||
uri = new Label ("");
|
uri = new Label ("");
|
||||||
pack_start (uri, false, false, 0);
|
pack_start (uri, false, false, 0);
|
||||||
|
|
||||||
show_all ();
|
show_all ();
|
||||||
|
|
||||||
|
// set up the gstreamer components
|
||||||
|
//dc = new Discoverer (Gst.SECONDS * 10, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool discover (string uri)
|
public bool discover (string uri)
|
||||||
{
|
{
|
||||||
this.uri.set_text (uri);
|
this.uri.set_text (uri);
|
||||||
|
|
||||||
|
//DiscovererInfo info = dc.discover_uri (uri, null);
|
||||||
|
|
||||||
return (true);
|
return (true);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user