This question is an exact duplicate of:
I am showing a popup within a div having unique ID and I placed a Close button on that div, on hitting of that button, div is hidden and hence player is made stop. This is working properly with mp4 format, but when I am going to play wmv format then div is being hidden but sound keeps on going until it reaches to end time. I am not able to access the controls of windows media player like stop,pause etc.
please help me... I will be thankful to You.
js is being given below..
function SetWMV(mediaLink) { wmPlayer = ""; wmPlayer += ""; wmPlayer += ""; wmPlayer += ""; wmPlayer += ""; wmPlayer += ""; wmPlayer += "http://ift.tt/10TM74A'> "; wmPlayer += ""; return wmPlayer; };
function loadMovie(mediaLink, mediaTitle) {
var playerHtml = "<div id='playerContainer' class='playerContainer'>";
playerHtml += "<div class='player'>" + GetPlayerTag(mediaLink) + "</div>";
playerHtml += "</div>";
$("#playerDiv").empty().append(playerHtml);
$("#playerDiv").dialog({
autoOpen: false, title: mediaTitle, modal: true,
width: 550, height: 400, closeOnEscape: false, modal: true, resizable: false,
show: {
effect: "fade",
duration: 1000
},
hide: {
effect: "fade",
duration: 1000
},
create: function (event, ui) {
var widget = $(this).dialog("widget");
$(".ui-dialog-titlebar-close span", widget).removeClass("ui-icon-closethick").addClass("ui-icon-DialogCloseButton");
},
close: function (event, ui) { $("#playerDiv").empty(); }
});
$("#playerDiv").dialog("open");
};
0 commentaires:
Enregistrer un commentaire