Skip to content
This repository was archived by the owner on Oct 7, 2021. It is now read-only.

Commit 9d21299

Browse files
committed
release v0.3.4
1 parent eb5fdd4 commit 9d21299

File tree

8 files changed

+38
-8
lines changed

8 files changed

+38
-8
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## 0.3.4 - 2019-07-05
5+
- Implements side data information parsing
6+
47
## 0.3.3 - 2019-07-04
58
- Adds support for Android devices with API Level 16+
69
- Removes conflicting attributes from AndroidManifest.xml

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# React Native FFmpeg ![GitHub release](https://img.shields.io/badge/release-v0.3.3-blue.svg) [![npm](https://img.shields.io/npm/v/react-native-ffmpeg.svg)](react-native-ffmpeg)
1+
# React Native FFmpeg ![GitHub release](https://img.shields.io/badge/release-v0.3.4-blue.svg) [![npm](https://img.shields.io/npm/v/react-native-ffmpeg.svg)](react-native-ffmpeg)
22

33
FFmpeg for React Native
44

@@ -191,6 +191,17 @@ In order to install the `LTS` variant, install the `https-lts` package using ins
191191
console.log('Stream real frame rate: ' + info.streams[i].realFrameRate);
192192
console.log('Stream time base: ' + info.streams[i].timeBase);
193193
console.log('Stream codec time base: ' + info.streams[i].codecTimeBase);
194+
195+
if (info.streams[i].metadata) {
196+
console.log('Stream metadata encoder: ' + info.streams[i].metadata.encoder);
197+
console.log('Stream metadata rotate: ' + info.streams[i].metadata.rotate);
198+
console.log('Stream metadata creation time: ' + info.streams[i].metadata.creation_time);
199+
console.log('Stream metadata handler name: ' + info.streams[i].metadata.handler_name);
200+
}
201+
202+
if (info.streams[i].sidedata) {
203+
console.log('Stream side data displaymatrix: ' + info.streams[i].sidedata.displaymatrix);
204+
}
194205
}
195206
}
196207
});
@@ -272,7 +283,7 @@ In order to install the `LTS` variant, install the `https-lts` package using ins
272283
273284
#### 4.2 Source Code
274285
275-
- `master` includes the latest released version `v0.3.3`
286+
- `master` includes the latest released version `v0.3.4`
276287
- `development` branch includes new features and unreleased fixes
277288
278289
### 5. LTS Releases

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ android {
2929
defaultConfig {
3030
minSdkVersion safeExtGet('reactNativeFFmpegPackage', 'https').contains("-lts") ? 16 : 24
3131
targetSdkVersion 28
32-
versionCode 33
33-
versionName "0.3.3"
32+
versionCode 34
33+
versionName "0.3.4"
3434
project.archivesBaseName = "react-native-ffmpeg"
3535
}
3636
lintOptions {

android/src/main/java/com/arthenica/reactnative/RNFFmpegModule.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,17 @@ public static WritableMap toStreamInformationMap(final StreamInformation streamI
431431

432432
map.putMap("metadata", metadataMap);
433433
}
434+
435+
final Set<Map.Entry<String, String>> sidedata = streamInformation.getSidedataEntries();
436+
if ((sidedata != null) && (sidedata.size() > 0)) {
437+
final WritableMap sidedataMap = Arguments.createMap();
438+
439+
for (Map.Entry<String, String> entry : sidedata) {
440+
sidedataMap.putString(entry.getKey(), entry.getValue());
441+
}
442+
443+
map.putMap("sidedata", sidedataMap);
444+
}
434445
}
435446

436447
return map;

ios/RNFFmpegModule.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,11 @@ + (NSDictionary *)toStreamInformationDictionary:(StreamInformation*)streamInform
352352
if (metadataDictionary != nil && ([metadataDictionary count] > 0)) {
353353
dictionary[@"metadata"] = metadataDictionary;
354354
}
355+
356+
NSDictionary *sidedataDictionary = [streamInformation getSidedataEntries];
357+
if (sidedataDictionary != nil && ([sidedataDictionary count] > 0)) {
358+
dictionary[@"sidedata"] = sidedataDictionary;
359+
}
355360
}
356361

357362
return dictionary;

ios/react-native-ffmpeg.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'react-native-ffmpeg'
3-
s.version = '0.3.3'
3+
s.version = '0.3.4'
44
s.summary = 'FFmpeg for React Native'
55
s.description = 'React Native FFmpeg based on mobile-ffmpeg'
66
s.homepage = 'https://github.com/tanersener/react-native-ffmpeg'
@@ -13,7 +13,7 @@ Pod::Spec.new do |s|
1313
s.ios.deployment_target = '9.3'
1414
s.static_framework = true
1515

16-
s.source = { :git => 'https://github.com/tanersener/react-native-ffmpeg.git', :tag => 'v0.3.3'}
16+
s.source = { :git => 'https://github.com/tanersener/react-native-ffmpeg.git', :tag => 'v0.3.4'}
1717
s.source_files = 'ios/RNFFmpegModule.m',
1818
'ios/RNFFmpegModule.h'
1919

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-ffmpeg",
3-
"version": "0.3.3",
3+
"version": "0.3.4",
44
"description": "FFmpeg for React Native",
55
"main": "index.js",
66
"typings": "index.d.ts",

0 commit comments

Comments
 (0)