I'm trying to update the display title of a jPlayer object (encircled in red), after the jPlayer object has already been instantiated with a different audio file.
I'm using the following code, which doesn't seem to be working:
$("#jplayer-id").jPlayer("setMedia", {
title: "NEW TITLE"
});
What am I missing? Thanks.
Try this for
setMedia
setting the title within the jPlayerready
event:If already initialized, you can use jQuery to target its
jp-title
class.