Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@mux/mux-data-react-native-video
Advanced tools
Mux Data gives you insight into video engagement and Quality of Experience using client-side SDKs for your player.
This SDK monitors react-native-video, see all supported players here.
View the DemoApp/ directory to see a demo application that implements this library.
Visit our documentation to get started.
Install from github in your package.json (when this is officially released then it will be availble on npm).
yarn add @mux/mux-data-react-native-video
OR
npm install @mux/mux-data-react-native-video --save
This package works by wrapping your Video
component in a higher order component.
For more information about what keys can be passed into the data
key in the muxOptions
prop see
the javascript docs.
import app from './package.json' // this is your application's package.json
import Video from 'react-native-video'; // import Video from react-native-video like you normally would
import muxReactNativeVideo from '@mux/mux-data-react-native-video';
// wrap the `Video` component with Mux functionality
const MuxVideo = muxReactNativeVideo(Video);
// Pass the same props to `MuxVideo` that you would pass to the
// `Video` element. All of these props will be passed through to your underlying react-native-video component
// Include a new prop for `muxOptions`
<MuxVideo
style={styles.video}
source={{
uri:
'https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8',
}}
controls
muted
muxOptions={{
application_name: app.name, // (required) the name of your application
application_version: app.version, // the version of your application (optional, but encouraged)
data: {
env_key: 'YOUR_ENVIRONMENT_KEY', // (required)
player_software_version: '5.0.2' // (optional, but encouraged) the version of react-native-video that you are using
player_name: 'React Native Player', // See metadata docs for available metadata fields https://docs.mux.com/docs/web-integration-guide#section-5-add-metadata
video_id: 'My Video Id',
video_title: 'My awesome video',
},
}}
/>
paused
property does not behave as expected on Android when using the default player controls. (the onProgress
event, which is something the Mux SDK needs to hook into does not fire): https://github.com/react-native-community/react-native-video/issues/1979. If you are using the paused
property it will work on iOS with the default controls but if you need to use it on Android you will have to implement your own controls and set/unset the paused
property yourself.player_is_fullscreen
property is not reported as expected on iOS. The react-native-video callbacks for fullscreen status onFullscreenPlayerDidPresent
and onFullscreenPlayerDidDismiss
do not get called when entering fullscreen using the native controls: https://github.com/react-native-video/react-native-video/issues/552video
element.progressUpdateInterval
this library will: (1) ignore your setting and revert back to 250ms (2) log a warning. This library depends on a progressUpdateInterval of 250ms in order to correctly calculate rebufferingonSeek
callback behavior between iOS and Android: https://github.com/react-native-community/react-native-video/issues/1977FAQs
Mux Data SDK for monitoring react-native-video
The npm package @mux/mux-data-react-native-video receives a total of 0 weekly downloads. As such, @mux/mux-data-react-native-video popularity was classified as not popular.
We found that @mux/mux-data-react-native-video demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.