dont prefetch first annot before video
This commit is contained in:
parent
030f239534
commit
a4a76f48bc
|
@ -96,15 +96,15 @@ function setupPadmaLink(videoObj, data) {
|
|||
//FIXME: should be a better way to deal with displaying default layer.
|
||||
var currentLayers = videoObj.getLayersAtTimecode(npt2ms(linkData.tcIn));
|
||||
// var annotHtml = getLayersHtml(npt2ms(linkData.tcIn), ['transcript']);
|
||||
var transcripts = filterLayersByTracks(currentLayers, ['transcript']);
|
||||
// var transcripts = filterLayersByTracks(currentLayers, ['transcript']);
|
||||
|
||||
if (transcripts.length > 0) {
|
||||
var annotHtml = transcripts[0].value_html;
|
||||
} else {
|
||||
var annotHtml = '';
|
||||
}
|
||||
// if (transcripts.length > 0) {
|
||||
// var annotHtml = transcripts[0].value_html;
|
||||
// } else {
|
||||
// var annotHtml = '';
|
||||
// }
|
||||
|
||||
$('.annotationText').html(annotHtml);
|
||||
// $('.annotationText').html(annotHtml);
|
||||
var annotHeight = $(window).height() - 340;
|
||||
$('.annotationText').css({'height': annotHeight + "px"});
|
||||
var videoElem = $('video');
|
||||
|
|
Loading…
Reference in New Issue
Block a user