No, I've taken the import as per the Qt5 examples:
import QtMultimedia 5.0
As you have mentioned, what is a bit different in this lib is that it exports
no version in the plugin extension code but has 2 versions 4.0 & 5.0 for each
element. I have to admit I don't understand how this works?
qmlRegisterType<QDeclarativeVideoOutput>(uri, 4, 0, "VideoOutput");
qmlRegisterType<QDeclarativeVideoOutput>(uri, 5, 0, "VideoOutput");
&
plugin declarative_multimedia
Video 5.0 Video.qml
Video 4.0 Video_4.qml
Regards
David Robinson
-----Original Message-----
From: Jason H [mailto:[email protected]]
Sent: 29 March 2012 14:51
To: Robinson, David; [email protected]
Subject: Re: [Qt-qml] import QtMultimedia 5.0
Is the import "QtMultimediaKit" like for 4.x?
One thing that needs to be provided is a way for QML to enumerate your library
and library versions, so you know what you really have.
It would be even better if QtCreator gave them to you as code-completions like
for #includes...
----- Original Message -----
From: "Robinson, David" <[email protected]>
To: [email protected]
Cc:
Sent: Thursday, March 29, 2012 6:50 AM
Subject: [Qt-qml] import QtMultimedia 5.0
Having tried the QtMultimedia examples in Qt5 and read the 'Changes in
QtMultimedia' online documentation. I was expecting that the Video QML element
in my existing code would work 'as is' if I updated to import
QtQuick2 & QtMultimedia 5.0.
The qmlvideo example works fine but every time I try to run a QML2 only
application using qmlscene.exe on Windows 7 I get:
plugin cannot be loaded for module "QtMultimedia": Cannot load library
C:/Qt/qt5/qtbase/imports/QtMultimedia/declarative_multimediad.dll: The
specified module could not be found.
import QtMultimedia 5.0
Well it is there, the import path is correct, all the necessary dll
dependencies are met and it loads OK with the qmlvideo example which I
confirmed using QML_IMPORT_TRACE=1.
Is there something obvious I've missed?
Regards
David Robinson
Please refer to www.anite.com for individual Anite company details. The
contents of this e-mail and any attachments are for the intended recipient
only. If you are not the intended recipient, you are not authorised to and must
not disclose, copy, distribute, or retain this message or any part of it. It
may contain information which is confidential and/or covered by legal
professional or other privilege. Contracts cannot be concluded with us nor
legal service effected by email.
Anite plc
Registered in England No.1798114
Registered Office: 353 Buckingham Avenue Slough Berks SL1 4PF United Kingdom
VAT Registration No. GB 787 418187
Scanned for viruses by Mimecast.
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml
Scanned for viruses by Mimecast.
Please refer to www.anite.com for individual Anite company details. The
contents of this e-mail and any attachments are for the intended recipient
only. If you are not the intended recipient, you are not authorised to and must
not disclose, copy, distribute, or retain this message or any part of it. It
may contain information which is confidential and/or covered by legal
professional or other privilege. Contracts cannot be concluded with us nor
legal service effected by email.
Anite plc
Registered in England No.1798114
Registered Office: 353 Buckingham Avenue Slough Berks SL1 4PF United Kingdom
VAT Registration No. GB 787 418187
Scanned for viruses by Mimecast.
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml