Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70764

How to create multiple instance of Media plugin dynamically ionic4

$
0
0

@kendam wrote:

I am trying to create multiple instance of audio files dynamically using Media plugin

single instance looks like this

const file: MediaObject = this.media.create('file.mp3');

how do I create a dynamic variable of type MediaObject. Thanks as always

I needed to append something to the file like this dynamically

const file1: MediaObject = this.media.create('file1.mp3');
const file2: MediaObject = this.media.create('file2.mp3');
const file3: MediaObject = this.media.create('file3.mp3');

what is the best way to handle this.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70764

Trending Articles