equal
deleted
inserted
replaced
274 mashup.currentAnnotation = _annotation; |
274 mashup.currentAnnotation = _annotation; |
275 mashupSegmentBegin = mashup.currentAnnotation.annotation.begin.milliseconds; |
275 mashupSegmentBegin = mashup.currentAnnotation.annotation.begin.milliseconds; |
276 mashupSegmentEnd = mashup.currentAnnotation.annotation.end.milliseconds; |
276 mashupSegmentEnd = mashup.currentAnnotation.annotation.end.milliseconds; |
277 mashupTimedelta = mashupSegmentBegin - mashup.currentAnnotation.begin.milliseconds; |
277 mashupTimedelta = mashupSegmentBegin - mashup.currentAnnotation.begin.milliseconds; |
278 mashup.currentMedia = mashup.currentAnnotation.getMedia(); |
278 mashup.currentMedia = mashup.currentAnnotation.getMedia(); |
279 |
|
280 project.getMedias().forEach(function(_media) { |
279 project.getMedias().forEach(function(_media) { |
281 if (_media !== mashup.currentMedia) { |
280 if (_media !== mashup.currentMedia) { |
282 _media.hide(); |
281 _media.hide(); |
283 _media.pause(); |
282 _media.pause(); |
284 } else { |
283 } else { |
482 mashup.volume = media.volume; |
481 mashup.volume = media.volume; |
483 mashup.trigger("volumechange"); |
482 mashup.trigger("volumechange"); |
484 }); |
483 }); |
485 |
484 |
486 project.on("set-current", function(_m) { |
485 project.on("set-current", function(_m) { |
487 if (_m !== media) { |
486 if (_m !== media && (_m !== mashup || mashup.currentMedia !== media)) { |
488 media.hide(); |
487 media.hide(); |
489 } |
488 } |
490 }); |
489 }); |
491 |
490 |
492 } |
491 } |