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.
The React Native Insight Module can be dowloaded from here.
For integration instructions, see the RN Insight integration guide.
The API documentation can be found here.
Overview
You can import the RNInsight module from @nagra/react-native-insight-insight and then use the APIs to implement the Insight functionalities:
RNInsight.initializeinitialises a reporting session into Insight agent.RNInsight.playnotifies the Insight agent that 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 request 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 got 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 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 API documentation here.