⚲
Project
Overview
Activity
News
Wiki
General
Home
Projects
Help
Profile
Sign in
Search
:
SIP SIMPLE Client SDK
All Projects
SIP SIMPLE Client SDK
Download (1.3 KB)
DesignVideo
» sip_video_session.py
Klaus Darilion
, 09/04/2009 03:23 PM
#!/usr/bin/env python
# Copyright (C) 2008-2009 AG Projects. See LICENSE for details.
#
from
vlcw
import
VLCwrapper
class
SIPVideoApplication
(
SIPApplication
):
def
__init__
(
self
):
self
.
dev
=
None
self
.
initialize
()
def
enum_devices
(
self
):
"""
Enumerate video capable devices on the system like webcams.
"""
pass
def
initialize
(
self
):
"""
Initialize the video application: create the VLC engine and select the appropiate devie using enum_devices function.
"""
pass
def
run_cli
(
self
):
"""
Show a CLI like interface so that the user can start a video session or handle an incoming video session.
"""
pass
def
start_video_session
(
self
,
ip
,
port
):
"""
Start streaming H.264 media from the specified IP and port number.
"""
pass
def
stop_video_session
(
self
):
"""
Stop the video streaming.
"""
pass
def
handle_incoming_session
(
self
,
ip
,
port
):
"""
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.
"""
pass
if
__name__
==
"__main__"
:
app
=
SIPVideoApplication
()
app
.
run_cli
()
« Previous
1
2
3
4
…
6
Next »
(2-2/6)
Loading...