The Qt documentation in C++ of this class can be read here: http://doc.trolltech.com/4.4/phonon.html
It contains useful functions for multimedia applications.
Implemented since KBasic V1.7.
Important All following functions are used by Movie, too. |
KBasic does not implement the multimedia functionality itself, but relies on a backend to manage this. The backends do not manage the hardware directly, but use intermediate technologies: QuickTime on Mac, GStreamer on Linux, and DirectShow (which requires DirectX) on Windows.
The user may add support for new MIME types and effects to these systems, and the systems abilities may also be different. The support for multimedia MIME types, and audio effects in KBasic will therefore vary from system to system.
Function State() As String
Possible values are
Function ErrorType() As String
Possible values are
Function ErrorString() As String
Returns a human-readable description of the last error that occurred.
Function CurrentTime() As Long
Function TotalTime() As Long
Function IsPlaying() As Boolean
Function IsPaused () As Boolean
Function IsMuted () As Boolean
Function IsSeekable() As Boolean
Sub Play()
Sub Play(String)
Sub Load(String)
Sub PlayInQueue(String)
Sorry. Not implemented yet.
Sub Pause()
Sub Stop()
Sub ClearQueue()
Sorry. Not implemented yet.
Sub Seek(Long)
Property Value As String (ReadWrite)
Contains the path of the sound to be played. It can be an absolute path to an sound file (wav, mp3,…) like c:\myfolder\mysound.mp3 or can be an relative path to the current project like mysound.mp3 (which is present in the current project directory). Relative paths are recommended.
Might be a String containing binary data. See the binary project example for using.
Property TransitionTime As Long (ReadWrite)
Sorry. Not implemented yet.
Property Muted As Boolean (ReadWrite)
Property Volume As Integer (ReadWrite)
Sorry. Not implemented yet.
Property PrefinishMark As Long (ReadWrite)
Sorry. Not implemented yet.
Property Tick As Integer (ReadWrite)
Sorry. Not implemented yet.
Property Enabled As Boolean (ReadWrite)
If enabled, playing starts immediately after the form containing this control opens.
Sub OnEvent()
This event is raised, whenever the playing is finished.
Sub OnStateChanged(NewState As String, OldState As String)
Sub OnAboutToFinish()
Sub OnFinished ()
Sub OnTick(Long)
Sorry. Not implemented yet.
Sub OnMutedChanged(Boolean)
Sorry. Not implemented yet.
Sub OnVolumeChanged(Integer)
Sorry. Not implemented yet.
Sub OnPlayedTitleChanged(String)
Sorry. Not implemented yet.
Sub OnBufferStatus(Integer)
Sorry. Not implemented yet.
Sub OnTotalTimeChanged(Long)
Sorry. Not implemented yet.