Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Events): Add onLoaded and onError output events on audio-track component #115

Closed
wants to merge 3 commits into from

Conversation

proustibat
Copy link

Based on the onFinish event, it works on the same way.
I needed to do something like that:

    <audio-track #audio *ngIf="myOnlyTrack" [track]="myOnlyTrack" (onLoaded)="onTrackLoaded($event)">
        <ion-item>
            <ion-thumbnail item-left>
                <audio-track-play dark [audioTrack]="audio"><ion-spinner></ion-spinner></audio-track-play>
            </ion-thumbnail>
        </ion-item>
    </audio-track>

Bases on the onFinish event, it works on the same way
Calling stop method causes error because they was not implemented in a class. Also added a
toggleStop method to be called, useful when using streaming adress because user doesn't want to be
paused.
@proustibat
Copy link
Author

I think I fixed another bug:

fix(Stop): Fix stop method error and add toggleStop method
Calling stop method caused error because it was not implemented in a class. Also added a
toggleStop method to be called, useful when using streaming adress because user doesn't want to be paused.

@proustibat proustibat changed the title feat(Event): Add onLoaded output event on audio-track component feat(Events): Add onLoaded and onError output events on audio-track component May 5, 2017
@proustibat proustibat closed this Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant