Skip to content
This repository has been archived by the owner on Dec 2, 2019. It is now read-only.

Feature Request: Support setting the timestamp for the created thumbnail #18

Open
n1ru4l opened this issue Apr 12, 2018 · 0 comments
Open

Comments

@n1ru4l
Copy link
Contributor

n1ru4l commented Apr 12, 2018

Currently the thumbnail is generated from the start of the video. However it would be awesome if there was an option to specify the timestamp on which the thumbnail should be created via an option.

I could implement this for iOS.

The API could be designed like this:

import RNThumbnail from 'react-native-thumbnail';
const timestampInMilliseconds = 3000
RNThumbnail.get(filepath).then((result, { timestamp: timestampInMilliseconds }) => {
  console.log(result.path); // thumbnail path
})
@n1ru4l n1ru4l changed the title Feature Request: Support setting the time for the created thumbnail Feature Request: Support setting the timestamp for the created thumbnail Apr 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant