react-native-video-albums
v1.1.2
Published
A library for getting all the titles of video albums and videos.
Downloads
48
Maintainers
Readme
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'
|