Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/real-papayas-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@theoplayer/react-native-analytics-bitmovin': patch
---

Fixed an issue on iOS where the updateCustomData method was not correctly bridged.
6 changes: 3 additions & 3 deletions bitmovin/ios/THEOplayerBitmovinRCTBitmovinAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ class THEOplayerBitmovinRCTBitmovinAPI: NSObject, RCTBridgeModule {
}
}

@objc(updateCustomMetadata:customData:)
func updateCustomMetadata(_ node: NSNumber, customData: NSDictionary) {
log("updateCustomMetadata triggered.")
@objc(updateCustomData:customData:)
func updateCustomData(_ node: NSNumber, customData: NSDictionary) {
log("updateCustomData triggered.")
DispatchQueue.main.async {
if let customMetadata = customData as? [String:Any] {
self.connectors[node]?.updateCustomMetadata(customMetadata)
Expand Down
2 changes: 1 addition & 1 deletion bitmovin/ios/THEOplayerBitmovinRCTBridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ @interface RCT_EXTERN_REMAP_MODULE(BitmovinModule, THEOplayerBitmovinRCTBitmovin

RCT_EXTERN_METHOD(updateSourceMetadata:(nonnull NSNumber *)node sourceMetadata:(nonnull NSDictionary *)sourceMetadata)

RCT_EXTERN_METHOD(updateCustomMetadata:(nonnull NSNumber *)node customData:(nonnull NSDictionary *)customData)
RCT_EXTERN_METHOD(updateCustomData:(nonnull NSNumber *)node customData:(nonnull NSDictionary *)customData)

RCT_EXTERN_METHOD(programChange:(nonnull NSNumber *)node sourceMetadata:(nonnull NSDictionary *)sourceMetadata)

Expand Down
Loading