]> git.sesse.net Git - vlc/blob - python/vlrs/announce.py
compile fix for WIN32, needs review
[vlc] / python / vlrs / announce.py
1 #!/usr/bin/python -O
2 #
3 # VideoLAN RTSP Server
4 #
5 # Author: Cyril Deguet <asmax@via.ecp.fr>
6
7 import cfg
8
9 from sap import SapServer
10 from session import Session
11
12
13 class AnnounceList:
14     "List of streams to be announced"
15
16     def __init__(self):
17         # Create the SAP server
18         self.multicastList = {}
19         self.sapServer = SapServer()
20         self.sapServer.start()
21
22     def readPlaylist(self):
23         pass
24
25     def addMulticastSession(self, session):
26         "Add a multicast session in the announce list"
27         self.multicastList[session.id] = session
28         
29     def delMulticastSession(self, session):
30         "Delete a multicast session from the announce list"
31         del self.multicastList[session.id]