public ChromecastStream(ChromecastSession session, string protocolNamespace) { if (session.GCKApplicationSession.Channel != null) { stream = new GCKMessageStream(protocolNamespace); session.GCKApplicationSession.Channel.AttachMessageStream(stream); } }