@granite-js/video 1.0.14 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @granite-js/video
2
2
 
3
+ ## 1.0.16
4
+
5
+ ## 1.0.15
6
+
7
+ ### Patch Changes
8
+
9
+ - dfa2f63: Fix iOS video source headers not being passed to the native player
10
+
3
11
  ## 1.0.14
4
12
 
5
13
  ### Patch Changes
@@ -243,6 +243,17 @@ using namespace facebook::react;
243
243
  videoSource.type = [NSString stringWithUTF8String:source.type.c_str()];
244
244
  }
245
245
 
246
+ // source.headers (vector<{name, value}>) → NSDictionary 변환
247
+ if (!source.headers.empty()) {
248
+ NSMutableDictionary *headers = [NSMutableDictionary dictionary];
249
+ for (const auto &header : source.headers) {
250
+ NSString *name = [NSString stringWithUTF8String:header.name.c_str()];
251
+ NSString *value = [NSString stringWithUTF8String:header.value.c_str()];
252
+ headers[name] = value;
253
+ }
254
+ videoSource.headers = headers;
255
+ }
256
+
246
257
  videoSource.startTime = source.startTime;
247
258
  videoSource.endTime = source.endTime;
248
259
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@granite-js/video",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "Pluggable video component for React Native with provider selection",
5
5
  "type": "module",
6
6
  "main": "./dist/module/index.js",