media_play_bar ============== .. py:module:: qfluentwidgets.multimedia.media_play_bar Module Contents --------------- .. autoapisummary:: qfluentwidgets.multimedia.media_play_bar.MediaPlayBarButton qfluentwidgets.multimedia.media_play_bar.PlayButton qfluentwidgets.multimedia.media_play_bar.VolumeView qfluentwidgets.multimedia.media_play_bar.VolumeButton qfluentwidgets.multimedia.media_play_bar.MediaPlayBarBase qfluentwidgets.multimedia.media_play_bar.SimpleMediaPlayBar qfluentwidgets.multimedia.media_play_bar.StandardMediaPlayBar .. py:class:: MediaPlayBarButton(parent: PyQt5.QtWidgets.QWidget = None) Bases: :py:obj:`qfluentwidgets.components.widgets.button.TransparentToolButton` Media play bar button .. py:class:: PlayButton(parent: PyQt5.QtWidgets.QWidget = None) Bases: :py:obj:`MediaPlayBarButton` Play button .. py:method:: setPlay(isPlay: bool) .. py:class:: VolumeView(parent=None) Bases: :py:obj:`qfluentwidgets.components.widgets.flyout.FlyoutViewBase` Volume view .. py:attribute:: muteButton .. py:attribute:: volumeSlider .. py:attribute:: volumeLabel .. py:method:: setMuted(isMute: bool) .. py:method:: setVolume(volume: int) .. py:method:: paintEvent(e) .. py:class:: VolumeButton(parent: PyQt5.QtWidgets.QWidget = None) Bases: :py:obj:`MediaPlayBarButton` Volume button .. py:attribute:: volumeChanged .. py:attribute:: mutedChanged .. py:method:: setMuted(isMute: bool) .. py:method:: setVolume(volume: int) .. py:class:: MediaPlayBarBase(parent=None) Bases: :py:obj:`PyQt5.QtWidgets.QWidget` Play bar base class .. py:attribute:: player :type: qfluentwidgets.multimedia.media_player.MediaPlayerBase :value: None .. py:attribute:: playButton .. py:attribute:: volumeButton .. py:attribute:: progressSlider .. py:attribute:: opacityEffect .. py:attribute:: opacityAni .. py:method:: setMediaPlayer(player: qfluentwidgets.multimedia.media_player.MediaPlayerBase) set media player .. py:method:: fadeIn() .. py:method:: fadeOut() .. py:method:: play() .. py:method:: pause() .. py:method:: stop() .. py:method:: setVolume(volume: int) Sets the volume of player .. py:method:: setPosition(position: int) Sets the position of media in ms .. py:method:: togglePlayState() toggle the play state of media player .. py:method:: paintEvent(e) .. py:class:: SimpleMediaPlayBar(parent=None) Bases: :py:obj:`MediaPlayBarBase` simple media play bar .. py:attribute:: hBoxLayout .. py:method:: addButton(button: MediaPlayBarButton) add button to the right side of play bar .. py:class:: StandardMediaPlayBar(parent=None) Bases: :py:obj:`MediaPlayBarBase` Standard media play bar .. py:attribute:: vBoxLayout .. py:attribute:: timeLayout .. py:attribute:: buttonLayout .. py:attribute:: leftButtonContainer .. py:attribute:: centerButtonContainer .. py:attribute:: rightButtonContainer .. py:attribute:: leftButtonLayout .. py:attribute:: centerButtonLayout .. py:attribute:: rightButtonLayout .. py:attribute:: skipBackButton .. py:attribute:: skipForwardButton .. py:attribute:: currentTimeLabel .. py:attribute:: remainTimeLabel .. py:method:: skipBack(ms: int) Back up for specified milliseconds .. py:method:: skipForward(ms: int) Fast forward specified milliseconds