Meego Wiki
Views

UMMS User Manual

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
(API Reference)
(Objects and Interfaces)
Line 9: Line 9:
== Objects and Interfaces ==
== Objects and Interfaces ==
-
''ObjectManager''
+
''ObjectManager'': Object to create and remove ''MediaPlayer'' object.
   Path:      /com/UMMS/ObjectManager
   Path:      /com/UMMS/ObjectManager
   Interface: com.UMMS.ObjectManager.iface
   Interface: com.UMMS.ObjectManager.iface
-
''MediaPlayer''
+
''MediaPlayer'': Player object to control the playback of media assets.
   Path:      Returned by ''ObjectManager''
   Path:      Returned by ''ObjectManager''
   Interface: com.UMMS.MediaPlayer
   Interface: com.UMMS.MediaPlayer
-
''AudioManager''
+
''AudioManager'': Object to manage the system audio output.
   Path:      /com/UMMS/AudioManager
   Path:      /com/UMMS/AudioManager
   Interface: com.UMMS.AudioManger
   Interface: com.UMMS.AudioManger

Revision as of 14:38, 17 November 2011

Contents

UMMS User Manual and Sample code

Introduction

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

Service Name

com.UMMS

Objects and Interfaces

ObjectManager: Object to create and remove MediaPlayer object.

 Path:      /com/UMMS/ObjectManager
 Interface: com.UMMS.ObjectManager.iface

MediaPlayer: Player object to control the playback of media assets.

 Path:      Returned by ObjectManager
 Interface: com.UMMS.MediaPlayer

AudioManager: Object to manage the system audio output.

 Path:      /com/UMMS/AudioManager
 Interface: com.UMMS.AudioManger

API Reference

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)
Personal tools