Beispiel #1
0
        /// <summary>
        /// Do command in the given world
        /// </summary>
        /// <param name="targetWorld">The world to apply command</param>
        /// <returns>Command processing result</returns>
        internal override Core.CommandResult DoCommand(World targetWorld)
        {
            StreamingSession stream = new StreamingSession(Contents);

            targetWorld.MyChannel.StartStreamingSession(stream);

            return(Core.CommandResult.SimpleSuccess);
        }
Beispiel #2
0
        public void StartStreamingSession(Broadcasting.StreamingSession session)
        {
            m_currentStreaming = session;

            if (m_currentStreaming.streamingContents != null)
            {
                m_currentStreaming.streamingContents.OnStreamingStarted();
            }
        }