| 1 | from zope.interface import implements |
|---|
| 2 | from sipsimple.util import NotificationHandler |
|---|
| 3 | |
|---|
| 4 | class VideoStream(NotificationHandler): |
|---|
| 5 | implements(IMediaStream) |
|---|
| 6 | |
|---|
| 7 | def __init__(self): |
|---|
| 8 | """ |
|---|
| 9 | Initialize local data structures. |
|---|
| 10 | """ |
|---|
| 11 | self.local_sdp = None |
|---|
| 12 | self.remote_sdp = None |
|---|
| 13 | self._active_sessions 0 [] |
|---|
| 14 | |
|---|
| 15 | def parse_sdp(self): |
|---|
| 16 | """ |
|---|
| 17 | Parse SDP to check for an H.264 video stream. |
|---|
| 18 | """ |
|---|
| 19 | pass |
|---|
| 20 | |
|---|
| 21 | def add_video_to_sdp(self, ip, port): |
|---|
| 22 | """ |
|---|
| 23 | Modify SDP to add video stream at the given IP and port number. |
|---|
| 24 | """ |
|---|
| 25 | pass |
|---|
| 26 | |
|---|
| 27 | def start_videoplayer(self): |
|---|
| 28 | """ |
|---|
| 29 | Initialize the video engine to be able to start sending/receiving video. |
|---|
| 30 | """ |
|---|
| 31 | pass |
|---|
| 32 | |
|---|
| 33 | def stop_videoplayer(self): |
|---|
| 34 | """ |
|---|
| 35 | Destroy the video engine when video session has ended. |
|---|
| 36 | """ |
|---|
| 37 | pass |
|---|
| 38 | |
|---|
| 39 | def start_videostreamer(self, ip, port): |
|---|
| 40 | """ |
|---|
| 41 | Start streamign video to the given IP and port using the video engine. |
|---|
| 42 | """ |
|---|
| 43 | pass |
|---|
| 44 | |
|---|
| 45 | def stop_videostream(self, ip, port): |
|---|
| 46 | """ |
|---|
| 47 | Stop the video streaming. We need to take care of multiple video streams. |
|---|
| 48 | """ |
|---|
| 49 | pass |
|---|
| 50 | |
|---|
| 51 | |
|---|