npaw-plugin-adapters
v7.3.33
Published
NPAW's Plugin Adapters
Maintainers
Readme
NPAW Plugin
NPAW Plugin is the ultimate solution to ensure you can understand, control and optimize your users' video experience, and your video delivery flow.
The integration of the NPAW Plugin into your applications will give you access, via the NPAW Suite, to the following main features:
Analytics
- Collect metrics and metadata regarding the behaviour of any video streaming app, which can be divided into these categories:
- Video Analytics
- Broad analytics capabilities of the video platform’s performance and the audience’s behavior in the video playback, always in real-time
- Ads Analytics
- Analyze ad performance in terms of audience, business, quality, and engagement
- App Analytics
- Track any event in any app, enabling a comprehensive understanding of user behavior beyond video playback
- Video Analytics
CDN Balancer
- Manage your multi-CDN endpoints automatically, to achieve your optimal tradeoff between user experience and delivery costs
- Your application will proactively selecting the best CDN endpoint for each video segment
- Proactive selection performed live, based on what your user is actually experiencing
- Easily setup your business goals via NPAW Suite. This proactive selection is performed live, based on your desired business goals (defined by you via NPAW Suite), making sure you achieve your optimal tradeoff between user experience and delivery costs
- (Coming soon) P2P video delivery to alleviate peak traffic and reduce your delivery costs
Tech Stack
The NPAW Plugin is developed using TypeScript.
Folder Structure
/
└── dist/ Built & Minified files ready to include and runDocumentation, Installation & Usage
Please refer to the Documentation Portal.
Expo Video native-module injection (adapter 7.0.2+)
The Expo Video adapter does not import react-native or expo-constants
directly. This keeps the grouped npaw-plugin-adapters export safe for web
bundlers that do not install React Native dependencies.
Expo applications must inject the native modules they already import:
import { AppState, Platform } from 'react-native';
import Constants from 'expo-constants';
import { ExpoVideoAdapter } from 'npaw-plugin-adapters';
const videoKey = 'expo-video';
npawPlugin.registerAdapterFromClass(
player,
ExpoVideoAdapter,
{},
videoKey,
() => {
const adapter = npawPlugin.getAdapter(videoKey);
adapter?.setPlatform(Platform);
adapter?.setConstants(Constants);
adapter?.setAppState(AppState);
}
);Without injection, playback analytics still work, but Expo device enrichment and AppState-based background detection are skipped. Integrations upgrading from Expo Video adapter 7.0.1 must add these calls to preserve that behaviour.
I need help!
If you find a bug, have a suggestion or need assistance send an E-mail to [email protected]
