Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

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
});


}
})


1 Community Answers

George

JW Player Support Agent  
0 rated :

Hello Leo,

There is no documented way of setting the XML string as the ad.

This question has received the maximum number of answers.