Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
87db6b3f
Commit
87db6b3f
authored
Oct 19, 2012
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapted to SIP simple stream API changes
parent
ab19744e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sessions.py
blink/sessions.py
+4
-4
No files found.
blink/sessions.py
View file @
87db6b3f
...
...
@@ -1785,8 +1785,8 @@ class SessionManager(object):
break
else
:
contact
=
None
audio_stream
=
self
.
create_stream
(
account
,
'audio'
)
if
audio
else
None
video_stream
=
self
.
create_stream
(
account
,
'video'
)
if
video
else
None
audio_stream
=
self
.
create_stream
(
'audio'
)
if
audio
else
None
video_stream
=
self
.
create_stream
(
'video'
)
if
video
else
None
session_item
=
SessionItem
(
name
,
remote_uri
,
session
,
contact
,
audio_stream
=
audio_stream
,
video_stream
=
video_stream
)
session_item
.
activated
.
connect
(
partial
(
self
.
_SH_SessionActivated
,
session_item
))
session_item
.
deactivated
.
connect
(
partial
(
self
.
_SH_SessionDeactivated
,
session_item
))
...
...
@@ -1835,10 +1835,10 @@ class SessionManager(object):
del
_get_current_ringtone
,
_set_current_ringtone
@
staticmethod
def
create_stream
(
account
,
type
):
def
create_stream
(
type
):
for
cls
in
MediaStreamRegistry
():
if
cls
.
type
==
type
:
return
cls
(
account
)
return
cls
()
else
:
raise
ValueError
(
'unknown stream type:
%
s'
%
type
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment