[vlc-commits] chromecast: when another app is running on the receiver, start the media player

Steve Lhomme git at videolan.org
Wed Dec 23 20:28:26 CET 2015


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Wed Dec 23 12:58:44 2015 +0100| [301cd74159aac8082e425449bfcd9f92de153772] | committer: Jean-Baptiste Kempf

chromecast: when another app is running on the receiver, start the media player

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=301cd74159aac8082e425449bfcd9f92de153772
---

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

diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index fb14348..9461bdc 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -315,6 +315,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);
+                    break;
+
+                case CHROMECAST_AUTHENTICATED:
+                    msg_Dbg(p_stream, "Chromecast was running no app, launch media_app");
+                    appTransportId = "";
+                    msgReceiverLaunchApp();
+                    break;
+
                 default:
                     break;
                 }



More information about the vlc-commits mailing list