File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ - (void)dealloc
141141{
142142 [[NSNotificationCenter defaultCenter ] removeObserver: self ];
143143 [self removePlayerItemObservers ];
144+ [self removePlayerLayer ];
144145 [_player removeObserver: self forKeyPath: playbackRate context: nil ];
145146}
146147
@@ -327,23 +328,23 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(N
327328 if ([keyPath isEqualToString: timedMetadata])
328329 {
329330
330-
331+
331332 NSArray <AVMetadataItem *> *items = [change objectForKey: @" new" ];
332333 if (items && ![items isEqual: [NSNull null ]] && items.count > 0 ) {
333-
334+
334335 NSMutableArray *array = [NSMutableArray new ];
335336 for (AVMetadataItem *item in items) {
336-
337+
337338 NSString *value = item.value ;
338339 NSString *identifier = item.identifier ;
339-
340+
340341 if (![value isEqual: [NSNull null ]]) {
341342 NSDictionary *dictionary = [[NSDictionary alloc ] initWithObjects: @[value, identifier] forKeys: @[@" value" , @" identifier" ]];
342-
343+
343344 [array addObject: dictionary];
344345 }
345346 }
346-
347+
347348 self.onTimedMetadata (@{
348349 @" target" : self.reactTag ,
349350 @" metadata" : array
You can’t perform that action at this time.
0 commit comments