{"id":3363,"date":"2014-03-23T11:23:46","date_gmt":"2014-03-23T11:23:46","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/23\/youtube-video-crash-xcode-ios6-collection-of-common-programming-errors\/"},"modified":"2014-03-23T11:23:46","modified_gmt":"2014-03-23T11:23:46","slug":"youtube-video-crash-xcode-ios6-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/23\/youtube-video-crash-xcode-ios6-collection-of-common-programming-errors\/","title":{"rendered":"Youtube Video Crash Xcode ios6-Collection of common programming errors"},"content":{"rendered":"<p>In <code>UIWebview<\/code> when I try to play any video on the <code>youtube<\/code> it crash my xcode ,I am using iOS6 .. I simply used the <code>UIWebview<\/code> with loading url youtube to it&#8230;do I need to embeddd mediaplayer to play the videos?<\/p>\n<p>what more i need to do to play the video on the youtube in <code>UIWebView<\/code><\/p>\n<p><strong>code<\/strong><\/p>\n<pre><code>- (void)viewDidLoad\n{\n[super viewDidLoad];\n\n\n NSString *newVersionHTML = @\"\\\nbody{padding:0;margin:0;}\\\n\\\n\";\n\n  NSString *htmlToLoad = [NSString stringWithFormat:newVersionHTML, webView.frame.size.width, webView.frame.size.height,videoId];\n [webView loadHTMLString:htmlToLoad baseURL:nil];\n webView.delegate = self;\n\/\/ self.webView.mediaPlaybackRequiresUserAction = NO;\n\n\nwebView=[[UIWebView alloc]initWithFrame:CGRectMake(0, 0, 1024, 768)];\n\n\n[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@\"http:\/\/www.youtube.com\/\"]]]];\n [self.view addSubview:webView];\n\n}\n<\/code><\/pre>\n<p><strong>new error<\/strong><\/p>\n<pre><code>2013-02-13 11:08:20.902 webview[593:c07] [MPAVController] Autoplay: Enabling autoplay\n2013-02-13 11:08:20.903 webview[593:c07] [MPAVController] Autoplay: Skipping autoplay, disabled (for current item: 0, on player: 1)\n2013-02-13 11:08:20.903 webview[593:c07] setting movie path: http:\/\/r4---sn-ci5gupcc-cage.c.youtube.com\/videoplayback?el=watch&amp;itag=18&amp;cp=U0hVRVdQVF9IU0NONV9PSlhFOl9xb2x5ZzMxX3Zw&amp;sver=3&amp;expire=1360756439&amp;yms=_tpjcd07_wk&amp;signature=0659B5710FD8503E5AA5059CE35A9754DD59B90F.5194D7A1B0EC8749FC91CC1B31261B81950E801E&amp;upn=Y8J9bVD4jLE&amp;newshard=yes&amp;ratebypass=yes&amp;sparams=cp%2Cid%2Cip%2Cipbits%2Citag%2Cratebypass%2Csource%2Cupn%2Cexpire&amp;ipbits=8&amp;source=youtube&amp;id=748bf802989d33fb&amp;app=youtube_mobile&amp;key=yt1&amp;ip=122.179.77.11&amp;fexp=906335%2C901802%2C909917%2C910207%2C914052%2C916613%2C901446%2C920704%2C912806%2C902000%2C922403%2C922405%2C929901%2C913605%2C925710%2C929114%2C925006%2C908529%2C920201%2C911116%2C926403%2C910221%2C901451%2C919114&amp;dnc=1&amp;mt=1360733832&amp;mv=m&amp;ms=au&amp;cpn=dxlJMMz5hJkR_ARd&amp;ptk=Radaantv&amp;oid=bGpsJKyLNbnXo_1YohiEiw&amp;ptchn=RadaanMedia&amp;pltype=content\n2013-02-13 11:08:20.904 webview[593:c07] [MPAVController] Autoplay: Enabling autoplay\n2013-02-13 11:08:20.908 webview[593:c07] [MPCloudAssetDownloadController] Prioritization requested for media item ID: 0\n2013-02-13 11:08:23.974 webview[593:8817]   Error '!obj' trying to fetch default input device's sample rate\n2013-02-13 11:08:23.974 webview[593:8817]   Error getting audio input device sample rate: '!obj'\n2  013-02-13 11:08:23.975 webview[593:8817]   AQMEIOManager::FindIOUnit: error 'NoHW'\n2013-02-13 11:08:23.975 webview[593:c07]   AQMEIOManager::FindIOUnit: error 'NoHW'\n2013-02-13 11:08:24.567 webview[593:c07]   AQMEIOManager::FindIOUnit: error 'NoHW'\n2013-02-13 11:08:24.567 webview[593:c07]   AQMEIOManager::FindIOUnit: error 'NoHW'\n2013-02-13 11:08:24.569 webview[593:c07]   AQMEIOManager::FindIOUnit: error 'NoHW'\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In UIWebview when I try to play any video on the youtube it crash my xcode ,I am using iOS6 .. I simply used the UIWebview with loading url youtube to it&#8230;do I need to embeddd mediaplayer to play the videos? what more i need to do to play the video on the youtube in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3363","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3363","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3363"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3363\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3363"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}