I embed a youtube video in a UIWebView. The size of the UIWebView is 124x86. And the code for the same:
NSString* embedHTML =@ "\ <html><head>\ <style type=\"text/css\">\ body {\ background-color: transparent;\ color: white;\ }\ </style>\ </head><body style=\"margin:0\">\ <embed id=\"yt\" src=\"%@\" type=\"application/x-shockwave-flash\" \ width=\"124\" height=\"86\"></embed>\ </body></html>";
When loading, the thumbnail does not display correctly. its size is larger than 124x86 and is not suitable for UIWebView. (So, now I see only 1/4 of the thumbnail).
I want this thumbnail to be compressed (or generated) to 124x86 and fit into the UIWebView.
source share