• PySide 模块
  • PySide.phonon
  • 内容表

    上一话题

    Phonon.VideoPlayer

    下一话题

    Phonon.EffectWidget

    Phonon.SeekSlider

    概要

    函数

    详细描述

    SeekSlider class provides a slider for seeking to positions in media streams.

    SeekSlider connects to a Phonon.MediaObject , and controls the seek position in the object's media stream.

    The slider will connect to the necessary signals to keep track of the sliders maximum, minimum, and current values. It will also disable itself for non-seekable streams, and update the media object when the current value of the slider changes.

    Here follows a typical example of SeekSlider usage:

    moo = Phonon.MediaObject()
    device = Phonon.AudioOutput()
    Phonon.createPath(moo, device)
    moo.setCurrentSource(QString("/home/gvatteka/Music/Lumme-Badloop.ogg"))
    slider = Phonon.SeekSlider()
    slider.setMediaObject(moo)
    slider.show()
    moo.play()
    										

    另请参阅

    Phonon.VolumeSlider Phonon.VideoWidget 音乐播放器范例 Phonon Module

    class PySide.phonon.Phonon. SeekSlider ( media [ , parent=None ] )
    class PySide.phonon.Phonon. SeekSlider ( [ parent=None ] )
    参数:

    Constructs a seek slider widget for the specified media 采用给定 parent .

    Constructs a seek slider widget with the given parent .

    PySide.phonon.Phonon.SeekSlider. hasTracking ( )
    返回类型: PySide.QtCore.bool

    This property holds whether slider tracking is enabled.

    If tracking is enabled (the default), the media seeks while the slider is being dragged. If tracking is disabled, the media seeks only when the user releases the slider.

    PySide.phonon.Phonon.SeekSlider. iconSize ( )
    返回类型: PySide.QtCore.QSize

    This property holds the icon size used for the mute button/icon..

    The default size is defined by the GUI style.

    PySide.phonon.Phonon.SeekSlider. isIconVisible ( )
    返回类型: PySide.QtCore.bool

    This property holds whether the icon next to the slider is visible.

    By default the icon is visible if the platform provides an icon; else it's hidden.

    PySide.phonon.Phonon.SeekSlider. mediaObject ( )
    返回类型: PySide.phonon.Phonon::MediaObject

    Return the media object this SeekSlider controls.

    另请参阅

    PySide.phonon.Phonon::SeekSlider.setMediaObject()

    PySide.phonon.Phonon.SeekSlider. orientation ( )
    返回类型: PySide.QtCore.Qt.Orientation

    This property holds the orientation of the slider.

    取向必须是 Qt.Vertical or Qt.Horizontal (the default).

    PySide.phonon.Phonon.SeekSlider. pageStep ( )
    返回类型: PySide.QtCore.int

    This property holds the page step interval.

    The larger of two natural steps that a slider provides and typically corresponds to the user pressing PageUp or PageDown.

    Defaults to 5 seconds.

    PySide.phonon.Phonon.SeekSlider. setIconSize ( size )
    参数: size PySide.QtCore.QSize

    This property holds the icon size used for the mute button/icon..

    The default size is defined by the GUI style.

    PySide.phonon.Phonon.SeekSlider. setIconVisible ( arg__1 )
    参数: arg__1 PySide.QtCore.bool

    This property holds whether the icon next to the slider is visible.

    By default the icon is visible if the platform provides an icon; else it's hidden.

    PySide.phonon.Phonon.SeekSlider. setMediaObject ( arg__1 )
    参数: arg__1 PySide.phonon.Phonon::MediaObject

    Sets the media object to be controlled by this slider to the media 指定。

    另请参阅

    PySide.phonon.Phonon::SeekSlider.mediaObject()

    PySide.phonon.Phonon.SeekSlider. setOrientation ( arg__1 )
    参数: arg__1 PySide.QtCore.Qt.Orientation

    This property holds the orientation of the slider.

    取向必须是 Qt.Vertical or Qt.Horizontal (the default).

    PySide.phonon.Phonon.SeekSlider. setPageStep ( 毫秒 )
    参数: 毫秒 PySide.QtCore.int

    This property holds the page step interval.

    The larger of two natural steps that a slider provides and typically corresponds to the user pressing PageUp or PageDown.

    Defaults to 5 seconds.

    PySide.phonon.Phonon.SeekSlider. setSingleStep ( 毫秒 )
    参数: 毫秒 PySide.QtCore.int

    This property holds the single step interval.

    The smaller of two natural steps that a slider provides and typically corresponds to the user pressing an arrow key.

    Defaults to 0.5 seconds.

    PySide.phonon.Phonon.SeekSlider. setTracking ( tracking )
    参数: tracking PySide.QtCore.bool

    This property holds whether slider tracking is enabled.

    If tracking is enabled (the default), the media seeks while the slider is being dragged. If tracking is disabled, the media seeks only when the user releases the slider.

    PySide.phonon.Phonon.SeekSlider. singleStep ( )
    返回类型: PySide.QtCore.int

    This property holds the single step interval.

    The smaller of two natural steps that a slider provides and typically corresponds to the user pressing an arrow key.

    Defaults to 0.5 seconds.