Because the new example plugins are better examples.
AS_IF([test "x$with_media_engine" = "xgstreamer"],
[
- RYGEL_ADD_PLUGIN([test],[Test],[no])
RYGEL_ADD_PLUGIN([playbin],[GStreamer playbin],[yes])
RYGEL_ADD_PLUGIN([media-export],[MediaExport],[yes])
RYGEL_ADD_PLUGIN([gst-launch],[GStreamer launchline],[no])
RYGEL_ADD_STAMP([src/librygel-renderer-gst/librygel_renderer_gst_2_0_la_vala.stamp])
],
[
- RYGEL_DISABLE_PLUGIN([test])
RYGEL_DISABLE_PLUGIN([playbin])
RYGEL_DISABLE_PLUGIN([media-export])
RYGEL_DISABLE_PLUGIN([gst-launch])
-if BUILD_TEST_PLUGIN
-TEST_PLUGIN = test
-endif
-
if BUILD_TRACKER_PLUGIN
TRACKER_PLUGIN = tracker
endif
PLAYBIN = playbin
endif
-SUBDIRS = $(TEST_PLUGIN) \
- $(TRACKER_PLUGIN) \
+SUBDIRS = $(TRACKER_PLUGIN) \
$(MEDIATHEK_PLUGIN) \
$(MEDIA_EXPORT_PLUGIN) \
$(EXTERNAL_PLUGIN) \
+++ /dev/null
-include $(top_srcdir)/common.am
-
-plugin_LTLIBRARIES = librygel-test.la
-
-AM_CFLAGS += -DG_LOG_DOMAIN='"Test"' \
- -I$(top_srcdir)/src/media-engines/gstreamer \
- $(LIBGSTREAMER_CFLAGS)
-
-librygel_test_la_SOURCES = \
- rygel-test-root-container.vala \
- rygel-test-audio-item.vala \
- rygel-test-video-item.vala \
- rygel-test-plugin.vala \
- $(top_srcdir)/src/media-engines/gstreamer/rygel-media-engine-gst.vapi
-
-librygel_test_la_VALAFLAGS = \
- --pkg gstreamer-0.10 \
- $(RYGEL_COMMON_SERVER_PLUGIN_VALAFLAGS)
-
-librygel_test_la_LIBADD = \
- $(LIBGSTREAMER_LIBS) \
- $(RYGEL_COMMON_SERVER_LIBS)
-librygel_test_la_LDFLAGS = $(RYGEL_PLUGIN_LINKER_FLAGS)
+++ /dev/null
-/*
- * Copyright (C) 2008 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>.
- * Copyright (C) 2008 Nokia Corporation.
- * Copyright (C) 2012 Intel Corporation.
- *
- * Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
- * <zeeshan.ali@nokia.com>
- * Jens Georg <jensg@openismus.com>
- *
- * This file is part of Rygel.
- *
- * Rygel is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * Rygel is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-using Gst;
-
-/**
- * Represents Test audio item.
- */
-public class Rygel.Test.AudioItem : Rygel.AudioItem {
- private const string TEST_MIMETYPE = "audio/x-wav";
- private const string PIPELINE = "audiotestsrc is-live=1 ! wavenc";
-
- public AudioItem (string id, MediaContainer parent, string title) {
- base (id, parent, title);
-
- this.mime_type = TEST_MIMETYPE;
- }
-
- public override DataSource? create_stream_source (string? host_ip) {
- var engine = MediaEngine.get_default ();
- var gst_engine = engine as GstMediaEngine;
- if (gst_engine == null) {
- warning ("The current media engine is not based on GStreamer.");
-
- return null;
- }
-
- try {
- var element = parse_bin_from_description (PIPELINE, true);
-
- return gst_engine.create_data_source_from_element (element);
- } catch (Error err) {
- warning ("Required plugin missing (%s)", err.message);
-
- return null;
- }
- }
-}
-
+++ /dev/null
-/*
- * Copyright (C) 2008 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>.
- * Copyright (C) 2008 Nokia Corporation.
- *
- * Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
- * <zeeshan.ali@nokia.com>
- *
- * This file is part of Rygel.
- *
- * Rygel is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * Rygel is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-using Rygel;
-using Gee;
-
-public void module_init (PluginLoader loader) {
- if (loader.plugin_disabled (Rygel.Test.Plugin.NAME)) {
- message ("Plugin '%s' disabled by user, ignoring..",
- Rygel.Test.Plugin.NAME);
-
- return;
- }
-
- var plugin = new Rygel.Test.Plugin ();
-
- loader.add_plugin (plugin);
-}
-
-public class Rygel.Test.Plugin : Rygel.MediaServerPlugin {
- public const string NAME = "Test";
-
- public Plugin () {
- var root_container = new RootContainer ("Test Streams");
-
- base (root_container, Plugin.NAME);
- }
-}
+++ /dev/null
-/*
- * Copyright (C) 2008 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>.
- * Copyright (C) 2008 Nokia Corporation.
- *
- * Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
- * <zeeshan.ali@nokia.com>
- *
- * This file is part of Rygel.
- *
- * Rygel is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * Rygel is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-using GUPnP;
-using Gee;
-using Gst;
-
-/**
- * Represents the root container for Test media content hierarchy.
- */
-public class Rygel.Test.RootContainer : Rygel.SimpleContainer {
- public RootContainer (string title) {
- base.root (title);
-
- this.add_child_item (new AudioItem ("sinewave", this, "Sine Wave"));
- this.add_child_item (new VideoItem ("smtpe", this, "SMTPE"));
- }
-}
-
+++ /dev/null
-/*
- * Copyright (C) 2008 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>.
- * Copyright (C) 2008 Nokia Corporation.
- * Copyright (C) 2012 Intel Corporation.
- *
- * Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
- * <zeeshan.ali@nokia.com>
- * Jens Georg <jensg@openismus.com>
- *
- * This file is part of Rygel.
- *
- * Rygel is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * Rygel is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-using Gst;
-
-/**
- * Represents Test video item.
- */
-public class Rygel.Test.VideoItem : Rygel.VideoItem {
- private const string TEST_MIMETYPE = "video/mpeg";
- private const string PIPELINE = "videotestsrc is-live=1 ! " +
- "ffenc_mpeg2video ! " +
- "mpegtsmux";
-
- public VideoItem (string id, MediaContainer parent, string title) {
- base (id, parent, title);
-
- this.mime_type = TEST_MIMETYPE;
- }
-
- public override DataSource? create_stream_source (string? host_ip) {
- var engine = MediaEngine.get_default ();
- var gst_engine = engine as GstMediaEngine;
- if (gst_engine == null) {
- warning ("The current media engine is not based on GStreamer.");
-
- return null;
- }
-
- try {
- var element = parse_bin_from_description (PIPELINE, true);
-
- return gst_engine.create_data_source_from_element (element);
- } catch (Error err) {
- warning ("Required plugin missing (%s)", err.message);
-
- return null;
- }
- }
-}
-