YouTube View Example
The application makes use of an XmlListModel to query the YouTube API for HTML5 video clips and lists thumbnails of the clips in a ListView at the top. The WebView loads a local
When clicking on a thumbnail, the corresponding clip is loaded in the WebView by passing the video ID as a query string to
onTitleChanged slot of the WebView item and thus switches between specific states. By default the application loads a list of movie trailers.
When clicking on the button below the thumbnail list, the application switches to search mode, which allows to search for videos using keywords. Additionally it is also possible to choose from a number of preset movie trailer streams.
This example uses the QtWebKit QML API that utilizes the WebKit2 split-process architecture.
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.