Ticket #97 (closed enhancement: fixed)
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;
}

Moved to next release