Hi All, I need a help in embedding VLC player in GWT. below is the code I have written for integrating..
i took the reference from http://wiki.videolan.org/GWT html = new HTML(); initWidget(html); StringBuffer sb = new StringBuffer(); sb.append("<object classid =\"clsid:9BE31822-FDAD-461B- AD51-BE1D1C159921\" codebase=\"http://downloads.videolan.org/pub/ videolan/vlc/latest/win32/axvlc.cab/" + "width=\""+ pixelWidth + "\" height=\""+ pixelHeight + "\" id=\"vlc\" events =\"True\">"); sb.append(""); sb.append("<param value=\"1\" name=\"ShowStatusBar\"/>"); sb.append("<param value=\""+ videoUrl + "\" name=\"src\"/ >"); sb.append("<param value=\"1\" name=\"ShowDisplay\"/>"); sb.append("<param value=\"1\" name=\"AutoLoop\"/>"); sb.append("<param value=\"1\" name=\"AutoPlay\"/>"); sb.append("<param value=\"1\" name=\"volume\"/>"); sb.append("<embed pluginspage =\"http://www.videolan.org\" type=\"application/x-vlc-plugin\" progid=\"VideoLAN.VLCPlugin.2\"width= \""+ pixelWidth + "\" height=\""+ pixelHeight + "\" id=\"vlc\" events =\"True\" name=\"vlc \" >"); sb.append("<param value=\""+ videoUrl + "\" name=\"src\"/ >"); sb.append("<param value=\"1\" name=\"ShowDisplay\"/>"); sb.append("<param value=\"1\" name=\"AutoLoop\"/>"); sb.append("<param value=\"1\" name=\"AutoPlay\"/>"); sb.append("<param value=\"1\" name=\"volume\"/>"); sb.append("</embed>"); sb.append("</object>"); sb.append("<br/>"); html.setHTML(sb.toString()); setPixelSize(pixelWidth, pixelHeight); html.setPixelSize(pixelWidth, pixelHeight); } } Please help me Regards, Venkat --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
