/****************************************************************************
* 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
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
vlc-qt库,可在qml中使用,可更改缓冲时间。个人编译 (344个子文件)
libavcodec_plugin.dll 14.24MB
liblibass_plugin.dll 2.54MB
libvlccore.dll 2.51MB
liblibbluray_plugin.dll 2.1MB
libx265_plugin.dll 1.94MB
libvpx_plugin.dll 1.7MB
libzvbi_plugin.dll 1.5MB
libtaglib_plugin.dll 1.49MB
libsamplerate_plugin.dll 1.43MB
libgnutls_plugin.dll 1.32MB
libmkv_plugin.dll 1.25MB
libschroedinger_plugin.dll 1.23MB
libx264_plugin.dll 1.22MB
libxml_plugin.dll 1.21MB
libsid_plugin.dll 939KB
libstream_out_chromaprint_plugin.dll 913KB
libcaca_plugin.dll 814KB
libfreetype_plugin.dll 771KB
libdash_plugin.dll 753KB
libvorbis_plugin.dll 737KB
libswscale_plugin.dll 729KB
libsftp_plugin.dll 714KB
liblive555_plugin.dll 711KB
libupnp_plugin.dll 665KB
libstream_out_rtp_plugin.dll 628KB
libhttplive_plugin.dll 584KB
libstream_out_raop_plugin.dll 546KB
libdshow_plugin.dll 542KB
libremoteosd_plugin.dll 540KB
libaccess_output_livehttp_plugin.dll 535KB
librtp_plugin.dll 526KB
libmod_plugin.dll 519KB
libflac_plugin.dll 445KB
libaccess_output_shout_plugin.dll 444KB
libgme_plugin.dll 408KB
libopus_plugin.dll 361KB
libfaad_plugin.dll 348KB
libtheora_plugin.dll 336KB
libogg_plugin.dll 330KB
libpng_plugin.dll 292KB
libdtv_plugin.dll 259KB
libjpeg_plugin.dll 255KB
libdvdnav_plugin.dll 239KB
libmp4_plugin.dll 237KB
libatmo_plugin.dll 224KB
libblend_plugin.dll 196KB
libdtstofloat32_plugin.dll 172KB
libcdda_plugin.dll 168KB
libts_plugin.dll 166KB
libdeinterlace_plugin.dll 164KB
libdvdread_plugin.dll 163KB
libspeex_plugin.dll 154KB
libqsv_plugin.dll 148KB
liblibmpeg2_plugin.dll 145KB
libtwolame_plugin.dll 144KB
VLCQtCore.dll 143KB
libplaylist_plugin.dll 142KB
libvlc.dll 141KB
libmpgatofixed32_plugin.dll 137KB
libsap_plugin.dll 134KB
libzip_plugin.dll 128KB
libmux_ts_plugin.dll 125KB
libhttp_plugin.dll 125KB
libi420_rgb_sse2_plugin.dll 122KB
libspatializer_plugin.dll 119KB
libdvbsub_plugin.dll 119KB
libpostproc_plugin.dll 116KB
libaccess_realrtsp_plugin.dll 112KB
libaccess_bd_plugin.dll 111KB
libkate_plugin.dll 111KB
libavi_plugin.dll 106KB
libglwin32_plugin.dll 106KB
VLCQtQml.dll 105KB
libvod_rtsp_plugin.dll 102KB
libsubtitle_plugin.dll 98KB
libftp_plugin.dll 96KB
libasf_plugin.dll 94KB
libflacsys_plugin.dll 89KB
libpuzzle_plugin.dll 89KB
libvcd_plugin.dll 89KB
libvdr_plugin.dll 87KB
libpacketizer_h264_plugin.dll 87KB
libaccess_mms_plugin.dll 86KB
libaddonsfsstorage_plugin.dll 86KB
libvobsub_plugin.dll 85KB
libdirect3d_plugin.dll 84KB
libmux_ogg_plugin.dll 84KB
libmpc_plugin.dll 83KB
libaddonsvorepository_plugin.dll 81KB
libdxva2_plugin.dll 79KB
libmux_mp4_plugin.dll 77KB
libdirectdraw_plugin.dll 76KB
libpacketizer_mpeg4audio_plugin.dll 76KB
VLCQtWidgets.dll 71KB
libsmooth_plugin.dll 70KB
libgl_plugin.dll 66KB
liba52tofloat32_plugin.dll 66KB
libsubsdec_plugin.dll 65KB
libdirect2d_plugin.dll 64KB
libfingerprinter_plugin.dll 64KB
共 344 条
- 1
- 2
- 3
- 4
资源评论
- wj2itp082017-10-23希望可以解决我的问题
- story852018-08-31希望可以解决我的问题
- 情何以堪♛2020-04-22请问一下怎么更改缓冲时间呀?
- chinaliuxinxin2017-12-25我也不知道在下载一次试试
liuxuan19901010
- 粉丝: 1
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功