Socket
Socket
Sign inDemoInstall

@apollosproject/ui-media-player

Package Overview
Dependencies
4
Maintainers
4
Versions
468
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @apollosproject/ui-media-player

An opinionated media player for react-native apps from The Apollos Project


Version published
Weekly downloads
1.4K
decreased by-31.53%
Maintainers
4
Install size
4.25 MB
Created
Weekly downloads
 

Changelog

Source

4.2.0 (2022-07-15)

Features

Bug Fixes

Readme

Source

react-native-apollos-player

An opinionated media player for react-native apps from The Apollos Project

Installation

npm install react-native-apollos-player

Usage

todo

Architecture

  • We still render player at root-level
  • Need to figure out how to display above r-n modals / everything

On iOS we can't render on top of modals, but we can move the video around On android we can still render on top of modals, but we cna't move the video around

Exposed Components:

<ApollosPlayerProvider />

<VideoPreviewView />
<VideoPreviewMiniIOS />

const { playNow, setIsPlaying, seek } = usePlayer();
const { setOverlayInsets, setPresentationMode, setOverlayIsVisible } = usePlayerPresentation();
  <VideoPreviewView
    source={}
  />

iOS: preview plays the specified media, as long as something else isn't already playing. on interaction, opens the media in full-screen Presentation Android: preview plays the specified media. On interaction, opens the media in full-screen Presentation


  <VideoPreviewMiniIOS
    source={}
    isVisible
  />

iOS: preview plays the specified media, unless something else is playing - in which case, it will play show media instead. Android: does not render. this gets picked up by the root-level player


Internal (these are likely over-ride-able props on Provider)

  • VideoTextureView
  • MiniPresentation
  • FullScreenPresentation

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Keywords

FAQs

Last updated on 15 Jul 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc