advertising xml file problem
i want to use xmldom to replace preroll.xml as below.
when i do like that "Error in "beforePlay" event handler: TypeError: a.replace is not a function(…)" this error happened.
how to solve this problem?
$.ajax({
type: "GET",
url: "assets/preroll.xml",
dataType: "xml",
success: function (xml) {
player.setup({
advertising: {
client: "vast",
tag: $(xml)
},
flashplayer: "../../jwplayer-7.7.0/jwplayer.flash.swf",
file: "<?echo $file_url?>",
width: 640,
height: 480,
autostart: true
});
}
})