Ticket #97 (closed enhancement: fixed)

Opened 3 years ago

Last modified 13 months ago

Check in code change contributed by Arpan

Reported by: paul Owned by: paul
Priority: blocker Milestone: OVA for Flowplayer (v1.0.1)
Component: OVA for Flowplayer Version: OVA for Flowplayer (trunk)
Keywords: modified js plugin Cc:
Forum thread:

Description

Arpan contributed a code change to allow the RSS fields to be extracted in the playlist... add an example to accompany code.. and mark contribution on "contributors" page (to be constructed)


I made a change in the playlist-3.0.7-modified.js to allow finding all attributes from the rss since we need the thumbnail and rating etc and I did not want to break standard by adding a custom tag for them (it works if it’s a custom tag)

Changed the toString(clip) function to this:


HANDLE CHILD TAGS AND OTHER XMLNS ATTRIBUTES

function helper_mrss(el, key, val){

if(typeof(val) != "object"){

return el.replace("$\{" +key+ "\}", val).replace("$%7B" +key+ "%7D", val);

}else{

$.each(val, function(k, v){

el = helper_mrss(el, key+"."+k, v);

});

}
return el;

}


function toString(clip) {

var el = template;


$.each(clip, function(key, val) {

if (!$.isFunction(val)) {

el = helper_mrss(el, key, val);

}

});
return el;

}

Change History

comment:1 Changed 3 years ago by paul

  • Milestone OVA for Flowplayer (next release) deleted

Moved to next release

comment:2 Changed 3 years ago by paul

  • Milestone set to OVA for Flowplayer (next release)

comment:3 Changed 20 months ago by paul

  • Milestone changed from OVA for Flowplayer (1.0) to OVA for Flowplayer (Development)

comment:4 Changed 13 months ago by paul

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.