platform/upstream/gst-rtsp-server.git
15 years agoTime out sessions
Wim Taymans [Fri, 13 Feb 2009 19:00:34 +0000 (20:00 +0100)]
Time out sessions

Add support for session timeouts in the example.

15 years agoPass GTimeVal around for performance reasons
Wim Taymans [Fri, 13 Feb 2009 18:58:17 +0000 (19:58 +0100)]
Pass GTimeVal around for performance reasons

Get the current time only once and pass it around so that sessions don't have to
get the current time anymore.

Add experimental support for a GSource that dispatches when the session needs to
be cleaned up.

15 years agoAdd better support for session timeouts
Wim Taymans [Fri, 13 Feb 2009 18:56:01 +0000 (19:56 +0100)]
Add better support for session timeouts

Add a method to request the number of milliseconds when a session will timeout.

15 years agoAdd suport for RTP manager monitoring
Wim Taymans [Fri, 13 Feb 2009 18:54:18 +0000 (19:54 +0100)]
Add suport for RTP manager monitoring

Add the first stage in monitoring the rtp manager.
Make sure we don't update the state to something we don't want.

15 years agoAdd support for session keepalive
Wim Taymans [Fri, 13 Feb 2009 18:52:05 +0000 (19:52 +0100)]
Add support for session keepalive

Get and update the session timeout for all requests. get the session as early as
possible.

15 years agoHandle media bus messages
Wim Taymans [Fri, 13 Feb 2009 15:39:36 +0000 (16:39 +0100)]
Handle media bus messages

Handle media bus messages in a custom mainloop and dispatch them to the
RTSPMedia objects. Let the default implementation handle some common messages.

15 years agoSome more session timeout handling
Wim Taymans [Fri, 13 Feb 2009 11:57:45 +0000 (12:57 +0100)]
Some more session timeout handling

Move the session header setting code to a central place so that we always add
the timeout parameter too.

Handle timeouts by running the session cleanup code.

Stop media before cleaning up.

15 years agoAdd timeout property
Wim Taymans [Tue, 10 Feb 2009 15:24:13 +0000 (16:24 +0100)]
Add timeout property

Add a timeout property ot the client and make the other properties into GObject
properties.

15 years agoUse getters and setters in property code
Wim Taymans [Tue, 10 Feb 2009 15:21:17 +0000 (16:21 +0100)]
Use getters and setters in property code

Use the getters and setters for the timeout property instead of locking
ourselves.

15 years agoMerge branch 'master' of git+ssh://git.collabora.co.uk/git/gst-rtsp-server
Wim Taymans [Wed, 4 Feb 2009 19:13:32 +0000 (20:13 +0100)]
Merge branch 'master' of git+ssh://git.collabora.co.uk/git/gst-rtsp-server

15 years agoAdd more timeout stuff
Wim Taymans [Wed, 4 Feb 2009 19:10:39 +0000 (20:10 +0100)]
Add more timeout stuff

Add method to check if a session is expired.
Add method to perform cleanup on a session pool.

15 years agoAdd beginnings of session timeouts and limits
Wim Taymans [Wed, 4 Feb 2009 18:52:50 +0000 (19:52 +0100)]
Add beginnings of session timeouts and limits

Add the timeout value to the Session header for unusual timeout values.

Allow us to configure a limit to the amount of active sessions in a pool. Set a
limit on the amount of retry we do after a sessionid collision.

Add properties to the sessionid and the timeout of a session. Keep track of
creation time and last access time for sessions.

15 years agoCleanup of sessions and more
Wim Taymans [Wed, 4 Feb 2009 16:00:42 +0000 (17:00 +0100)]
Cleanup of sessions and more

Fix the refcounting of media and sessions in the client. Properly clean up the
session data when the client performs a teardown.

Add Server header to responses.

Allow for multiple uri setups in one session.

Add Range header to the PLAY response and add the range attribute to the SDP
message.

Fix the session pool remove method, it used the wrong key in the hashtable. Also
give the ownership of the sessionid to the session object.

15 years agoRename a variable
Wim Taymans [Wed, 4 Feb 2009 08:57:55 +0000 (09:57 +0100)]
Rename a variable

Rename the 'server_port' variable to simply 'port'.

15 years agoRework the way we handle transports for streams
Wim Taymans [Tue, 3 Feb 2009 18:32:38 +0000 (19:32 +0100)]
Rework the way we handle transports for streams

Make the media accept an array of transports for the streams that we have
configured for the play/pause requests.

Implement server states for a client and its media.

Require 0.10.22.1 (git HEAD) of gstreamer.

