Esempio n. 1
0
    //登陆成功后推流
    private void Instance_OnLoginRoomEvent(int code, int userid)
    {
        OeipPushSetting pushSetting = new OeipPushSetting();

        pushSetting.bVideo = 1;
        pushSetting.bAudio = 0;
        OeipLiveManager.Instance.PushStream(0, ref pushSetting);
    }
Esempio n. 2
0
        private void Instance_OnLoginRoomEvent(int code, int userid)
        {
            OeipPushSetting pushSetting = new OeipPushSetting();

            pushSetting.bVideo = 1;
            pushSetting.bAudio = 0;
            pushSetting.videoEncoder.bitrate = 4000000;
            pushSetting.videoEncoder.fps     = cameraControl1.Format.fps;
            pushSetting.videoEncoder.width   = cameraControl1.Format.width;
            pushSetting.videoEncoder.height  = cameraControl1.Format.height;
            pushSetting.videoEncoder.yuvType = cameraControl1.VideoPipe.YUVFMT;
            bPush = OeipLiveManager.Instance.PushStream(0, ref pushSetting);
        }