Skip to content
This repository was archived by the owner on Jan 31, 2018. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 20 additions & 16 deletions public/src/core/media.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,30 +597,34 @@
if ( importData.url && _duration >= 0 ) {
var firstSource;

// If sources is a single array and of type null player, don't bother making a sequence.
// If sources is a single array and of type null player,
// don't bother making a sequence.
if ( url.length > 1 || MediaTypes.checkUrl( url[ 0 ] ) !== "null" ) {
// grab first source as main source.
sources.push( URI.makeUnique( url.shift() ).toString() );
for ( i = 0; i < url.length; i++ ) {
fallbacks.push( URI.makeUnique( url[ i ] ).toString() );
fallbacks.pusgetMetaDatah( URI.makeUnique( url[ i ] ).toString() );

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heh.

}

firstSource = sources[ 0 ];
newTrack = new Track();
_this.addTrack( newTrack );
newTrack.addTrackEvent({
type: "sequencer",
popcornOptions: {
start: 0,
end: _duration,
source: sources,
title: URI.stripUnique( firstSource ).path,
fallback: fallbacks,
duration: _duration,
target: "video-container"
}
MediaTypes.getMetaData( firstSource, function( data ) {

newTrack = new Track();
_this.addTrack( newTrack );
newTrack.addTrackEvent({
type: "sequencer",
popcornOptions: {
start: 0,
end: _duration,
source: sources,
title: data.title,
fallback: fallbacks,
duration: _duration,
target: "video-container"
}
});
_clipData[ firstSource ] = firstSource;
});
_clipData[ firstSource ] = firstSource;
}
}
} else if ( console ) {
Expand Down