cordova-plugin-playlist icon indicating copy to clipboard operation
cordova-plugin-playlist copied to clipboard

Don't work in iOS with Ionic3.

Open mgtaio opened this issue 4 years ago • 1 comments

Don't work in iOS with Ionic3.

Code:

      this.cdvAudioPlayer.setOptions({ verbose: true, resetStreamOnPause: true }).then(() => {
        this.cdvAudioPlayer.setPlaylistItems([
          // Intersperse good tracks with failures
          { trackId: '1', assetUrl: 'http://streaming1.ondamusicalradio.com:8100/omrfmweb', albumArt: '', artist: 'Mount Nakara', album: 'Test Files', title: 'Test 1', isStream: true }
        ])
        .then(() => {
          this.cdvAudioPlayer.play();
        }).catch((err) => console.log('YourService, cdvAudioPlayer setPlaylistItems error: ', err));
      }).catch((err) => console.log('YourService, cdvAudioPlayer init error: ', err));

App open and close instantly. iOS 13.3.1

Thx

mgtaio avatar Feb 15 '20 15:02 mgtaio

I fixed this issue by making sure all of my values (ID, album. title, etc) were fully defined and not 'undefined'. Then it worked.

HypeTunes avatar Aug 13 '20 03:08 HypeTunes