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

    上一话题

    Phonon.StreamInterface

    下一话题

    Phonon.MediaObjectInterface

    Phonon.PlatformPlugin

    详细描述

    class PySide.phonon.Phonon. PlatformPlugin
    PySide.phonon.Phonon.PlatformPlugin. applicationName ( )
    返回类型: unicode

    Returns the name of the application. For most Qt application this is QCoreApplication.applicationName() , but for KDE this is overridden by KAboutData.

    PySide.phonon.Phonon.PlatformPlugin. createBackend ( library , version )
    参数:
    • library – unicode
    • version – unicode
    返回类型:

    PySide.QtCore.QObject

    Using the library loader of the platform, loads a given backend provided the specified library and version .

    PySide.phonon.Phonon.PlatformPlugin. createBackend ( )
    返回类型: PySide.QtCore.QObject

    Creates a backend object. This way the platform can decide the backend preference.

    PySide.phonon.Phonon.PlatformPlugin. createMediaStream ( url , parent )
    参数:
    返回类型:

    PySide.phonon.Phonon::AbstractMediaStream

    创建 AbstractMediaStream 对象采用给定 parent that provides the data for the given URL specified by url .

    PySide.phonon.Phonon.PlatformPlugin. deviceAccessListFor ( arg__1 )
    参数: arg__1 PySide.phonon.Phonon::AudioOutputDevice
    返回类型:
    PySide.phonon.Phonon.PlatformPlugin. icon ( name )
    参数: name – unicode
    返回类型: PySide.QtGui.QIcon

    Returns the icon for the given icon name.

    PySide.phonon.Phonon.PlatformPlugin. isMimeTypeAvailable ( mimeType )
    参数: mimeType – unicode
    返回类型: PySide.QtCore.bool

    Tries to check whether the default backend supports the MIME type specified by mimeType without loading the actual backend library.

    PySide.phonon.Phonon.PlatformPlugin. loadVolume ( outputName )
    参数: outputName – unicode
    返回类型: PySide.QtCore.qreal

    Loads the volume for the given output.

    PySide.phonon.Phonon.PlatformPlugin. notification ( notificationName , text [ , actions=list() [ , receiver=None [ , actionSlot=0 ] ] ] )
    参数:
    • notificationName – str
    • text – unicode
    • actions – list of strings
    • receiver PySide.QtCore.QObject
    • actionSlot – str

    Shows a notification pop-up with the given notificationName and text . Each action in the associated list of actions is connected to the actionSlot 的指定 receiver object, which is expected to act on the actions as they are triggered by the user.

    PySide.phonon.Phonon.PlatformPlugin. objectDescriptionIndexes ( type )
    参数: type PySide.phonon.Phonon.ObjectDescriptionType
    返回类型:
    PySide.phonon.Phonon.PlatformPlugin. objectDescriptionProperties ( type , index )
    参数:
    返回类型:

    PySide.phonon.Phonon.PlatformPlugin. saveVolume ( outputName , volume )
    参数:
    • outputName – unicode
    • volume PySide.QtCore.qreal

    Saves the volume for the given output.