ios - How do I get rid of dimming when playing youtube video? -
i'm using following code launch youtube video. works great except every 30 seconds screen goes dim. tapping screen brightens again (and brings video controls expected.) happens if have auto-lock turned off ipod touch. going on?
nsstring* embeddedcode =@"<html><body bgcolor='#008080'><center><iframe width='212' height='172' src='http://www.youtube.com/embed/[videoid]?rel=0' frameborder='0'></iframe><p style='color: yellow;'>youtube video</p><p style='color: yellow;'>(requires internet access.)</p></center><body></html>"; uiwebview* videoview = [[uiwebview alloc] initwithframe:cgrectmake(0, 0, 320,350)]; [videoview loadhtmlstring:embeddedcode baseurl:nil]; [self.view addsubview:videoview];
never mind, found section of code i'm deliberately dimming screen. don't want in case.
Comments
Post a Comment