3qnexx / nexxPLAY-iOS

nexxPLAY SDK for iOS
3 stars 2 forks source link

Crash when attempting to extract media data on events NexxPlayPlayPosNotification or NexxPlayErrorNotification #5

Closed fdobre closed 5 years ago

fdobre commented 6 years ago

Version 5.9.75:

Our app needs to send analytics for player events:

Extracting media data for all notifications used to work in 5.9.69

Steps to reproduce:

When notification comes try to extract media data as below:

    NSString *notificationName = notification.name;
    NSDictionary *videoMetaData = [_playerView getMediaDataWithGetEnhanced:true]; // , <---Player crashes at this line for initial event: `NexxPlayPlayPosNotification` or for `NexxPlayErrorNotification`
    NSString *title = [videoMetaData objectForKey:@"title"];
    NSString *nexx_id = [videoMetaData objectForKey:@"mediaID"];