Saturday, October 1, 2011

Release 0.1 Cont'd

Several hours(12) of work today went into understanding the core of Popcorn in relation to adding a pause feature to a Track Event. In order to get an idea of how advance JavaScript works, reference was made to Douglas Crockford Online Teaching which helped in the process.

The first phase includes finding areas where change might be necessary. Scott's suggestion to use the feature would be as follows:

Popcorn("#video").trackevent({
start: 10,
end: 10,
target: 'container-div',
pause: 5
});

The following updated were made:

Added trackevent video duration for pause:

Popcorn.addTrackEvent( that, {
start: videoDurationPlus,
end: videoDurationPlus,
pause: videoDurationPlus
});

Included line to converted 'pause' to seconds:

track.pause = Popcorn.util.toSeconds( track.pause,obj.options.framerate);

Efforts are mainly focused on setting up properties.

No comments:

Post a Comment