Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iammert/videometadataprovider
Video metadata provider library (collect metadata from ExoPlayer, FFMpeg, Native Android)
https://github.com/iammert/videometadataprovider
android exoplayer ffmpeg kotlin metadata metadataprovider videoplayer
Last synced: 3 months ago
JSON representation
Video metadata provider library (collect metadata from ExoPlayer, FFMpeg, Native Android)
- Host: GitHub
- URL: https://github.com/iammert/videometadataprovider
- Owner: iammert
- Created: 2019-02-27T11:49:49.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-27T12:20:02.000Z (almost 6 years ago)
- Last Synced: 2024-03-03T00:32:10.395Z (11 months ago)
- Topics: android, exoplayer, ffmpeg, kotlin, metadata, metadataprovider, videoplayer
- Language: Kotlin
- Size: 129 KB
- Stars: 20
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VideoMetadataProvider
Video metadata provider library (collect metadata from ExoPlayer, FFMpeg, Native Android)Supported providers;
* ExoPlayer
* FFMpeg Metadata
* Android Native MetadataThe library tries to fetch metadata information from providers. If first provider fails to fetch data,
then It tries the next one. onFail callback is called when all providers can not fetch required metadata.VideoData has following attributes;
* Total video duration
* Video original width and height value
* Video rotation degree## Usage
```kotlin
val provider = VideoDataProviderDelegator(this)
provider.fetchVideoData(
videoPath = "VIDEO_PATH",
onSuccess = { videoData -> },
onFail = { throwable -> })
```## Download
```gradle
maven { url 'https://jitpack.io' }
``````gradle
dependencies {
implementation 'com.github.iammert:VideoMetadataProvider:0.1'
}
```License
--------Copyright 2019 Mert Şimşek.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.