[vlc-devel] [PATCH 25/33] chromecast: when another app is running on the receiver, start the media player

Steve Lhomme robux4 at videolabs.io
Wed Dec 23 12:58:44 CET 2015


---
 modules/stream_out/chromecast/chromecast_ctrl.cpp | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index 592ff56..c84d01c 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -312,7 +312,14 @@ void intf_sys_t::processMessage(const castchannel::CastMessage &msg)
                     msg_Warn(p_stream, "app is no longer present. closing");
                     msgReceiverClose(appTransportId);
                     setConnectionStatus(CHROMECAST_CONNECTION_DEAD);
-                    // ft
+                    break;
+
+                case CHROMECAST_AUTHENTICATED:
+                    msg_Dbg(p_stream, "Chromecast was running no app, launch media_app");
+                    appTransportId = "";
+                    msgReceiverLaunchApp();
+                    break;
+
                 default:
                     break;
                 }
-- 
2.6.3



More information about the vlc-devel mailing list