integration/js/mashupplayer.js
author veltr
Fri, 09 Nov 2012 18:56:29 +0100
changeset 42 40909e8d6855
parent 41 3ec2343f2b85
child 43 5a5024bc74e6
permissions -rw-r--r--
Commit before weekend

IriSP.player = function(options) {
    
    var directory = new IriSP.Model.Directory(),
        project = directory.remoteSource({
            url: options.url,
            serializer: IriSP.serializers.ldt
        }),
        mashup;
    
    project.onLoad(function() {
        mashup = project.getMashups()[0];
        IriSP.mashupcore(project, mashup);
        project.trigger("set-current",mashup);
        
        $(".info-title a").text(mashup.title);
        $(".info-duration td").text(mashup.duration.toString());
        $(".info-author a").text(mashup.creator);
        $(".info-description td").text(mashup.description);
        
    });
}