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
7361426c
Commit
7361426c
authored
Sep 08, 2014
by
Saul Ibarra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get the stream failure reason from MediaStreamDidEnd
parent
3d7f3467
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
chatwindow.py
blink/chatwindow.py
+2
-12
No files found.
blink/chatwindow.py
View file @
7361426c
...
@@ -1290,7 +1290,6 @@ class ChatWindow(base_class, ui_class, ColorHelperMixin):
...
@@ -1290,7 +1290,6 @@ class ChatWindow(base_class, ui_class, ColorHelperMixin):
session
=
notification
.
sender
.
blink_session
.
items
.
chat
session
=
notification
.
sender
.
blink_session
.
items
.
chat
if
session
is
None
:
if
session
is
None
:
return
return
notification
.
sender
.
_blink_fail_reason
=
None
#session.chat_widget.add_message(ChatStatus('Connecting...')) # disable it until we can replace it in the DOM -Dan
#session.chat_widget.add_message(ChatStatus('Connecting...')) # disable it until we can replace it in the DOM -Dan
def
_NH_MediaStreamDidNotInitialize
(
self
,
notification
):
def
_NH_MediaStreamDidNotInitialize
(
self
,
notification
):
...
@@ -1315,20 +1314,11 @@ class ChatWindow(base_class, ui_class, ColorHelperMixin):
...
@@ -1315,20 +1314,11 @@ class ChatWindow(base_class, ui_class, ColorHelperMixin):
session
=
notification
.
sender
.
blink_session
.
items
.
chat
session
=
notification
.
sender
.
blink_session
.
items
.
chat
if
session
is
None
:
if
session
is
None
:
return
return
stream
=
notification
.
sender
if
notification
.
data
.
error
is
not
None
:
if
stream
.
_blink_fail_reason
:
session
.
chat_widget
.
add_message
(
ChatStatus
(
'Disconnected:
%
s'
%
notification
.
data
.
error
))
session
.
chat_widget
.
add_message
(
ChatStatus
(
'Disconnected:
%
s'
%
stream
.
_blink_fail_reason
))
else
:
else
:
session
.
chat_widget
.
add_message
(
ChatStatus
(
'Disconnected'
))
session
.
chat_widget
.
add_message
(
ChatStatus
(
'Disconnected'
))
def
_NH_MediaStreamDidFail
(
self
,
notification
):
if
notification
.
sender
.
type
!=
'chat'
:
return
session
=
notification
.
sender
.
blink_session
.
items
.
chat
if
session
is
None
:
return
notification
.
sender
.
_blink_fail_reason
=
notification
.
data
.
reason
# signal handlers
# signal handlers
#
#
def
_SH_InfoButtonClicked
(
self
,
checked
):
def
_SH_InfoButtonClicked
(
self
,
checked
):
...
...
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