Reputation: 1500
Here is my code of jplayer. The problem is that it works fine in Chrome, Opera, Firefox, but when browsed in the Safari browser on desktop there is some delay in playback. I don't know why is this happened. Any help or suggestion please.
HTML:
<div id="#jpId1"></div>
JavaScript:
$("#jpId1").jPlayer({
ready: function () { // The $.jPlayer.event.ready event
$(this).jPlayer("setMedia", { // Set the media
wav: "sound/sound1.wav",
}).jPlayer("stop"); // Attempt to auto play the media
},
ended: function () { // The $.jPlayer.event.ended event
$(this).jPlayer("play"); // Repeat the media
},
supplied: "wav"
}
);
Upvotes: 2
Views: 625