Esempio n. 1
0
        private void MBroadcastControllerOnBroadcastStateChanged(BroadcastController.BroadcastState state)
        {
            switch (state)
            {
            case BroadcastController.BroadcastState.Initialized:
            {
                m_BroadcastController.ClientSecret = ClientSecret;
                m_BroadcastController.RequestAuthToken(User, Password);
                break;
            }

            case BroadcastController.BroadcastState.ReadyToBroadcast:
            {
                if (m_StartBroadcasting)
                {
                    m_VideoParams             = m_BroadcastController.GetRecommendedVideoParams(1280, 720, 30);
                    m_VideoParams.PixelFormat = PixelFormat.TTV_PF_BGRA;
                    m_BroadcastController.SetGraphicsDevice(this.GraphicsDevice);
                    m_BroadcastController.StartBroadcasting(m_VideoParams);
                    m_StartBroadcasting = false;
                }
                break;
            }
            }
        }
Esempio n. 2
0
 protected void HandleBroadcastStateChanged(BroadcastController.BroadcastState state)
 {
 }