Hello,<div><br></div><div>Currently gst-rtsp-server (master) can&#39;t add media mappings. I&#39;m currently in the process of cleaning up my python-gst-rtsp-server patches, which include MediaMapping and MediaFactory bindings. It&#39;s likely to be submitted to bugzilla this week (at least an initial version). If you&#39;re interested, I can send you the dirty patches :) passing a launch string to the factory already works.</div>
<div><br><div class="gmail_quote">On Tue, Sep 14, 2010 at 6:02 AM, wl2776 <span dir="ltr">&lt;<a href="mailto:wl2776@gmail.com">wl2776@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I&#39;ve created a server instance, but cannot add media-mapping to it.<br>
Are there any examples of using gst-rtsp-server in Python?<br>
<br>
import gobject<br>
gobject.threads_init()<br>
<br>
import sys<br>
import pygst<br>
pygst.require(&#39;0.10&#39;)<br>
<br>
import os<br>
<br>
from gst import rtspserver<br>
<br>
class myrtspserver:<br>
    def __init__(self):<br>
        self.server=rtspserver.Server()<br>
        self.server.props.media_mapping.set_property(&#39;/test&#39;,<br>
                                    &#39;( videotestsrc is-live=1 ! x264enc !<br>
rtph264pay name=pay0 pt=96 )&#39;)<br>
<br>
<br>
The last line of the code above gives the error<br>
TypeError: object of type `GstRTSPMediaMapping&#39; does not have property<br>
`/test&#39;<br>
<br>
If I replace set_property with set_data, it doesn&#39;t give errors, but logs<br>
show that the server cannot find the media mapping when processing<br>
connection.<br>
Tried also set_data<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/How-can-I-add-RTSP-media-mapping-to-the-gst-rtsp-server-in-Python-tp2538670p2538670.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/How-can-I-add-RTSP-media-mapping-to-the-gst-rtsp-server-in-Python-tp2538670p2538670.html</a><br>

Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
<br>
------------------------------------------------------------------------------<br>
Start uncovering the many advantages of virtual appliances<br>
and start using them to simplify application deployment and<br>
accelerate your shift to cloud computing.<br>
<a href="http://p.sf.net/sfu/novell-sfdev2dev" target="_blank">http://p.sf.net/sfu/novell-sfdev2dev</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>André Dieb Martins<br>
</div>