TTKMusicPlayer
4.1.3.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
The class of the video view widget. More...
#include <musicvideoview.h>
Public Slots | |
void | play () |
Signals | |
void | searchButtonClicked () |
void | popupButtonClicked () |
void | fullscreenButtonClicked () |
void | downloadButtonClicked () |
void | shareButtonClicked () |
Public Member Functions | |
MusicVideoView (QWidget *parent=nullptr) | |
~MusicVideoView () | |
void | setMedia (const QString &url) |
void | setBarrage (const QString &name, const QString &id) |
void | resizeGeometry (int width, int height) |
void | createRightMenu () |
MusicVideoControlWidget * | controlBarWidget () const |
Private Slots | |
void | stop () |
void | positionChanged (qint64 position) |
void | durationChanged (qint64 duration) |
void | setPosition (int position) |
void | volumeChanged (int volume) |
void | mediaChanged (const QString &url) |
void | mediaPlayFinished (int code) |
void | fullscreenButtonTrigger () |
Private Member Functions | |
virtual void | contextMenuEvent (QContextMenuEvent *event) overridefinal |
Private Attributes | |
MusicCoreMPlayer * | m_player |
MusicViewWidget * | m_videoWidget |
MusicVideoControlWidget * | m_videoControl |
MusicBarrageWidget * | m_barrageWidget |
The class of the video view widget.
Definition at line 74 of file musicvideoview.h.
|
explicit |
Object constructor.
Definition at line 66 of file musicvideoview.cpp.
References TTK::UI::BackgroundStyle02, durationChanged(), fullscreenButtonClicked(), m_barrageWidget, m_player, m_videoControl, m_videoWidget, mediaChanged(), mediaPlayFinished(), play(), positionChanged(), resizeGeometry(), and setPosition().
MusicVideoView::~MusicVideoView | ( | ) |
Object destructor.
Definition at line 93 of file musicvideoview.cpp.
References m_barrageWidget, m_player, m_videoControl, and m_videoWidget.
|
finaloverrideprivatevirtual |
Override the widget event.
Definition at line 101 of file musicvideoview.cpp.
References createRightMenu().
|
inline |
Get control bar widget.
Definition at line 109 of file musicvideoview.h.
Referenced by MusicVideoPlayWidget::enterEvent(), MusicVideoPlayWidget::leaveTimeout(), and MusicVideoPlayWidget::MusicVideoPlayWidget().
void MusicVideoView::createRightMenu | ( | ) |
Create right menu.
Definition at line 125 of file musicvideoview.cpp.
References TTK::Widget::adjustMenuPosition(), downloadButtonClicked(), fullscreenButtonTrigger(), MusicCoreMPlayer::isPlaying(), m_player, TTK::UI::MenuStyle02, play(), popupButtonClicked(), searchButtonClicked(), shareButtonClicked(), and stop().
Referenced by contextMenuEvent().
|
signal |
Download button clicked.
Referenced by createRightMenu().
|
privateslot |
Current duration changed.
Definition at line 176 of file musicvideoview.cpp.
References MusicVideoControlWidget::durationChanged(), and m_videoControl.
Referenced by MusicVideoView().
|
signal |
Fullscreen button clicked.
Referenced by fullscreenButtonTrigger(), and MusicVideoView().
|
privateslot |
Fullscreen action trigger.
Definition at line 205 of file musicvideoview.cpp.
References fullscreenButtonClicked(), TTK_SIGNAL, and TTK_SIGNLE_SHOT.
Referenced by createRightMenu().
|
privateslot |
Current media changed.
Definition at line 191 of file musicvideoview.cpp.
References m_videoControl, and MusicVideoControlWidget::mediaChanged().
Referenced by MusicVideoView().
|
privateslot |
Media play finished.
Definition at line 196 of file musicvideoview.cpp.
References MusicToastLabel::popup(), stop(), and TTK_LOW_LEVEL.
Referenced by MusicVideoView().
|
slot |
Player to play.
Definition at line 143 of file musicvideoview.cpp.
References m_barrageWidget, m_player, m_videoControl, MusicBarrageWidget::pause(), TTK::Paused, MusicCoreMPlayer::play(), TTK::Playing, MusicVideoControlWidget::setButtonStyle(), MusicBarrageWidget::start(), and MusicCoreMPlayer::state().
Referenced by createRightMenu(), MusicVideoPlayWidget::mediaUrlChanged(), and MusicVideoView().
|
signal |
Popup button clicked.
Referenced by createRightMenu().
|
privateslot |
Current position changed.
Definition at line 171 of file musicvideoview.cpp.
References m_videoControl, and MusicVideoControlWidget::setValue().
Referenced by MusicVideoView().
Resize geometry bound by resize called.
Definition at line 118 of file musicvideoview.cpp.
References m_barrageWidget, m_videoControl, m_videoWidget, and MusicBarrageWidget::setSize().
Referenced by MusicVideoView(), and MusicVideoPlayWidget::resizeGeometry().
|
signal |
Search button clicked.
Referenced by createRightMenu().
Set barrage play data.
Definition at line 113 of file musicvideoview.cpp.
References m_barrageWidget, and MusicBarrageWidget::setBarrage().
Referenced by MusicVideoPlayWidget::mediaUrlPathChanged().
void MusicVideoView::setMedia | ( | const QString & | url | ) |
Set video play url.
Definition at line 107 of file musicvideoview.cpp.
References m_player, m_videoControl, m_videoWidget, MusicCoreMPlayer::setMedia(), MusicVideoControlWidget::setQualityActionState(), and MusicCoreMPlayer::Video.
Referenced by MusicVideoPlayWidget::mediaUrlChanged().
|
privateslot |
Set current play pos.
Definition at line 181 of file musicvideoview.cpp.
References m_player, MusicCoreMPlayer::setPosition(), and TTK_DN_S2MS.
Referenced by MusicVideoView().
|
signal |
Share button clicked.
Referenced by createRightMenu().
|
privateslot |
Player to stop.
Definition at line 164 of file musicvideoview.cpp.
References m_barrageWidget, m_player, MusicBarrageWidget::stop(), and MusicCoreMPlayer::stop().
Referenced by createRightMenu(), and mediaPlayFinished().
|
privateslot |
Current volume changed.
Definition at line 186 of file musicvideoview.cpp.
References m_player, and MusicCoreMPlayer::setVolume().
|
private |
Definition at line 183 of file musicvideoview.h.
Referenced by MusicVideoView(), play(), resizeGeometry(), setBarrage(), stop(), and ~MusicVideoView().
|
private |
Definition at line 180 of file musicvideoview.h.
Referenced by createRightMenu(), MusicVideoView(), play(), setMedia(), setPosition(), stop(), volumeChanged(), and ~MusicVideoView().
|
private |
Definition at line 182 of file musicvideoview.h.
Referenced by durationChanged(), mediaChanged(), MusicVideoView(), play(), positionChanged(), resizeGeometry(), setMedia(), and ~MusicVideoView().
|
private |
Definition at line 181 of file musicvideoview.h.
Referenced by MusicVideoView(), resizeGeometry(), setMedia(), and ~MusicVideoView().