// Playback track event queues
trackEvents: {
byStart: [{
+
start: -1,
end: -1
}],
while ( tracksByEnd[ tracks.endIndex ] && tracksByEnd[ tracks.endIndex ].end <= currentTime ) {
// If plugin does not exist on this instance, remove it
- if ( !tracksByEnd[ tracks.endIndex ]._natives || !!that[ tracksByEnd[ tracks.endIndex ]._natives.type ] ) {
+ if ( !tracksByEnd[ tracks.endIndex ]._natives ||
+ ( !!Popcorn.registryByName[ tracksByEnd[ tracks.endIndex ]._natives.type ] ||
+ !!that[ tracksByEnd[ tracks.endIndex ]._natives.type ] ) ) {
+
if ( tracksByEnd[ tracks.endIndex ]._running === true ) {
tracksByEnd[ tracks.endIndex ]._running = false;
tracksByEnd[ tracks.endIndex ]._natives.end.call( that, event, tracksByEnd[ tracks.endIndex ] );
while ( tracksByStart[ tracks.startIndex ] && tracksByStart[ tracks.startIndex ].start <= currentTime ) {
// If plugin does not exist on this instance, remove it
- if ( !tracksByStart[ tracks.startIndex ]._natives || !!that[ tracksByStart[ tracks.startIndex ]._natives.type ] ) {
- if ( tracksByStart[ tracks.startIndex ].end > currentTime &&
+ if ( !tracksByStart[ tracks.startIndex ]._natives ||
+ ( !!Popcorn.registryByName[ tracksByStart[ tracks.startIndex ]._natives.type ] ||
+ !!that[ tracksByStart[ tracks.startIndex ]._natives.type ] ) ) {
+
+ if ( tracksBySt art[ tracks.startIndex ].end > currentTime &&
tracksByStart[ tracks.startIndex ]._running === false &&
that.data.disabled.indexOf( tracksByStart[ tracks.startIndex ]._natives.type ) === -1 ) {
while ( tracksByStart[ tracks.startIndex ] && tracksByStart[ tracks.startIndex ].start > currentTime ) {
// if plugin does not exist on this instance, remove it
- if ( !tracksByStart[ tracks.startIndex ]._natives || !!that[ tracksByStart[ tracks.startIndex ]._natives.type ] ) {
+ if ( !tracksByStart[ tracks.startIndex ]._natives ||
+ ( !!Popcorn.registryByName[ tracksByStart[ tracks.startIndex ]._natives.type ] ||
+ !!that[ tracksByStart[ tracks.startIndex ]._natives.type ] ) ) {
+
if ( tracksByStart[ tracks.startIndex ]._running === true ) {
tracksByStart[ tracks.startIndex ]._running = false;
tracksByStart[ tracks.startIndex ]._natives.end.call( that, event, tracksByStart[ tracks.startIndex ] );
while ( tracksByEnd[ tracks.endIndex ] && tracksByEnd[ tracks.endIndex ].end > currentTime ) {
// if plugin does not exist on this instance, remove it
- if ( !tracksByEnd[ tracks.endIndex ]._natives || !!that[ tracksByEnd[ tracks.endIndex ]._natives.type ] ) {
+ if ( !tracksByEnd[ tracks.endIndex ]._natives ||
+ ( !!Popcorn.registryByName[ tracksByEnd[ tracks.endIndex ]._natives.type ] ||
+ !!that[ tracksByEnd[ tracks.endIndex ]._natives.type ] ) ) {
+
if ( tracksByEnd[ tracks.endIndex ].start <= currentTime &&
tracksByEnd[ tracks.endIndex ]._running === false &&
that.data.disabled.indexOf( tracksByEnd[ tracks.endIndex ]._natives.type ) === -1 ) {