15 years agoDrop const from functions dealing with urls
Wim Taymans [Sat, 31 Jan 2009 18:50:33 +0000 (19:50 +0100)]
Drop const from functions dealing with urls

Drop const from GstRTSPUrl stuff because the .h files in gst-plugins-base don't
have the right const in them.

15 years agoFix various leaks
Wim Taymans [Fri, 30 Jan 2009 16:06:26 +0000 (17:06 +0100)]
Fix various leaks

Fix some leaks.

15 years agoMore cleanups
Wim Taymans [Fri, 30 Jan 2009 15:24:10 +0000 (16:24 +0100)]
More cleanups

Don't keep a reference to the GstRTSPMedia in the stream.
Free more things when freeing the GstRTSPMedia.

15 years agoMore docs and small cleanups
Wim Taymans [Fri, 30 Jan 2009 13:53:28 +0000 (14:53 +0100)]
More docs and small cleanups

Add some more docs and update the README
Cleanup some method names.
Remove an unneeded idx field in the GstRTSPMediaStream

15 years agoAdd a README and more example code
Wim Taymans [Fri, 30 Jan 2009 12:24:04 +0000 (13:24 +0100)]
Add a README and more example code

Add a README file that contains a small introduction on how to use the server
along with the example code explained in the readme.

15 years agoFix some leaks and change default port
Wim Taymans [Fri, 30 Jan 2009 10:06:31 +0000 (11:06 +0100)]
Fix some leaks and change default port

Fix some memory leaks by setting the udpsrc elements to the unlocked state after
we finished the initial preroll. If we keep them locked, setting the pipeline to
NULL will not stop and clean up the sources correctly.

Change the default RTSP port to 8554 aka the official alternative RTSP port.

15 years agoCleanups to the session object
Wim Taymans [Thu, 29 Jan 2009 17:55:22 +0000 (18:55 +0100)]
Cleanups to the session object

Remove some unneeded variables in the session state of a stream such as the
owner media and the server transport.
Get the configuration of a media stream in a session based on the media_stream
in the original object instead of our cached index.
Free more data in the finalize method.

15 years agoCleanups and reuse media from DESCRIBE
Wim Taymans [Thu, 29 Jan 2009 17:51:02 +0000 (18:51 +0100)]
Cleanups and reuse media from DESCRIBE

Handle thread create errors.
Rename some internal methods to better match what they actually do.
Handle misconfiguration of session_pool and media_mapping gracefully.
Cache the DESCRIBE media and uri in the client connection and reuse them when
we receive a SETUP request in the same connection for the same uri.
Cleanup the client connection object.

15 years agoAdd shared properties to media and factory
Wim Taymans [Thu, 29 Jan 2009 16:20:27 +0000 (17:20 +0100)]
Add shared properties to media and factory

Add the shared property to media.
Implement some simple caching in the factory depending on if the media is shared
or not.

15 years agoAdd a little comment
Wim Taymans [Thu, 29 Jan 2009 16:19:21 +0000 (17:19 +0100)]
Add a little comment

Add some comment about the content-base header.

15 years agoReorganize things, prepare for media sharing
Wim Taymans [Thu, 29 Jan 2009 12:31:27 +0000 (13:31 +0100)]
Reorganize things, prepare for media sharing

Added various other test server examples
Move the SDP message generation to a separate helper.
Refactor common code for finding the session.
Add content-base for realplayer compatibility
Clean up request uris before processing for better vlc compatibility.
Move prerolling and pipeline construction to the RTSPMedia object.
Use multiudpsink for future pipeline reuse.

15 years agoBack to development
Wim Taymans [Fri, 30 Jan 2009 10:23:57 +0000 (11:23 +0100)]
Back to development

Back to 0.10.1.1

15 years agoMake 0.10.1 release
Wim Taymans [Fri, 30 Jan 2009 10:20:18 +0000 (11:20 +0100)]
Make 0.10.1 release

Release 0.10.1

15 years agoFix make dist
Wim Taymans [Thu, 29 Jan 2009 14:19:01 +0000 (15:19 +0100)]
Fix make dist

Add more directories and files to the dist.

15 years agoFixed compile error of python bindings
Sebastian Pölsterl [Sat, 24 Jan 2009 13:34:35 +0000 (14:34 +0100)]
Fixed compile error of python bindings

15 years agoMarked values as nullable accordingly
Sebastian Pölsterl [Fri, 23 Jan 2009 20:03:53 +0000 (21:03 +0100)]
Marked values as nullable accordingly

