kibsoft / QtMEL

Qt Media Encoding Library
GNU Lesser General Public License v2.1
67 stars 16 forks source link

QtMEL for QML #33

Closed ofuochi closed 8 years ago

ofuochi commented 8 years ago

Hi. you've done a great Job here, well done! Am doing a UI intensive project with QML and I'm on a window 7 64bits platform. Is there a way for QML people to enjoy this? (Am very weak with C++) As you might know, Video recording is not supported for Windows in QML either. It will really be helpful if there is.

kibsoft commented 8 years ago

Hello! Unfortunately I don't have implementation available directly in QML. But that is what you can do: 1) create object of Recorder class in main.cpp(for example) 2) set image and audio grabber to Recorder using setImageGrabber and setAudioGrabber 3) expose Recorder into QML using setContextProperty (look at http://doc.qt.io/qt-5/qtqml-cppintegration-contextproperties.html) 4) Use Recorder's slots like start(), stop(), pause(), resume() in QML

ofuochi commented 8 years ago

Thank you so much. I'll try that right now!