MPPlayableContentDataSource does not call contentItemForIdentifier: completeHandler:

I work with CarPlay (simulator 10.3.1) and implement all the methods in MPPlayableContentDataSource, but the method below is not called.

- (void)contentItemForIdentifier:(NSString *)identifier completionHandler:(void(^)(MPContentItem *__nullable, NSError * __nullable))completionHandler 

Does anyone know any reasons?

+7
ios carplay
source share
1 answer

Have you installed the delegate and data source from MPPlayableContentDataSource. Because without setting these two properties, all methods associated with the dataSource and the delegate will not execute.

0
source share

All Articles