DesignVideo: sip_video_session.py

File sip_video_session.py, 1.3 KB (added by saghul, 2 years ago)
Line 
1#!/usr/bin/env python
2# Copyright (C) 2008-2009 AG Projects. See LICENSE for details.
3#
4
5from vlcw import VLCwrapper
6
7
8class SIPVideoApplication(SIPApplication):
9
10    def __init__(self):
11        self.dev = None
12        self.initialize()
13
14    def enum_devices(self):
15        """
16        Enumerate video capable devices on the system like webcams.
17        """
18        pass
19   
20    def initialize(self):
21        """
22        Initialize the video application: create the VLC engine and select the appropiate devie using enum_devices function.
23        """
24        pass
25   
26    def run_cli(self):
27        """
28        Show a CLI like interface so that the user can start a video session or handle an incoming video session.
29        """
30        pass
31
32    def start_video_session(self, ip, port):
33        """
34        Start streaming H.264 media from the specified IP and port number.
35        """
36        pass
37
38    def stop_video_session(self):
39        """
40        Stop the video streaming.
41        """
42        pass
43
44    def handle_incoming_session(self, ip, port):
45        """
46        Handle and incoming video session request on the given remote IP and port. A VLC player will be created for playing the incoming H.264 media stream.
47        """
48        pass
49
50
51if __name__ == "__main__":
52    app = SIPVideoApplication()
53    app.run_cli()