react-native-video-albums

1.1.2 • Public • Published

React Native Video Albums

A library for getting all the titles of video albums and videos. This library was taken https://github.com/aspidvip/react-native-album-list and modified for further work.

Installation

Install the package from npm:

yarn add --save react-native-video-albums or npm i --save react-native-video-albums

and

react-native link

Example

import AlbumsList from 'react-native-video-albums'

Get a list of video albums

AlbumsList.getAlbumList().then(list => console.log(list));

Get a list of videos

AlbumsList.getVideoList({
  title: true,
  name: false,
  size: true,
  description: true,
  location: false,
  date: true,
  resolution: true,
  duration: true,
  type: false,
  album: true,
  dimensions: false,
  timestamp: true
}).then(list => console.log(list));

Get a list of videos by album

AlbumsList.getVideosByAlbum({
  title: true,
  name: false,
  size: true,
  description: true,
  location: false,
  date: true,
  resolution: true,
  duration: true,
  type: false,
  album: true,
  dimensions: false,
  timestamp: true
}, albumName: String).then(list => console.log(list));

videoListOptions options

Attribute Values
title 'true'/'false'
name 'true'/'false'
size 'true'/'false'
description 'true'/'false'
location 'true'/'false'
date 'true'/'false'
resolution 'true'/'false'
type 'true'/'false'
album 'true'/'false'
dimensions 'true'/'false'
duration 'true'/'false'
timestamp 'true'/'false'

Package Sidebar

Install

npm i react-native-video-albums

Weekly Downloads

1

Version

1.1.2

License

MIT

Unpacked Size

162 kB

Total Files

45

Last publish

Collaborators

  • thecodrr