org.ocap.system.EASHandler.html Maven / Gradle / Ivy
EASHandler
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
org.ocap.system
Interface EASHandler
public interface EASHandler
An OCAP-J application can register an EASHandler to the
EASModuleRegistrar via the
EASModuleRegistrar.registerEASHandler(org.ocap.system.EASHandler)
method. The
notifyPrivateDescriptor(byte[])
of this class is called to notify a
location of an alternative audio for EAS representation. The OCAP-J
application can play an audio specified by a private descriptor.
- See Also:
EASModuleRegistrar
Method Summary | |
---|---|
boolean |
notifyPrivateDescriptor(byte[] descriptor)
This is a call back method to notify a private descriptor in the cable_emergency_alert message defined in [SCTE 18]. |
void |
stopAudio()
This is a call back method to notify that the alert duration has finished. |
Method Detail |
---|
notifyPrivateDescriptor
boolean notifyPrivateDescriptor(byte[] descriptor)
This is a call back method to notify a private descriptor in the cable_emergency_alert message defined in [SCTE 18]. If the alert_priority=15 but no audio specified by [SCTE 18] is available, the OCAP implementation shall call this method. The OCAP-J application can get a location of an alternative audio specified in the private descriptor and play it according to [SCTE 18]. If the OCAP-J application doesn't support the private descriptor, the EAShandler.notifyPrivateDescriptor() method shall return false and the OCAP implementation can play detailed channel or proprietary audio. This method shall return immediately. The audio shall be played in a unique thread not to prevent an alert text representation.
- Parameters:
descriptor
- an array of bytes of a private descriptor in the cable_emergency_alert message defined in [SCTE 18].- Returns:
- true if the OCAP-J application can sound an audio of the location of the specified descriptor.
stopAudio
void stopAudio()
- This is a call back method to notify that the alert duration has
finished. The OCAP-J application stops an audio specified by a
private descriptor. The OCAP-J application shall not unregister
the EASHandler until terminating an audio by this method.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |