Skip to main content
Skip table of contents

Insight React Native Documentation

NAGRA provides Insight SDKs for Android, iOS and Web, which allow you to integrate Insight into your platform-specific code. The React Native Insight module aims to provide the same functionalities, which can be integrated into a React Native application. This module is designed to work on Android, iOS, and Web platforms through a unified set of JS interfaces.

Overview

You can import the RNInsight module from @nagra/react-native-insight-insight and then use the APIs to implement the Insight functionalities:

API

Purpose

RNInsight.initialize

Initialises a reporting session into Insight agent.

RNInsight.play

Notifies the Insight agent that a user has requested playback of a new content.

RNInsight.playing

Notifies the Insight agent that playback has started.

RNInsight.buffering

Notifies the Insight agent that the player started buffering.

RNInsight.seekTo

Notifies the Insight agent that the user has requested playback at a different position.

RNInsight.pause

Notifies the Insight agent that the user paused playback.

RNInsight.stop

Notifies the Insight agent that playback was stopped.

RNInsight.setLiveContent

Notifies the Insight agent that the content is live content.

RNInsight.setVodContent

Notifies the Insight agent that the content is a VoD content.

RNInsight.setPosition

Notifies the Insight agent about playback progression.

RNInsight.setOffsetFromLive

Notifies the Insight agent of the playback offset from the live stream.

RNInsight.setFrameDrops

Notifies the Insight agent that some frames were dropped.

RNInsight.setAvailableBitrates

Notifies the Insight agent that the available bitrate of the currently playing content was updated.

RNInsight.setAudioLanguage

Notifies the Insight agent that the user changed the audio language.

RNInsight.setSubtitleLanguage

Notifies the Insight agent that the user changed the subtitle.

RNInsight.setNetworkConnection

Notifies the Insight agent that the user changed the network connection.

RNInsight.setContentQuality

Notifies the Insight agent that the user changed the content quality.

RNInsight.addErrorEvent

Notifies the Insight agent that an error occurred.

RNInsight.setUserInfo

Sets the user information.

RNInsight.seeking

Notifies the Insight agent that seeking was triggered.

RNInsight.terminate

Notifies the Insight agent to terminate the session.

If you are using a pre-integrated React Native Insight solution with NAGRA's React Native CONNECT Player, please refer to the API documentation.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.