66 TRACE(TMHAPI, (
"( %d, %d )", params->eType, params->eData))
67 switch (params->eType)
69 case DVB_EVENT_AUDIO_STARTED:
70 MHEG5notifyAudioStarted(FALSE);
73 case DVB_EVENT_AUDIO_STOPPED:
74 MHEG5notifyAudioStopped(FALSE);
77 case DVB_EVENT_SAMPLE_STARTED:
78 MHEG5notifyAudioStarted(TRUE);
81 case DVB_EVENT_SAMPLE_STOPPED:
82 MHEG5notifyAudioStopped(TRUE);
85 case DVB_EVENT_VIDEO_STARTED:
86 MHEG5notifyVideoStarted();
89 case DVB_EVENT_VIDEO_STOPPED:
90 MHEG5notifyVideoStopped();
93 case DVB_EVENT_DEMUX_PATH_CHANGE:
97 case DVB_EVENT_VIDEO_PREF_CHANGED:
101 case DVB_EVENT_NETWORK_STATUS_CHANGED:
102 #if defined(INCLUDE_IC) 103 MHEG5changedICStatus();
107 #if defined(INCLUDE_ICS) 108 case DVB_EVENT_GUIDANCE_RESPONSE:
109 MHEG5notifyGuidanceResponse(params->eData ? MHEG5TRUE : MHEG5FALSE);
112 case DVB_EVENT_STREAMING_READY:
116 case DVB_EVENT_SUBTITLE_PREF_CHANGED:
117 TRACE(TERROR, (
"SUBTITLE_PREF_CHANGED"))
122 case DVB_EVENT_AUDIODESC_PREF_CHANGED:
123 #if defined(INCLUDE_ICS) 124 TRACE(TERROR, (
"AUDIODESC_PREF_CHANGED"))
127 MHEG5RefreshDefaultAudio();
130 case DVB_EVENT_AUDIO_LANG_PREF_CHANGED:
131 TRACE(TERROR, (
"AUDIO_LANG_PREF_CHANGED"))
133 MHEG5RefreshDefaultAudio();
136 case DVB_EVENT_SUBTITLE_LANG_PREF_CHANGED:
137 TRACE(TERROR, ("SUBTITLE_LANG_PREF_CHANGED"))
144 case DVB_EVENT_PVR_RECORD_LIST_CHANGED:
145 #if defined(INCLUDE_MHEG_PVR) || defined(INCLUDE_PVR_AU) 150 case DVB_EVENT_PVR_BOOK_RESULT:
151 #if defined(INCLUDE_MHEG_PVR) || defined(INCLUDE_PVR_AU) 156 case DVB_EVENT_APPLICATION_LAUNCH_STATUS:
157 #if defined(INCLUDE_CONNECTED_TV) 158 MHEG5notifyApplicationLaunchStatus((MHEG5Bool)params->eData);
162 #if defined(COMMON_INTERFACE) 163 case DVB_EVENT_CICAM_REMOVE:
164 MHEG5notifyCiCamRemove((U32BIT)params->eData);
169 TRACE(TERROR, (
"( %d, %d ) Unknown/Unsupported Event", params->eType, params->eData))
174 static
void NotifyEngineEvent( E_ENGINE_EVENT *pEngineEvent )
200 event_msg.data_type = DT_VALUE;
201 event_msg.data.dvpEvent.eType = eType;
202 event_msg.data.dvpEvent.eData = eData;
203 return VQ_PutMsg(&event_msg, PRTY_NORMAL);
220 #if defined(INCLUDE_ICS) 228 void MHEG5_NotifySubtitlePrefChanged(
void)
240 void MHEG5_NotifyAudioDescPrefChanged(
void)
257 void MHEG5_NotifyGuidanceResponse(BOOLEAN result)
380 msg.data_type = DT_VALUE;
381 msg.data.engineEvent = engineEvent;
382 if (
VQ_PutMsg(&msg, PRTY_HIGH) != MHERR_OK)
Implement MHEG5 engine control functions (i.e. start/stop etc)
void MHEG5_NotifyVideoStopped(void)
Notifies MHEG5 that the decoder has stopped playing a video stream In other words, no video is playing after this call. See MHEG5_SetVideoStream() and MHEG5_SetVideoControl(). This is a non-blocking function. If the decoder hardware does not support this indication, the DVB stack must simulate it.
E_MhegErr VQ_PutMsg(S_MhegMessage *pMsg, E_PRIORITY priority)
Post event or section message on queue. Copies data into queue.
void MHEG5sendAppEngineEvent(E_ENGINE_EVENT engine_event)
Store an Engine event in the asynchronous event queue.
void MHEG5_NotifyICSReady(void)
This function tells the MHEG-5 engine that the external application is ready to handle IP stream data...
void MHEG5_NotifyVideoStarted(void)
Notifies the MHEG5 component that the previously provided video stream has started playing...
E_MhegErr MHEG5_NotifyDvbEvent(E_DvbEvent eType, U32BIT eData)
Notifies MHEG5 of event from receiver platform This is a non-blocking function.
void MHEG5_SendEngineEvent(E_ENGINE_EVENT engineEvent)
Send MHEG app an engine event from an external task.
void MHEG5_NotifyVideoPrefChanged(void)
Notifies the MHEG5 component when the video preferences change. This is a non-blocking function...
void(* F_MSG_PROCESS)(void *data)
Function to Process voyager message.
Implementation of the resident programs which are defined by the current profile. ...
void MHEG5_NotifySubtitleLangPrefChanged(void)
Notifies the MHEG5 component when the subtitle language preferences change. This is a non-blocking fu...
void MHEG5streamerNotifyStreamingReady(void)
Handle notification that the external application is ready to handle IP stream data.
Event handling. Implementation of a combined queue for events and actions. This is the eventsystem wh...
void MHEG5_NotifyICStatusChanged(void)
Notifies the MHEG5 component when the IC connection status changes. This is a non-blocking function...
void MHEG5_NotifyAudioStopped(BOOLEAN isClip)
Notifies the MHEG5 component that the previously provided audio clip has completed playing all requir...
File interface functions to DSMCC component.
void MHEG5StreamerRefresh(void)
Refresh any running IC streams - called when user preferences have changed.
void MHEG5NotifyBookingResult(E_MhegErr result)
This should be called, and only called, when DVB_MhegPvrMakeBooking() has previously returned with MH...
void MHEG5_NotifyAudioLangPrefChanged(void)
Notifies the MHEG5 component when the audio language preferences change. This is a non-blocking funct...
Implement generic MHEG5-display functions - independent from the OSD These are generic functions used...
Key Press related functionality.
void MHEG5_NotifyAudioStarted(BOOLEAN isClip)
Notifies the MHEG5 component that the previously provided audio stream or clip has started playing...
Header file - Function prototypes for operating system.