View Full Version : playing .wmv file in GXT

18 Feb 2013, 7:59 AM
I am new to GXT.
I want to play .wmv file in GXT. for that i have created a JSNI method and called the JSNI method from the GXT file. JSNI method is below

public static native void playSound() /*-{
$doc.getElementById("dummy").innerHTML="<embed src=\"CHIMES.WAV\" hidden=\"true\" type=\"audio/wav\" autostart=\"false\" loop=\"false\" />";

but it is not working for me. It does not show any errors.
Please provide a solution to play a .wmv file in GXT.
Thanks in Advance