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.
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');