arielfaur / ionic-audio

An audio player for Ionic 3 and Angular 4. Works with HTML 5 audio or native audio using Cordova Media plugin.
http://arielfaur.github.io/ionic-audio/2.0/index.html
MIT License
321 stars 163 forks source link

How to use seekTo #187

Closed pelcomppl closed 6 years ago

pelcomppl commented 6 years ago

Hi I use your tutorial for Ionic 3 from https://github.com/arielfaur/ionic-audio/tree/3.0#usage. But I don't know how to use seekTo method and get progress bar current position, could you give me sample code?

pelcomppl commented 6 years ago

import { AudioTrackComponent } from 'ionic-audio'; @ViewChild('audio') audioTrack: AudioTrackComponent; this.audioTrack.seekTo(<seconds>)