Snap Live SDK  8.2.1
Classes | Public Types | Public Member Functions | List of all members
KantarMedia::IEmbedderListener Class Referenceabstract

Class used to catch different types of events (info and data) raised by the embedder library. More...

#include <EmbedderListener.h>

Classes

struct  Event
 Structure used by method OnEvent to raise events. More...
 

Public Types

enum  EventType { TYPE_INFO =0, TYPE_WARNING, TYPE_ERROR }
 Event types. More...
 

Public Member Functions

virtual void OnEvent (struct IEmbedderListener::Event const &event)=0
 Callback used to raise events about the embedding in progress (info, warning or error). More...
 
virtual void OnData (char const *const data, size_t const size, void const *const custom_data)=0
 Callback used to retrieved audio buffer embedded. More...
 

Detailed Description

Class used to catch different types of events (info and data) raised by the embedder library.

Member Enumeration Documentation

◆ EventType

Event types.

Enumeration used by method OnEvent Gives severity level of an event

See also
OnEvent
Enumerator
TYPE_INFO 

This event type is just for information.

TYPE_WARNING 

This event type points out that something wrong happened, but not critical.

TYPE_ERROR 

This event type indicates a critical error that should be taken into account.

Member Function Documentation

◆ OnData()

virtual void KantarMedia::IEmbedderListener::OnData ( char const *const  data,
size_t const  size,
void const *const  custom_data 
)
pure virtual

Callback used to retrieved audio buffer embedded.

Implement it to receive watermarked audio buffers.

Parameters
[in]data: Pointer on audio watermarked buffer
[in]size: Size of buffer in octets
[in]custom_data: Custom data

◆ OnEvent()

virtual void KantarMedia::IEmbedderListener::OnEvent ( struct IEmbedderListener::Event const &  event)
pure virtual

Callback used to raise events about the embedding in progress (info, warning or error).

See also
IEmbedderListener::Event
Parameters
[in]event: Event to raise
See also
Event

The documentation for this class was generated from the following file: