[英]Setting VLC drawable-hwnd still create a new window
Embedded window video
--drawable-hwnd=<integer [-2147483648 .. 2147483647]>
Window handle (HWND)
Video will be embedded in this pre-existing window. If zero, a new window will be created.
I get the window handle of my Qt5 QML application in this way: 我以这种方式获取我的Qt5 QML应用程序的窗口句柄:
QObject* m_rootObject = engine.rootObjects().first();
if(m_rootObject) {
QWindow *window = qobject_cast<QWindow *>(m_rootObject);
if(window) {
WId wid = window->winId();
qDebug() << wid;
}
}
and then I launch vlc: 然后启动vlc:
vlc --drawable-hwnd=395302 udp://@:1235
but it still creates a new window. 但它仍会创建一个新窗口。 I'm working on Windows 7. Perhaps I'm not understanding what the documentation says?
我正在使用Windows7。也许我不了解文档中的内容?
I had the same problem with an RTSP stream. 我在RTSP流中遇到了同样的问题。
Setting 设置
--drawable-hwnd=windowhandle
seems not to be sufficient. 似乎还不够。
It only worked after I also set 只有在我也设定好之后
--no-embedded-video
My complete command line looks like 我完整的命令行看起来像
--no-embedded-video --qt-notification=0 --qt-auto-raise=0 --qt-start-minimized --no-qt-name-in-title --no-video-title-show rtsp://127.0.0.1:8554/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.