Further update:
Now looks like to access the file on this other server, I need to be authenticated, even accessing the file directly, which is now causing a new headache
For example, I cannot do a simple
[code}
this.config.playlist.addEntryByURL(this.persist.imageURL);
[/code]
as the imageURL while is a direct link to the file - still requires authentication to access it
I was trying an alternative method like below
CODE
if(this.persist.imageURL) //We are going to check that we have a valid media config
{
this.config.playlist = new KONtx.media.Playlist();
var cookies = JSON.parse(currentAppData.get("NWB"));
var u = new URL();
u.location = this.persist.imageURL;
u.setRequestHeader("Accept", "application/vnd.newbay.dv-1.0+json");
u.setRequestHeader("Cookie", cookies);
u.fetchAsync(function(u) {
log("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
log("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
log("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
log("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
log("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
log("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
log(u.response);
log("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
log("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
log("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
log("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
log("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
log("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
log("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
log("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
if ( u.response == 200 ) {
this.config.playlist.addEntryByURL(this.persist.imageURL);
}
}.bindTo(this));
return true;
}
but while it returns a 200, its still not adding the imageURL to the playlist, so I am now baffled and stumped :(