Skip to content

Commit

Permalink
correct the use of fileVideo, which replaced videoImage ages ago
Browse files Browse the repository at this point in the history
  • Loading branch information
schanzer committed Nov 10, 2013
1 parent 881479b commit d522806
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions js-runtime/lib/primitive.js
Expand Up @@ -5525,7 +5525,6 @@ PRIMITIVES['image-url'] =

PRIMITIVES['open-image-url'] = PRIMITIVES['image-url'];

PRIMITIVES['video/url'] =
PRIMITIVES['video-url'] =
new PrimProc('video-url',
1,
Expand All @@ -5536,7 +5535,7 @@ new PrimProc('video-url',
var rawVideo = document.createElement('video');
rawVideo.src = path.toString();
rawVideo.addEventListener('canplay', function() {
restarter(world.Kernel.videoImage(path.toString(), rawVideo));
restarter(world.Kernel.fileVideo(path.toString(), rawVideo));
});
rawVideo.addEventListener('error', function(e) {
restarter(types.schemeError(types.incompleteExn(
Expand All @@ -5547,7 +5546,7 @@ new PrimProc('video-url',
rawVideo.src = path.toString();
});
});

PRIMITIVES['video/url'] = PRIMITIVES['video-url'];

PRIMITIVES['image-width'] =
new PrimProc('image-width',
Expand Down

0 comments on commit d522806

Please sign in to comment.