This application demonstrates how to send a video,audio,photo content URL to a default media player app on TV and how to control the playback and make a list of the content from mobile.
14
stars
6
forks
source link
[Objective-C] Crash app when call VideoPlayer smartViewPlayer call disconnect #7
i see sample in Swift call smartViewPlayer.disconnect(boolean) it's OK.
but i call in objective c:
if (smartViewPlayer != nil){
[smartViewPlayer disconnect:YES completionHandler:^(NSError *error) {
if (!error) {
smartViewPlayer = nil;
}
}];
}
App is crash.Log Error is : unexpectedly found nil while unwrapping an Optional values.
onConnect error is nil
onDisconnect error is nil
i found dont know where log "onConnect", "onDisconnect". I think it is in library?
i see sample in Swift call smartViewPlayer.disconnect(boolean) it's OK. but i call in objective c: if (smartViewPlayer != nil){ [smartViewPlayer disconnect:YES completionHandler:^(NSError *error) { if (!error) { smartViewPlayer = nil; } }]; } App is crash.Log Error is : unexpectedly found nil while unwrapping an Optional values. onConnect error is nil onDisconnect error is nil i found dont know where log "onConnect", "onDisconnect". I think it is in library?