(→Next chapter) |
(→API Reference) |
||
| Line 31: | Line 31: | ||
Methods: | Methods: | ||
SetUri(s: uri) | SetUri(s: uri) | ||
| + | Play() | ||
| + | Pause() | ||
| + | Stop() | ||
| + | SetPosition(x: pos) | ||
| + | GetPosition(x(out): pos) | ||
| + | SetPlaybackRate(d: rate) | ||
| + | GetPlaybackRate(d(out): rate) | ||
| + | SetVolume(i: volume) | ||
| + | GetVolume(i(out): volume) | ||
| + | SetVideoSize(u: x, u: y, u: w, u: h) | ||
| + | GetVideoSize(u(out): w, u(out): h) | ||
| + | GetBufferedTime(x(out): length_time) | ||
| + | GetBufferedBytes(x(out): length_byte) | ||
| + | GetMediaSizeTime(x(out): duration) | ||
| + | GetMediaSizeBytes(x(out): size) | ||
Signals: | Signals: | ||
Contents |
This page provides the User Manual and some sample code for the Universal Multi Media Service (UMMS).
UMMS general description can found on its main page
com.UMMS
ObjectManager
Path: /com/UMMS/ObjectManager Interface: com.UMMS.ObjectManager.iface
MediaPlayer
Path: Returned by ObjectManager Interface: com.UMMS.MediaPlayer
AudioManager
Path: /com/UMMS/AudioManager Interface: com.UMMS.AudioManger
Interface com.UMMS.ObjectManager.iface
Methods: RequestMediaPlayer(s(out): object_path) RequestMediaPlayerUnattended(d: time_to_execution, s(out): token, s(out): object_path) RemoveMediaPlayer(s: object_path)
Interface com.UMMS.MediaPlayer
Methods: SetUri(s: uri) Play() Pause() Stop() SetPosition(x: pos) GetPosition(x(out): pos) SetPlaybackRate(d: rate) GetPlaybackRate(d(out): rate) SetVolume(i: volume) GetVolume(i(out): volume) SetVideoSize(u: x, u: y, u: w, u: h) GetVideoSize(u(out): w, u(out): h) GetBufferedTime(x(out): length_time) GetBufferedBytes(x(out): length_byte) GetMediaSizeTime(x(out): duration) GetMediaSizeBytes(x(out): size)
Signals:
Initialized
Eof
Error(u: id, s: message)
Buffering
Buffered
RequestWindow
Seeked
Stopped
PlayerStateChanged(i: old_state, i: new_state)
NeedReply
TargetReady(a{sv}: info)
Suspended
Restored
NoResource
VideoTagChanged(i: video_number)
AudioTagChanged(i: audio_number)
TextTagChanged(i: text_number)
Interface: com.UMMS.AudioManger
Methods: SetVolume(i: output_type, i: volume)