gre.media.complete
Triggered when the named media has played to the end and stopped playing
Data: "1s33 channel_name 1s0 media_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
The simple video playback generates a complete event that is aligned with the media plugin’s events.
The difference here is in the interpretation of the channel_name and media_name parameters. In this case, the channel_name field is filled in with the fully qualified name of the control that is playing the video, and the media_name field is filled in with the fully qualified name of the filename that is being played.
This event is generated at the successful conclusion of the playback of the entire media file. If the file is looping then an event will be created on each iteration. If the file is changed mid-stream from playing one file to another file then the completion event will not be generated.