-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(media): fix success/error/statusUpdate observables
closes #1806
- Loading branch information
Showing
1 changed file
with
53 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7105048
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, @ihadeed,
I'am having trouble with this new version of the media plugin. Now that the onSuccess is not in the constructor, I can't make it fire, even subscribing just after creating the media.
This does not work:
current = this.media.create(url);
thencurrent.onSuccess.subscribe(() => alert('success'));
.And the onStatusUpdate does not fire status 1, maybe already fired when subscribed?
Please help!
7105048
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pedrorckt
Does
onStatusChange
emit the status changes you are expecting? Usually that observable fires all the changes. OnSuccess only fires a few.If you're still experiencing issues, please open a new issue instead of commenting here. It's harder to track conversations in the comments.