안드로이드 개발 질문/답변
(글 수 45,052)
제가 Youtube 동영상 URL을 가지고 WebView 동영상을 플레이를 할려고 합니다.
URL은 다음과 같습니다.
http://www.youtube.com/v/CXtVvGVqa5Q&hl=en&fs=1&
webView.loadUrl("http://www.youtube.com/v/CXtVvGVqa5Q&hl=en&fs=1&");
이렇게 해보았으나 안되었습니다.
그래서 다른 방법으로
String ucchtml = "<html><head> <style type=\"text/css\"> body { background-color: transparent; color: white;} </style> </head><body style=\"margin:0\"> <embed id=\"yt\" src=\"http://www.youtube.com/v/CXtVvGVqa5Q&hl=en&fs=1&\" type=\"application/x-shockwave-flash\" width=\"200\" height=\"300\"></embed> </body></html>";
webView.loadData(ucchtml, "text/css", "utf-8");
이렇게 해봤지만 안되었습니다.
어떻게 하는지 알려주세요 ㅠ 고수님덜~~
URL은 다음과 같습니다.
http://www.youtube.com/v/CXtVvGVqa5Q&hl=en&fs=1&
webView.loadUrl("http://www.youtube.com/v/CXtVvGVqa5Q&hl=en&fs=1&");
이렇게 해보았으나 안되었습니다.
그래서 다른 방법으로
String ucchtml = "<html><head> <style type=\"text/css\"> body { background-color: transparent; color: white;} </style> </head><body style=\"margin:0\"> <embed id=\"yt\" src=\"http://www.youtube.com/v/CXtVvGVqa5Q&hl=en&fs=1&\" type=\"application/x-shockwave-flash\" width=\"200\" height=\"300\"></embed> </body></html>";
webView.loadData(ucchtml, "text/css", "utf-8");
이렇게 해봤지만 안되었습니다.
어떻게 하는지 알려주세요 ㅠ 고수님덜~~



