npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-cincopa-video-player

v0.0.8

Published

Cincopa Player for React Native

Downloads

20

Readme

Cincopa Player for React Native

npm version npm downloads License


⭐️ Overview

The react-native-cincopa-video-player package provides a native React Native component designed to seamlessly integrate the Cincopa media player (video, audio, galleries) into your mobile applications for both iOS and Android.

✨ Features

  • Native-Powered Playback: Leverages native video players (iOS/Android) for optimal performance and smooth, reliable playback of Cincopa media, including adaptive streaming sources.
  • Cincopa Analytics Integration: Automatically sends key playback events (video.play, video.pause, and periodic video.timeupdate) to Cincopa endpoints for comprehensive performance tracking and viewer retention analysis.
  • Configurable Metadata & Control: Easily pass structured user data (email, acc_id, name) and essential video configuration properties (rid, autoPlay) for both personalization and player behavior management.
  • Seamless Cross-Platform UI: Designed as a standard React Native component, allowing seamless integration into any layout and full control over dimensioning (height, width) via standard StyleSheet props.
  • Full Lifecycle Event Control: Exposes event handlers (onPlay, onPause, onEnded, onError) to allow your React Native application to react instantly to changes in the player's state.

🚀 Installation

Install the package using either npm or yarn:

# Using npm
npm install react-native-cincopa-video-player

# Using yarn
yarn add react-native-cincopa-video-player

Native Setup (iOS)

For iOS, you need to install the native dependencies via CocoaPods. Navigate to your project's ios folder and run:

cd ios
pod install

💻 Usage

Import the AppCincopaPlayer component and use it, passing the mandatory rid (Media RID) prop and other parameters:

import React from 'react';
import { View, StyleSheet, SafeAreaView } from 'react-native';
import { AppCincopaPlayer } from 'react-native-cincopa-video-player';

export default function App() {
  // User data can be used for analytics or content personalization
  const userData = {
    name: 'Test User',
    email: '[email protected]',
    acc_id: '1002',
  };

  return (
    <SafeAreaView style={styles.safeArea}>
      <View style={styles.container}>
        <AppCincopaPlayer
          rid="YOUR_MEDIA_RID"
          userData={userData}
          autoPlay={true}
          onPlay={()}
          onPause={()}
          onTimeUpdate={()}
        />
      </View>
    </SafeAreaView>
  );
}

const styles = StyleSheet.create({
  safeArea: {
    flex: 1,
    backgroundColor: '#fff',
  },
  container: {
    flex: 1,
    padding: 20,
    justifyContent: 'center',
    alignItems: 'center',
  },
  player: {
    width: '100%',
    height: 250,
  },
});

🛠 API (AppCincopaPlayer Props)

| Prop | Type | Required | Description | | :--- | :--- | :--- | :--- | | rid | string | Yes | The unique Media RID for your Cincopa content. | | userData | object | No | An object containing user details (name, email, acc_id) for analytics and personalization. | | autoPlay | boolean | No | If true, playback will start automatically. Default: false. | | onPlay | () => void | No | Called when playback starts or resumes. | | onPause | () => void | No | Called when playback is paused. | | onTimeUpdate | (time: number) => void | No | Called during playback, returns the current time (in seconds). |

💡 Example

See the full example/ directory for a working demo app that switches streams and shows analytics events in action.

🤝 Contributing

Feel free to open issues or PRs on GitHub. Please follow the React Native package conventions and include tests for new features.

💬 Support

For assistance, contact [email protected]

📄 License

MIT © Cincopa