Music Hub ..
A session-wide music playback service
Loading...
Searching...
No Matches
lomiri::MediaHubService::Player Class Reference

#include <player.h>

Collaboration diagram for lomiri::MediaHubService::Player:

Classes

struct  Client
struct  Errors

Public Types

enum  PlaybackStatus {
  null ,
  ready ,
  playing ,
  paused ,
  stopped
}
enum  LoopStatus {
  none ,
  track ,
  playlist
}
enum  AudioStreamRole {
  alarm ,
  alert ,
  multimedia ,
  phone
}
enum  Orientation {
  rotate0 ,
  rotate90 ,
  rotate180 ,
  rotate270
}
enum  Lifetime {
  normal ,
  resumable
}
enum  Error {
  no_error ,
  resource_error ,
  format_error ,
  network_error ,
  access_denied_error ,
  service_missing_error
}
typedef double PlaybackRate
typedef double Volume
typedef uint32_t PlayerKey
typedef void * GLConsumerWrapperHybris
typedef QMap< QString, QString > HeadersType

Static Public Attributes

static const PlayerKey invalidKey = 0xffffffff

Detailed Description

Definition at line 50 of file player.h.

Member Typedef Documentation

◆ GLConsumerWrapperHybris

Definition at line 56 of file player.h.

◆ HeadersType

typedef QMap<QString,QString> lomiri::MediaHubService::Player::HeadersType

Definition at line 57 of file player.h.

◆ PlaybackRate

Definition at line 53 of file player.h.

◆ PlayerKey

Definition at line 55 of file player.h.

◆ Volume

Definition at line 54 of file player.h.

Member Enumeration Documentation

◆ AudioStreamRole

Audio stream role types used to categorize audio playback. multimedia is the default role type and will be automatically paused by media-hub when other types need to play.

Enumerator
alarm 
alert 
multimedia 
phone 

Definition at line 113 of file player.h.

◆ Error

Enumerator
no_error 
resource_error 
format_error 
network_error 
access_denied_error 
service_missing_error 

Definition at line 135 of file player.h.

◆ Lifetime

Enumerator
normal 
resumable 

Definition at line 129 of file player.h.

◆ LoopStatus

Enumerator
none 
track 
playlist 

Definition at line 101 of file player.h.

◆ Orientation

Enumerator
rotate0 
rotate90 
rotate180 
rotate270 

Definition at line 121 of file player.h.

◆ PlaybackStatus

Enumerator
null 
ready 
playing 
paused 
stopped 

Definition at line 92 of file player.h.

Member Data Documentation

◆ invalidKey

const PlayerKey lomiri::MediaHubService::Player::invalidKey = 0xffffffff
static

The documentation for this class was generated from the following file:
  • /build/media-hub-4.7~20260316060616.27~fbd9644+ubports26.04.1/src/service/player.h