Interface ServiceCallbacks

    • Method Detail

      • free

        void free()
        Frees the callbacks object.
      • isInitialized

        boolean isInitialized()
        Returns whether the object is initialized
        Returns:
        whether the object is initialized
      • getStreamingToken

        void getStreamingToken​(@Nonnull
                               String streamName,
                               long callAfter,
                               long timeout,
                               @Nullable
                               byte[] authData,
                               int authType,
                               long streamHandle,
                               KinesisVideoProducerStream stream)
                        throws ProducerException
        Asynchronous call to get streaming token
        Parameters:
        streamName - - Stream name
        callAfter - - Call after this time - 100ns
        timeout - - Time out for the call - 100ns
        authData - - Authentication bits
        authType - - Authentication type - this is the AUTH_INFO_TYPE defined in /src/client/Include.h
        streamHandle - - stream handle returned by PIC
        stream - - stream object for the result event callback
        Throws:
        ProducerException
      • putStream

        void putStream​(@Nonnull
                       String streamName,
                       @Nonnull
                       String containerType,
                       long streamStartTime,
                       boolean absoluteFragmentTimes,
                       boolean ackRequired,
                       @Nonnull
                       String streamingEndpoint,
                       long callAfter,
                       long timeout,
                       @Nullable
                       byte[] authData,
                       int authType,
                       KinesisVideoProducerStream stream)
                throws ProducerException
        Asynchronous call to put stream API
        Parameters:
        streamName - - Stream name
        containerType - - Container type
        streamStartTime - - Stream start timestamp
        absoluteFragmentTimes - - Whether to use absolute fragment times
        ackRequired - - Whether an application level ACK is required
        streamingEndpoint - - The streaming endpoint to use
        callAfter - - Call after this time - 100ns
        timeout - - Time out for the call - 100ns
        authData - - Authentication bits
        authType - - Authentication type - this is the AUTH_INFO_TYPE defined in /src/client/Include.h
        stream - - stream object for the result event callback
        Throws:
        ProducerException
      • tagResource

        void tagResource​(@Nonnull
                         String resourceArn,
                         @Nullable
                         Tag[] tags,
                         long callAfter,
                         long timeout,
                         @Nullable
                         byte[] authData,
                         int authType,
                         long streamHandle,
                         KinesisVideoProducerStream stream)
                  throws ProducerException
        Asynchronous call to tag resource API
        Parameters:
        resourceArn - - Resource ARN
        tags - - Tags to apply
        callAfter - - Call after this time - 100ns
        timeout - - Time out for the call - 100ns
        authData - - Authentication bits
        authType - - Authentication type - this is the AUTH_INFO_TYPE defined in /src/client/Include.h
        streamHandle - - stream handle returned by PIC
        stream - - stream object for the result event callback
        Throws:
        ProducerException
      • createDevice

        void createDevice​(@Nonnull
                          String deviceName,
                          long callAfter,
                          long timeout,
                          @Nullable
                          byte[] authData,
                          int authType,
                          long customData)
                   throws ProducerException
        Asynchronous call to create device
        Parameters:
        deviceName - - Device name
        callAfter - - Call after this time - 100ns
        timeout - - Time out for the call - 100ns
        authData - - Authentication bits
        authType - - Authentication type - this is the AUTH_INFO_TYPE defined in /src/client/Include.h
        customData - - Custom data to use to call the event functions
        Throws:
        ProducerException
      • deviceCertToToken

        void deviceCertToToken​(@Nonnull
                               String deviceName,
                               long callAfter,
                               long timeout,
                               @Nullable
                               byte[] authData,
                               int authType,
                               long customData)
                        throws ProducerException
        Asynchronous call to device certificate to token API. Called when AuthType is AUTH_INFO_TYPE_CERT.
        Parameters:
        deviceName - - Device name
        callAfter - - Call after this time - 100ns
        timeout - - Time out for the call - 100ns
        authData - - Authentication bits
        authType - - Authentication type - this is the AUTH_INFO_TYPE defined in /src/client/Include.h
        customData - - Custom data to use to call the event functions
        Throws:
        ProducerException
      • addStream

        void addStream​(@Nonnull
                       KinesisVideoProducerStream kinesisVideoProducerStream)
        Add a producer stream to ongoing stream list
        Parameters:
        kinesisVideoProducerStream - producer stream used by PIC
      • removeStream

        void removeStream​(@Nonnull
                          KinesisVideoProducerStream kinesisVideoProducerStream)
        Removes a producer stream to ongoing stream list
        Parameters:
        kinesisVideoProducerStream - producer stream used by PIC