Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
ad959d90
Commit
ad959d90
authored
Dec 23, 2015
by
Steve Lhomme
Committed by
Jean-Baptiste Kempf
Dec 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chromecast: GET_STATUS and LAUNCH require a request ID
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
bb2704f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
modules/stream_out/chromecast/chromecast.h
modules/stream_out/chromecast/chromecast.h
+1
-0
modules/stream_out/chromecast/chromecast_ctrl.cpp
modules/stream_out/chromecast/chromecast_ctrl.cpp
+5
-3
No files found.
modules/stream_out/chromecast/chromecast.h
View file @
ad959d90
...
@@ -117,6 +117,7 @@ private:
...
@@ -117,6 +117,7 @@ private:
enum
connection_status
conn_status
;
enum
connection_status
conn_status
;
unsigned
i_receiver_requestId
;
unsigned
i_requestId
;
unsigned
i_requestId
;
};
};
...
...
modules/stream_out/chromecast/chromecast_ctrl.cpp
View file @
ad959d90
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
#include "../../misc/webservices/json.h"
#include "../../misc/webservices/json.h"
// Media player Chromecast app id
// Media player Chromecast app id
#define APP_ID "CC1AD845" // Default media player
#define APP_ID "CC1AD845" // Default media player
aka DEFAULT_MEDIA_RECEIVER_APPLICATION_ID
#define SOUT_CFG_PREFIX "sout-chromecast-"
#define SOUT_CFG_PREFIX "sout-chromecast-"
...
@@ -81,6 +81,7 @@ intf_sys_t::intf_sys_t(sout_stream_t * const p_this)
...
@@ -81,6 +81,7 @@ intf_sys_t::intf_sys_t(sout_stream_t * const p_this)
:
p_stream
(
p_this
)
:
p_stream
(
p_this
)
,
p_tls
(
NULL
)
,
p_tls
(
NULL
)
,
conn_status
(
CHROMECAST_DISCONNECTED
)
,
conn_status
(
CHROMECAST_DISCONNECTED
)
,
i_receiver_requestId
(
0
)
,
i_requestId
(
0
)
,
i_requestId
(
0
)
{
{
vlc_mutex_init
(
&
lock
);
vlc_mutex_init
(
&
lock
);
...
@@ -299,7 +300,8 @@ void intf_sys_t::msgReceiverClose(std::string destinationId)
...
@@ -299,7 +300,8 @@ void intf_sys_t::msgReceiverClose(std::string destinationId)
void
intf_sys_t
::
msgReceiverGetStatus
()
void
intf_sys_t
::
msgReceiverGetStatus
()
{
{
std
::
stringstream
ss
;
std
::
stringstream
ss
;
ss
<<
"{
\"
type
\"
:
\"
GET_STATUS
\"
}"
;
ss
<<
"{
\"
type
\"
:
\"
GET_STATUS
\"
,"
<<
"
\"
requestId
\"
:"
<<
i_receiver_requestId
++
<<
"}"
;
buildMessage
(
NAMESPACE_RECEIVER
,
ss
.
str
());
buildMessage
(
NAMESPACE_RECEIVER
,
ss
.
str
());
}
}
...
@@ -309,7 +311,7 @@ void intf_sys_t::msgReceiverLaunchApp()
...
@@ -309,7 +311,7 @@ void intf_sys_t::msgReceiverLaunchApp()
std
::
stringstream
ss
;
std
::
stringstream
ss
;
ss
<<
"{
\"
type
\"
:
\"
LAUNCH
\"
,"
ss
<<
"{
\"
type
\"
:
\"
LAUNCH
\"
,"
<<
"
\"
appId
\"
:
\"
"
<<
APP_ID
<<
"
\"
,"
<<
"
\"
appId
\"
:
\"
"
<<
APP_ID
<<
"
\"
,"
<<
"
\"
requestId
\"
:"
<<
i_requestId
++
<<
"}"
;
<<
"
\"
requestId
\"
:"
<<
i_re
ceiver_re
questId
++
<<
"}"
;
buildMessage
(
NAMESPACE_RECEIVER
,
ss
.
str
());
buildMessage
(
NAMESPACE_RECEIVER
,
ss
.
str
());
}
}
...
...
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