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:

APIPurpose
RNInsight.initializeInitialises a reporting session into Insight agent.
RNInsight.playNotifies the Insight agent that a user has requested playback of a new content.
RNInsight.playingNotifies the Insight agent that playback has started.
RNInsight.bufferingNotifies the Insight agent that the player started buffering.
RNInsight.seekToNotifies the Insight agent that the user has requested playback at a different position.
RNInsight.pauseNotifies the Insight agent that the user paused playback.
RNInsight.stopNotifies the Insight agent that playback was stopped.
RNInsight.setLiveContentNotifies the Insight agent that the content is live content.
RNInsight.setVodContentNotifies the Insight agent that the content is a VoD content.
RNInsight.setPositionNotifies the Insight agent about playback progression.
RNInsight.setOffsetFromLiveNotifies the Insight agent of the playback offset from the live stream.
RNInsight.setFrameDropsNotifies the Insight agent that some frames were dropped.
RNInsight.setAvailableBitratesNotifies the Insight agent that the available bitrate of the currently playing content was updated.
RNInsight.setAudioLanguageNotifies the Insight agent that the user changed the audio language.
RNInsight.setSubtitleLanguageNotifies the Insight agent that the user changed the subtitle.
RNInsight.setNetworkConnectionNotifies the Insight agent that the user changed the network connection.
RNInsight.setContentQualityNotifies the Insight agent that the user changed the content quality.
RNInsight.addErrorEventNotifies the Insight agent that an error occurred.
RNInsight.setUserInfoSets the user information.
RNInsight.seekingNotifies the Insight agent that seeking was triggered.
RNInsight.terminateNotifies 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.