15 years agoUpdated Vala bindings
Sebastian Pölsterl [Fri, 23 Jan 2009 19:31:11 +0000 (20:31 +0100)]
Updated Vala bindings

15 years agoCleanups and doc updates
Wim Taymans [Thu, 22 Jan 2009 17:35:17 +0000 (18:35 +0100)]
Cleanups and doc updates

Add some more documentation and do some minor cleanups here and there.

15 years agoMore improvements
Wim Taymans [Thu, 22 Jan 2009 16:58:19 +0000 (17:58 +0100)]
More improvements

Rename GstRTSPMediaBin to GstRTSPMedia
Parse the request url into a GstRTSPUri object and pass this object to the
various handlers and methods that require the uri.

15 years agoUpdate example
Wim Taymans [Thu, 22 Jan 2009 15:54:07 +0000 (16:54 +0100)]
Update example

Add some more docs and remove some old code from the example.

15 years agoHandle state change failures better
Wim Taymans [Thu, 22 Jan 2009 15:53:16 +0000 (16:53 +0100)]
Handle state change failures better

Handle state change failures better when changing the state of the pipeline to
determine the SDP.

15 years agoMake element creation more extendible
Wim Taymans [Thu, 22 Jan 2009 15:51:08 +0000 (16:51 +0100)]
Make element creation more extendible

Add get_element vmethod to the default MediaFactory so that subclasses can just
override that method and still use the default logic for making a MediaBin from
that.

15 years agoMake the server handle arbitrary pipelines
Wim Taymans [Thu, 22 Jan 2009 14:33:29 +0000 (15:33 +0100)]
Make the server handle arbitrary pipelines

Make GstMediaFactory an object that can instantiate GstMediaBin objects.
The GstMediaBin object has a handle to a bin with elements and to a list of
GstMediaStream objects that this bin produces.

Add GstMediaMapper that can map url mountpoints to GstMediaFactory objects along
with methods to register and remove those mappings.

Add methods and a property to GstRTSPServer to manage the GstMediaMapper object
used by the server instance.

Modify the example application so that it shows how to create custom pipelines
attached to a specific mount point.

Various misc cleanps.

15 years agoAllow setting a custom media factory for a server
Wim Taymans [Tue, 20 Jan 2009 18:47:07 +0000 (19:47 +0100)]
Allow setting a custom media factory for a server

15 years agoAllow setting a custom media factory for a client.
Wim Taymans [Tue, 20 Jan 2009 18:46:21 +0000 (19:46 +0100)]
Allow setting a custom media factory for a client.

15 years agoAdd Makefile entry for the media factory
Wim Taymans [Tue, 20 Jan 2009 18:45:28 +0000 (19:45 +0100)]
Add Makefile entry for the media factory

15 years agoAdd media factory to map urls to media pipeline objects.
Wim Taymans [Tue, 20 Jan 2009 18:44:45 +0000 (19:44 +0100)]
Add media factory to map urls to media pipeline objects.

15 years agoAdd comments.
Wim Taymans [Tue, 20 Jan 2009 18:43:47 +0000 (19:43 +0100)]
Add comments.
Remove unused field

15 years agoAllow custom session pools to override the session id allocation algorithms
Wim Taymans [Tue, 20 Jan 2009 18:41:53 +0000 (19:41 +0100)]
Allow custom session pools to override the session id allocation algorithms
Add some comments.

15 years agoAdd some comments.
Wim Taymans [Tue, 20 Jan 2009 18:40:42 +0000 (19:40 +0100)]
Add some comments.

15 years agoMove the connection code in one place
Wim Taymans [Tue, 20 Jan 2009 12:57:47 +0000 (13:57 +0100)]
Move the connection code in one place
Add some comments

15 years agoMake vmethod to create and accept new clients.
Wim Taymans [Tue, 20 Jan 2009 12:19:36 +0000 (13:19 +0100)]
Make vmethod to create and accept new clients.
Add some docs.

15 years agoMake more properties configurable in the server.
Wim Taymans [Mon, 19 Jan 2009 18:36:23 +0000 (19:36 +0100)]
Make more properties configurable in the server.
Expose the GIOChannel and GSource better to allow for more customisations.

15 years agoName the parameters more appropriately.
Wim Taymans [Mon, 19 Jan 2009 18:34:29 +0000 (19:34 +0100)]
Name the parameters more appropriately.

15 years agoDo some more cleanup of the session pool.
Wim Taymans [Mon, 19 Jan 2009 18:32:28 +0000 (19:32 +0100)]
Do some more cleanup of the session pool.

