Skip to content

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

Closed
proustibat wants to merge 3 commits into
arielfaur:3.0from
FaubourgSimone:3.0
Closed

feat(Events): Add onLoaded and onError output events on audio-track component#115
proustibat wants to merge 3 commits into
arielfaur:3.0from
FaubourgSimone:3.0

Conversation

@proustibat
Copy link
Copy Markdown

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>

proustibat added 2 commits May 2, 2017 02:28
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
Copy Markdown
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