@granite-js/video 1.0.14 → 1.0.15
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 +6 -0
- package/ios/GraniteVideoView.mm +11 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/ios/GraniteVideoView.mm
CHANGED
|
@@ -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
|
|