15 years agoCheck if return value of gst_rtsp_session_get_media is not NULL
Wim Taymans [Thu, 8 Jan 2009 15:28:24 +0000 (16:28 +0100)]
Check if return value of gst_rtsp_session_get_media is not NULL

15 years agoInstall rtsp-session and rtsp-session-pool headers
Wim Taymans [Thu, 8 Jan 2009 14:02:42 +0000 (15:02 +0100)]
Install rtsp-session and rtsp-session-pool headers

15 years agoAdd python bindings.
Wim Taymans [Thu, 8 Jan 2009 13:57:55 +0000 (14:57 +0100)]
Add python bindings.

15 years agoDon't go into python dir when requirements for python bindings are missing
Wim Taymans [Thu, 8 Jan 2009 13:53:47 +0000 (14:53 +0100)]
Don't go into python dir when requirements for python bindings are missing

15 years agoInstall Vala bindings if vala is available
Wim Taymans [Thu, 8 Jan 2009 13:49:57 +0000 (14:49 +0100)]
Install Vala bindings if vala is available

15 years agoRegenerated Vala bindings
Sebastian Pölsterl [Fri, 12 Dec 2008 15:22:02 +0000 (16:22 +0100)]
Regenerated Vala bindings

15 years agoFixed typo in included headers for vala bindings
Sebastian Pölsterl [Mon, 8 Dec 2008 12:19:40 +0000 (13:19 +0100)]
Fixed typo in included headers for vala bindings

15 years agoAdded pkgconfig file
Wim Taymans [Thu, 8 Jan 2009 13:42:10 +0000 (14:42 +0100)]
Added pkgconfig file

15 years agoAdjusted included headersfor Vala bindings. Ignore rtsp-url-compat.h
Sebastian Pölsterl [Sun, 30 Nov 2008 22:57:26 +0000 (23:57 +0100)]
Adjusted included headersfor Vala bindings. Ignore rtsp-url-compat.h

15 years agoAdded Vala bindings
Sebastian Pölsterl [Sun, 30 Nov 2008 22:41:20 +0000 (23:41 +0100)]
Added Vala bindings

15 years agoChange an obviously wrong return FALSE to return NULL;
Alessandro Decina [Sat, 25 Oct 2008 21:36:16 +0000 (23:36 +0200)]
Change an obviously wrong return FALSE to return NULL;
(cherry picked from commit 56d4fb48030db3ae45f3f0e60b29b36f3134322b)

15 years agoPut GStreamer version in library name
Sebastian Pölsterl [Thu, 13 Nov 2008 18:43:10 +0000 (19:43 +0100)]
Put GStreamer version in library name

15 years agoFix some issues to pass distcheck
Wim Taymans [Thu, 8 Jan 2009 12:51:26 +0000 (13:51 +0100)]
Fix some issues to pass distcheck

15 years agoAdded port property to GstRTSPServer class.
Wim Taymans [Thu, 8 Jan 2009 12:41:33 +0000 (13:41 +0100)]
Added port property to GstRTSPServer class.

15 years agoSplit in library and example program
Wim Taymans [Thu, 8 Jan 2009 12:18:55 +0000 (13:18 +0100)]
Split in library and example program

15 years agoRemoved obsolete variable
Sebastian Pölsterl [Mon, 10 Nov 2008 19:59:35 +0000 (20:59 +0100)]
Removed obsolete variable

15 years agoRemoved pipeline variable GstRTSPClient, because it's only used in one function
Sebastian Pölsterl [Mon, 10 Nov 2008 20:03:15 +0000 (21:03 +0100)]
Removed pipeline variable GstRTSPClient, because it's only used in one function

15 years agoSet the payload types for the different payloaders. Maybe this shoulde be
Wim Taymans [Thu, 8 Jan 2009 10:22:58 +0000 (11:22 +0100)]
Set the payload types for the different payloaders. Maybe this shoulde be
done automatically instead.

16 years agoInitialize some more vars.
Wim Taymans [Thu, 23 Oct 2008 10:23:27 +0000 (12:23 +0200)]
Initialize some more vars.

16 years agoInitialize variable to avoid compiler warning.
Wim Taymans [Thu, 23 Oct 2008 10:14:55 +0000 (12:14 +0200)]
Initialize variable to avoid compiler warning.

16 years agoAdd a reasonable generic .gitignore
Simon McVittie [Thu, 9 Oct 2008 12:30:47 +0000 (13:30 +0100)]
Add a reasonable generic .gitignore

16 years agoInitial import
Wim Taymans [Thu, 9 Oct 2008 12:29:12 +0000 (13:29 +0100)]
Initial import