dont prefetch first annot before video

This commit is contained in:
Sanj 2011-03-14 06:11:52 +05:30
parent 030f239534
commit a4a76f48bc

View File

@ -96,15 +96,15 @@ function setupPadmaLink(videoObj, data) {
//FIXME: should be a better way to deal with displaying default layer. //FIXME: should be a better way to deal with displaying default layer.
var currentLayers = videoObj.getLayersAtTimecode(npt2ms(linkData.tcIn)); var currentLayers = videoObj.getLayersAtTimecode(npt2ms(linkData.tcIn));
// var annotHtml = getLayersHtml(npt2ms(linkData.tcIn), ['transcript']); // var annotHtml = getLayersHtml(npt2ms(linkData.tcIn), ['transcript']);
var transcripts = filterLayersByTracks(currentLayers, ['transcript']); // var transcripts = filterLayersByTracks(currentLayers, ['transcript']);
if (transcripts.length > 0) { // if (transcripts.length > 0) {
var annotHtml = transcripts[0].value_html; // var annotHtml = transcripts[0].value_html;
} else { // } else {
var annotHtml = ''; // var annotHtml = '';
} // }
$('.annotationText').html(annotHtml); // $('.annotationText').html(annotHtml);
var annotHeight = $(window).height() - 340; var annotHeight = $(window).height() - 340;
$('.annotationText').css({'height': annotHeight + "px"}); $('.annotationText').css({'height': annotHeight + "px"});
var videoElem = $('video'); var videoElem = $('video');