When I follow the following process to set up:
1、linphone_core_set_video_display_filter(lc,"MSQOGL");
2、when Streams running start show video like this
Camera::Camera (QQuickItem *parent) : QQuickFramebufferObject(parent) {
// The fbo content must be y-mirrored because the ms rendering is y-inverted.
setMirrorVertically(true);
When I follow the following process to set up: 1、linphone_core_set_video_display_filter(lc,"MSQOGL"); 2、when Streams running start show video like this
loader1.active=true;
// ============================================================================= qml: Rectangle{ width: 1000 height: 500 color: "#000000" Loader{ id:loader1 x:0 y:0 width: 500 height: 500 sourceComponent:camera active:false } Loader{ id:loader2 x:500 y:0 width: 500 height: 500 sourceComponent:camera active:loader1.active onLoaded: item.isPreview = false } }
class:
Camera::Camera (QQuickItem *parent) : QQuickFramebufferObject(parent) { // The fbo content must be y-mirrored because the ms rendering is y-inverted. setMirrorVertically(true);
}
QQuickFramebufferObject::Renderer Camera::createRenderer () const { QQuickFramebufferObject::Renderer renderer = NULL; LinphoneCore* lc=Qtlinphone::getCInstance();// Reset
qDebug()<<"222222011"; // QQuickFramebufferObject::Renderer oldRenderer =(QQuickFramebufferObject::Renderer )linphone_core_get_native_preview_window_id (lc) ; //if (oldRenderer){ linphone_core_set_native_video_window_id(lc,NULL); } renderer=(QQuickFramebufferObject::Renderer *)linphone_core_create_native_preview_window_id(lc); if(renderer) { linphone_core_set_native_video_window_id(lc,renderer); }
renderer=(QQuickFramebufferObject::Renderer *)linphone_core_create_native_preview_window_id(lc); if(renderer)linphone_core_set_native_video_window_id(lc,renderer);
}
bool Camera::getIsPreview () const { return mIsPreview; }
void Camera::setIsPreview (bool status) { if (mIsPreview != status) { mIsPreview = status; update();
}
result: Unable to see video and crashed qt Is there a problem with the process