Media Events

A value that is set to 1 if an event should be emitted or 0 otherwise

gre.media.exit

The media back-end applcation has exited.

Data:

No data payload

gre.media.timeupdate

Emitted when the time has been updated.

Data: "4u1 time_elapsed 4u1 total_time 1s0 channel_name"

unsigned time_elapsed
unsigned total_time
char channel_name[MAX_CHANNEL_NAME_LEN + 1]
                        

Where:

time_elapsed

The time that has elapsed during play back

total_time

The total time for play back

channel_name

The name of the channel that this time event occurred on

gre.media.statechange

Emitted when the player has changed state, between a paused and playing state.

Data: "1s33 channel_name 1s0 state"

char channel_name[MAX_CHANNEL_NAME_LEN + 1]
char state[1]                            
                        

Where:

channel_name

The name of the channel that is changing state

state

The new state: “paused” | “playing”

gre.media.complete

Triggered when the named media has played to the end and stopped playing

Data: "1s33 channel 1s0 name"

 char channel_name[MAX_CHANNEL_NAME_LEN + 1]
 char media_name[1]                           
                        

Where:

channel_name

The name of the channel that has completed playback

media_name

The name of the media stream that completed playback

gre.media.error

Triggered when there was an error playing the media source.

Data: "1s33 channel_name 1s0 error_msg"

char channel_name[MAX_CHANNEL_NAME_LEN + 1]
char error_msg[1]                            
                        

Where:

channel_name

The name of the channel that received an error

error_msg[1]

The error message