Skip to content

Commit

Permalink
Fixed wrong error event listener in video.clone
Browse files Browse the repository at this point in the history
  • Loading branch information
bp74 committed Dec 3, 2014
1 parent 514edb7 commit ef6d90b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/media/video.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ class Video {

/// Use this method to load a video from a given [url]. If you don't
/// provide [videoLoadOptions] the [defaultLoadOptions] will be used.
///
///
/// Please note that on most mobile devices the load method must be called
/// from an input event like MouseEvent or TouchEvent. The load method will
/// never complete if you call it elsewhere in your code. The same is true
/// never complete if you call it elsewhere in your code. The same is true
/// for the ResourceManager.addVideo method.
static Future<Video> load(String url, [VideoLoadOptions videoLoadOptions = null]) {
Expand Down Expand Up @@ -121,7 +121,7 @@ class Video {
}

onCanPlaySubscription = videoElement.onCanPlay.listen(onCanPlay);
onErrorSubscription = videoElement.onError.listen(onCanPlay);
onErrorSubscription = videoElement.onError.listen(onError);
return completer.future;
}

Expand Down

0 comments on commit ef6d90b

Please sign in to comment.