/****************************************************************************
* VLC-Qt - Qt and libvlc connector library
* Copyright (C) 2013 Tadej Novak <tadej@tano.si>
*
* This library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#ifndef VLCQT_QMLVIDEOPLAYER_H_
#define VLCQT_QMLVIDEOPLAYER_H_
#include <QtQuick/QQuickItem>
#include "QmlVideoObject.h"
#include "SharedExportQml.h"
#include <VLCQtCore/TrackModel.h>
class VlcAudio;
class VlcInstance;
class VlcMedia;
class VlcMediaPlayer;
class VlcVideo;
/*!
\class VlcQmlVideoPlayer QmlVideoPlayer.h VLCQtQml/QmlVideoPlayer.h
\ingroup VLCQtQml
\brief QML video player (deprecated)
A simple QML video player that can be used standalone and directly inside QML.
\deprecated Deprecated since VLC-Qt 1.1, will be removed in 2.0
*/
class Q_DECL_DEPRECATED VLCQT_QML_EXPORT VlcQmlVideoPlayer : public VlcQmlVideoObject
{
Q_OBJECT
public:
/*!
\brief Current volume
\see setVolume
\see volumeChanged
*/
Q_PROPERTY(int volume READ volume WRITE setVolume NOTIFY volumeChanged)
/*!
\brief Current aspect ratio
\see setAspectRatio
\see aspectRatioChanged
*/
Q_PROPERTY(QString aspectRatio READ aspectRatio WRITE setAspectRatio NOTIFY aspectRatioChanged)
/*!
\brief Current crop ratio
\see setCropRatio
\see cropRatioChanged
*/
Q_PROPERTY(QString cropRatio READ cropRatio WRITE setCropRatio NOTIFY cropRatioChanged)
/*!
\brief Current deinterlacing mode
\see setDeinterlacing
\see deinterlacingChanged
*/
Q_PROPERTY(QString deinterlacing READ deinterlacing WRITE setDeinterlacing NOTIFY deinterlacingChanged)
/*!
\brief Current media URL
\see setUrl
*/
Q_PROPERTY(QUrl url READ url WRITE setUrl)
/*!
\brief Current autoplay setting
\see setAutoplay
*/
Q_PROPERTY(bool autoplay READ autoplay WRITE setAutoplay)
/*!
\brief Current state
\see stateChanged
*/
Q_PROPERTY(int state READ state NOTIFY stateChanged)
/*!
\brief Current seekable status
\see seekableChanged
*/
Q_PROPERTY(bool seekable READ seekable NOTIFY seekableChanged)
/*!
\brief Current media length
\see length
\see lengthChanged
*/
Q_PROPERTY(int length READ length NOTIFY lengthChanged)
/*!
\brief Current media time
\see time
\see timeChanged
*/
Q_PROPERTY(int time READ time WRITE setTime NOTIFY timeChanged)
/*!
\brief Current media position
\see position
\see positionChanged
*/
Q_PROPERTY(float position READ position WRITE setPosition NOTIFY positionChanged)
/*!
\brief Current audio track
\see audioTrack
\see setAudioTrack
\see audioTrackChanged
\since VLC-Qt 1.1
*/
Q_PROPERTY(int audioTrack READ audioTrack WRITE setAudioTrack NOTIFY audioTrackChanged)
/*!
\brief Audio track model
\see audioTrackModel
\since VLC-Qt 1.1
*/
Q_PROPERTY(VlcTrackModel *audioTrackModel READ audioTrackModel CONSTANT)
/*!
\brief Current audio preferred languages
\see audioPreferredLanguages
\see setAudioPreferredLanguages
\see audioPreferredLanguagesChanged
\since VLC-Qt 1.1
*/
Q_PROPERTY(QStringList audioPreferredLanguages READ audioPreferredLanguages WRITE setAudioPreferredLanguages NOTIFY audioPreferredLanguagesChanged)
/*!
\brief Current subtitle track
\see subtitleTrack
\see setSubtitleTrack
\see subtitleTrackChanged
\since VLC-Qt 1.1
*/
Q_PROPERTY(int subtitleTrack READ subtitleTrack WRITE setSubtitleTrack NOTIFY subtitleTrackChanged)
/*!
\brief Subtitle track model
\see subtitleTrackModel
\since VLC-Qt 1.1
*/
Q_PROPERTY(VlcTrackModel *subtitleTrackModel READ subtitleTrackModel CONSTANT)
/*!
\brief Current subtitle preferred languages
\see subtitlePreferredLanguages
\see setSubtitlePreferredLanguages
\see subtitlePreferredLanguagesChanged
\since VLC-Qt 1.1
*/
Q_PROPERTY(QStringList subtitlePreferredLanguages READ subtitlePreferredLanguages WRITE setSubtitlePreferredLanguages NOTIFY subtitlePreferredLanguagesChanged)
/*!
\brief Current video track
\see videoTrack
\see setVideoTrack
\see videoTrackChanged
\since VLC-Qt 1.1
*/
Q_PROPERTY(int videoTrack READ videoTrack WRITE setVideoTrack NOTIFY videoTrackChanged)
/*!
\brief Video track model
\see videoTrackModel
\since VLC-Qt 1.1
*/
Q_PROPERTY(VlcTrackModel *videoTrackModel READ videoTrackModel CONSTANT)
/*!
\brief VlcQmlVideoPlayer constructor.
\param parent parent item (QQuickItem *)
*/
explicit VlcQmlVideoPlayer(QQuickItem *parent = 0);
/*!
VlcMediaPlayer destructor
*/
~VlcQmlVideoPlayer();
/*!
\brief Register QML plugin as VLCQt.VlcVideoPlayer
Include into QML file as
import VLCQt VERSION_MAJOR.VERSION_MINOR
Object name: VlcVideoPlayer
*/
static void registerPlugin();
/*!
\brief Pause current playback
Invokable from QML.
*/
Q_INVOKABLE void pause();
/*!
\brief Play current playback
Invokable from QML.
*/
Q_INVOKABLE void play();
/*!
\brief Stop current playback
Invokable from QML.
*/
Q_INVOKABLE void stop();
/*!
\brief Get current volume
\return current volume (int)
Used as property in QML.
*/
int volume() const;
/*!
\brief Set volume
\param volume new volume
Used as property in QML.
*/
void setVolume(int volume);
/*!
\brief Get current aspect ratio
\return current aspect ratio
Used as property in QML.
*/
QString aspectRatio() const;
/*!
\brief Set aspect ratio
\param aspectRatio new aspect ratio
Used as property in QML.
*/
void setAspectRatio(const QString &aspectRatio);
/*!
\brief Get current crop ratio
\return current crop ratio
Used as property in QML.
*/
QString cropRatio() const;
/*!
\brief Set crop ratio
\param cropRatio new crop ratio
Used as property in QML.
*/
void setCropRatio(const QString &cropRatio);
/*!
\brief Get current media URL
\return current media URL
Used as property in QML.
*/
QUrl url() const;
/*!
\brief Set media URL
\param url new media URL
Used as property in QML.
*/
void setUrl(const QUrl &url);
/*!
\brief Get current autoplay setting
\return current autoplay setting
Used
没有合适的资源?快使用搜索试试~ 我知道了~
QT环境下使用vlc-qt库播放本地视频的动态库,亲测可用
共761个文件
dll:676个
h:39个
cmake:34个
需积分: 5 1 下载量 75 浏览量
2023-10-17
20:49:56
上传
评论
收藏 89.2MB ZIP 举报
温馨提示
QT环境下使用vlc-qt库播放本地视频的动态库,亲测可用
资源推荐
资源详情
资源评论
收起资源包目录
QT环境下使用vlc-qt库播放本地视频的动态库,亲测可用 (761个子文件)
VLCQtWidgetsTargets.cmake 4KB
VLCQtWidgetsTargets.cmake 4KB
VLCQtCoreTargets.cmake 4KB
VLCQtCoreTargets.cmake 4KB
VLCQtQmlTargets.cmake 4KB
VLCQtQmlTargets.cmake 4KB
VLCQtConfigVersion.cmake 2KB
VLCQtCoreConfigVersion.cmake 2KB
VLCQtQmlConfigVersion.cmake 2KB
VLCQtWidgetsConfigVersion.cmake 2KB
VLCQtConfigVersion.cmake 2KB
VLCQtCoreConfigVersion.cmake 2KB
VLCQtQmlConfigVersion.cmake 2KB
VLCQtWidgetsConfigVersion.cmake 2KB
VLCQtConfig.cmake 1KB
VLCQtConfig.cmake 1KB
VLCQtWidgetsTargets-release.cmake 1002B
VLCQtWidgetsTargets-release.cmake 1002B
VLCQtWidgetsTargets-debug.cmake 990B
VLCQtWidgetsTargets-debug.cmake 990B
VLCQtQmlTargets-release.cmake 964B
VLCQtQmlTargets-release.cmake 964B
VLCQtCoreTargets-release.cmake 960B
VLCQtCoreTargets-release.cmake 960B
VLCQtQmlTargets-debug.cmake 952B
VLCQtQmlTargets-debug.cmake 952B
VLCQtCoreTargets-debug.cmake 948B
VLCQtCoreTargets-debug.cmake 948B
VLCQtQmlConfig.cmake 610B
VLCQtQmlConfig.cmake 610B
VLCQtWidgetsConfig.cmake 569B
VLCQtWidgetsConfig.cmake 569B
VLCQtCoreConfig.cmake 387B
VLCQtCoreConfig.cmake 387B
libavcodec_plugin.dll 16.03MB
libavcodec_plugin.dll 16.03MB
libaccess_output_srt_plugin.dll 3.51MB
libaccess_output_srt_plugin.dll 3.51MB
libaccess_srt_plugin.dll 3.51MB
libaccess_srt_plugin.dll 3.51MB
libvpx_plugin.dll 3MB
libvpx_plugin.dll 3MB
liblibass_plugin.dll 2.98MB
liblibass_plugin.dll 2.98MB
libx265_plugin.dll 2.9MB
libx265_plugin.dll 2.9MB
libfreetype_plugin.dll 2.65MB
libfreetype_plugin.dll 2.65MB
libvnc_plugin.dll 2.6MB
libvnc_plugin.dll 2.6MB
libvlccore.dll 2.55MB
libvlccore.dll 2.55MB
libdcp_plugin.dll 2.36MB
libdcp_plugin.dll 2.36MB
libadaptive_plugin.dll 2.23MB
libadaptive_plugin.dll 2.23MB
libgnutls_plugin.dll 1.96MB
libgnutls_plugin.dll 1.96MB
liblibbluray_plugin.dll 1.92MB
liblibbluray_plugin.dll 1.92MB
libx264_plugin.dll 1.81MB
libx26410b_plugin.dll 1.81MB
libx264_plugin.dll 1.81MB
libx26410b_plugin.dll 1.81MB
libmkv_plugin.dll 1.66MB
libmkv_plugin.dll 1.66MB
libtaglib_plugin.dll 1.6MB
libtaglib_plugin.dll 1.6MB
libsamplerate_plugin.dll 1.44MB
libsamplerate_plugin.dll 1.44MB
libzvbi_plugin.dll 1.37MB
libzvbi_plugin.dll 1.37MB
libsid_plugin.dll 1.18MB
libsid_plugin.dll 1.18MB
libschroedinger_plugin.dll 1.17MB
libschroedinger_plugin.dll 1.17MB
libstream_out_chromaprint_plugin.dll 1.15MB
libstream_out_chromaprint_plugin.dll 1.15MB
libstream_out_chromecast_plugin.dll 1.08MB
libstream_out_chromecast_plugin.dll 1.08MB
libdav1d_plugin.dll 1.06MB
libdav1d_plugin.dll 1.06MB
libspatialaudio_plugin.dll 1.03MB
libspatialaudio_plugin.dll 1.03MB
libgme_plugin.dll 1.02MB
libgme_plugin.dll 1.02MB
libaom_plugin.dll 1013KB
libaom_plugin.dll 1013KB
libxml_plugin.dll 994KB
libxml_plugin.dll 994KB
libupnp_plugin.dll 942KB
libupnp_plugin.dll 942KB
libswscale_plugin.dll 911KB
libswscale_plugin.dll 911KB
libdshow_plugin.dll 900KB
libdshow_plugin.dll 900KB
libdtv_plugin.dll 876KB
libdtv_plugin.dll 876KB
libcaca_plugin.dll 811KB
libcaca_plugin.dll 811KB
共 761 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
资源评论
一条大河两岸宽
- 粉丝: 0
- 资源: 42
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功