Note that there are some explanatory texts on larger screens.

plurals
  1. POYoutube Video crash app iOS (Received memory warning)
    primarykey
    data
    text
    <p>I am trying to play youtube videos in my app.. and it works fine.. but total are 7 in numbers and when I play one by one all the videos. and plays the fifth <code>video</code>. It <code>crash</code> my app with memory waring </p> <pre><code>2013-03-07 12:31:01.167 Magazine[3015:707] Received memory warning. </code></pre> <p>why this error is coming on particular video.. is this because of the memory low or some other reason.I have embedded the youtube in my app . please check the code. why this memory issue is coming for the particular <code>youtube</code> video. I think memory get full when I play videos on my iPad1 ..how to release it from memory...</p> <pre><code>UIWebView *youtube_player=[[UIWebView alloc]initWithFrame:CGRectMake(20, Yposition +k*Height, 400, Height)]; youtube_player.backgroundColor = [UIColor blackColor]; youtube_player.opaque = NO; youtube_player.delegate=self; NSString *videoHTML = [NSString stringWithFormat:@"\ &lt;html&gt;\ &lt;head&gt;\ &lt;style type=\"text/css\"&gt;\ iframe {position:absolute; top:50%%; margin-top:-130px;}\ body {background-color:#000; margin:0;}\ &lt;/style&gt;\ &lt;/head&gt;\ &lt;body&gt;\ &lt;iframe width=\"100%%\" height=\"240px\" src=\"%@\" frameborder=\"0\" allowfullscreen&gt;&lt;/iframe&gt;\ &lt;/body&gt;\ &lt;/html&gt;", [[videos objectAtIndex:k] _video_path]]; youtube_player.scrollView.scrollEnabled=NO; UIScrollView *scrollView = [youtube_player.subviews objectAtIndex:0]; scrollView.delegate = self; [youtube_player loadHTMLString:videoHTML baseURL:nil]; youtube_player.layer.borderWidth=1.0f; [mMoviePlayersArray_por addObject:youtube_player]; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload