{"action":"created","issue":{"url":"https://api.github.com/repos/CoderZhuXH/XHLaunchAd/issues/50","repository_url":"https://api.github.com/repos/CoderZhuXH/XHLaunchAd","labels_url":"https://api.github.com/repos/CoderZhuXH/XHLaunchAd/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/CoderZhuXH/XHLaunchAd/issues/50/comments","events_url":"https://api.github.com/repos/CoderZhuXH/XHLaunchAd/issues/50/events","html_url":"https://github.com/CoderZhuXH/XHLaunchAd/issues/50","id":211603786,"number":50,"title":"初始化的图片类型，出现视频问题","user":{"login":"allran","id":1505892,"avatar_url":"https://avatars3.githubusercontent.com/u/1505892?v=3","gravatar_id":"","url":"https://api.github.com/users/allran","html_url":"https://github.com/allran","followers_url":"https://api.github.com/users/allran/followers","following_url":"https://api.github.com/users/allran/following{/other_user}","gists_url":"https://api.github.com/users/allran/gists{/gist_id}","starred_url":"https://api.github.com/users/allran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allran/subscriptions","organizations_url":"https://api.github.com/users/allran/orgs","repos_url":"https://api.github.com/users/allran/repos","events_url":"https://api.github.com/users/allran/events{/privacy}","received_events_url":"https://api.github.com/users/allran/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-03T06:10:19Z","updated_at":"2017-03-06T02:40:11Z","closed_at":null,"body":"这是我写的初始化代码\r\n```\r\n#pragma mark- 开屏广告相关\r\n-(void)setupXHLaunchAd\r\n{\r\n    AdImage *item = [AdImage searchSingleWithWhere:nil orderBy:nil];\r\n    \r\n    if (item != nil) {\r\n        //1.因为数据请求是异步的,请在数据请求前,调用下面方法配置数据等待时间.\r\n        //2.设为3即表示:启动页将停留3s等待服务器返回广告数据,3s内等到广告数据,将正常显示广告,否则将自动进入window的RootVC\r\n        //3.数据获取成功,初始化广告时,自动结束等待,显示广告\r\n        [XHLaunchAd setWaitDataDuration:3];//请求广告数据前,必须设置\r\n        \r\n        //配置广告数据\r\n        XHLaunchImageAdConfiguration *imageAdconfiguration = [XHLaunchImageAdConfiguration new];\r\n        imageAdconfiguration.duration = item.show_time;\r\n\r\n        //imageAdconfiguration.frame = CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.width/model.width*model.height);\r\n        imageAdconfiguration.imageNameOrURLString = [NSString linkUrl:item.imgurl];\r\n        imageAdconfiguration.imageOption = XHLaunchAdImageDefault;\r\n        imageAdconfiguration.contentMode = UIViewContentModeScaleToFill;\r\n        imageAdconfiguration.openURLString = item.link_id;\r\n        imageAdconfiguration.showFinishAnimate =ShowFinishAnimateFadein;\r\n        imageAdconfiguration.skipButtonType = SkipTypeTimeText;\r\n        imageAdconfiguration.showEnterForeground = NO;\r\n        \r\n        [XHLaunchAd imageAdWithImageAdConfiguration:imageAdconfiguration delegate:self];\r\n    }\r\n    \r\n    //重新下载广告数据\r\n    [[APIClient sharedClient] startImgsWithTag:self call:^(AdImage *item, APIObject *info) { }];\r\n    \r\n}\r\n```\r\n\r\n\r\n以下是检测到的卡顿信息。我在初始化时没有使用视频方式，使用的图片，但卡顿出现了视频信息\r\n```\r\nlibsystem_kernel.dylib\tsemaphore_wait_trap + 8\r\n1 libdispatch.dylib\t__dispatch_semaphore_wait_slow + 191\r\n2 HomeSharing\t-[HSCloudClient canShowCloudMusic] + 347\r\n3 MediaPlayer\t-[MPMediaLibraryDataProviderML3 systemFilterPredicatesWithGroupingType:cloudTrackFilteringType:subscriptionFilteringOptions:] + 339\r\n4 MediaPlayer\t-[MPMediaLibraryDataProviderML3 ML3SystemFilterPredicatesWithGroupingType:cloudTrackFilteringType:subscriptionFilteringOptions:additionalFilterPredicates:] + 95\r\n5 MediaPlayer\t-[MPMediaLibraryDataProviderML3 setLibraryEntityFilterPredicatesWithCloudFilteringType:additionalFilterPredicates:] + 55\r\n6 MediaPlayer\t-[MPMediaLibrary setLibraryFilterPredicates] + 165\r\n7 MediaPlayer\t-[MPMediaLibrary init] + 723\r\n8 MediaPlayer\t___36+[MPMediaLibrary deviceMediaLibrary]_block_invoke + 67\r\n9 libdispatch.dylib\t__dispatch_client_callout + 23\r\n10 libdispatch.dylib\t__dispatch_barrier_sync_f_invoke + 57\r\n11 MediaPlayer\t+[MPMediaLibrary deviceMediaLibrary] + 31\r\n12 MediaPlayer\t+[MPMediaLibrary defaultMediaLibrary] + 221\r\n13 MediaPlayer\t-[MPAVController preferredLanguages] + 89\r\n14 MediaPlayer\t-[MPAVController _connectAVPlayer] + 1019\r\n15 MediaPlayer\t___37-[MPAVController setPlaylistManager:]_block_invoke + 163\r\n16 MediaPlayer\tMPLogActivity + 70\r\n17 MediaPlayer\t-[MPAVController setPlaylistManager:] + 127\r\n18 MediaPlayer\t-[MPAVController _playlistManager] + 111\r\n19 MediaPlayer\t-[MPAVController _setActionAtEndAttributeForState:] + 73\r\n20 MediaPlayer\t-[MPMoviePlayerControllerNew init] + 299\r\n21 MediaPlayer\t-[MPMoviePlayerController initWithContentURL:] + 189\r\n22 FaceCard\t0x00066000 + 2721971\r\n23 FaceCard\t0x00066000 + 2721733\r\n24 FaceCard\t0x00066000 + 2701609\r\n25 FaceCard\t0x00066000 + 2705805\r\n26 UIKit\t-[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 541\r\n27 UIKit\t-[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 205\r\n28 UIKit\t-[UIViewAnimationState animationDidStop:finished:] + 79\r\n29 QuartzCore\tCA::Layer::run_animation_callbacks(void*) + 253\r\n30 libdispatch.dylib\t__dispatch_client_callout + 23\r\n31 libdispatch.dylib\t__dispatch_main_queue_callback_4CF$VARIANT$mp + 1525\r\n32 CoreFoundation\t___CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9\r\n33 CoreFoundation\t___CFRunLoopRun + 1575\r\n34 CoreFoundation\tCFRunLoopRunSpecific + 520\r\n35 CoreFoundation\tCFRunLoopRunInMode + 108\r\n36 GraphicsServices\tGSEventRunModal + 160\r\n37 UIKit\tUIApplicationMain + 144\r\n38 FaceCard\t0x00066000 + 1030341\r\n```"},"comment":{"url":"https://api.github.com/repos/CoderZhuXH/XHLaunchAd/issues/comments/284289162","html_url":"https://github.com/CoderZhuXH/XHLaunchAd/issues/50#issuecomment-284289162","issue_url":"https://api.github.com/repos/CoderZhuXH/XHLaunchAd/issues/50","id":284289162,"user":{"login":"allran","id":1505892,"avatar_url":"https://avatars3.githubusercontent.com/u/1505892?v=3","gravatar_id":"","url":"https://api.github.com/users/allran","html_url":"https://github.com/allran","followers_url":"https://api.github.com/users/allran/followers","following_url":"https://api.github.com/users/allran/following{/other_user}","gists_url":"https://api.github.com/users/allran/gists{/gist_id}","starred_url":"https://api.github.com/users/allran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allran/subscriptions","organizations_url":"https://api.github.com/users/allran/orgs","repos_url":"https://api.github.com/users/allran/repos","events_url":"https://api.github.com/users/allran/events{/privacy}","received_events_url":"https://api.github.com/users/allran/received_events","type":"User","site_admin":false},"created_at":"2017-03-06T02:40:11Z","updated_at":"2017-03-06T02:40:11Z","body":"@CoderZhuXH 已查找到问题，在XHLaunchAd.m-->remove()-->adVideoPlayer设置为nil的时候，应该先判断一下\r\n"}}
{"actor":{"display_login":"allran"}}