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.initialize initialises a reporting session into Insight agent.
  • RNInsight.play notifies the Insight agent that 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 request 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 got 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 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 API documentation here.