equal
deleted
inserted
replaced
100 }; |
100 }; |
101 this.$.find('.Ldt-Loader').detach(); |
101 this.$.find('.Ldt-Loader').detach(); |
102 } |
102 } |
103 |
103 |
104 IriSP.Metadataplayer.prototype.loadMetadata = function(_metadataInfo) { |
104 IriSP.Metadataplayer.prototype.loadMetadata = function(_metadataInfo) { |
|
105 if (_metadataInfo.elementType === "source") { |
|
106 return _metadataInfo; |
|
107 } |
105 if (typeof _metadataInfo.serializer === "undefined" && typeof _metadataInfo.format !== "undefined") { |
108 if (typeof _metadataInfo.serializer === "undefined" && typeof _metadataInfo.format !== "undefined") { |
106 _metadataInfo.serializer = IriSP.serializers[_metadataInfo.format]; |
109 _metadataInfo.serializer = IriSP.serializers[_metadataInfo.format]; |
107 } |
|
108 if (typeof _metadataInfo.url === "undefined" && typeof _metadataInfo.src !== "undefined") { |
|
109 _metadataInfo.url = _metadataInfo.src; |
|
110 } |
110 } |
111 if (typeof _metadataInfo.url !== "undefined" && typeof _metadataInfo.serializer !== "undefined") { |
111 if (typeof _metadataInfo.url !== "undefined" && typeof _metadataInfo.serializer !== "undefined") { |
112 return this.sourceManager.remoteSource(_metadataInfo); |
112 return this.sourceManager.remoteSource(_metadataInfo); |
113 } else { |
113 } else { |
114 return this.sourceManager.newLocalSource(_metadataInfo); |
114 return this.sourceManager.newLocalSource(_metadataInfo); |