Can the Api keep playing Audio when closing on mobile browser?

I’m building a Vue app that uses the twitch embed API. Is there any possible way to let the audio play after u leave the browser. Other webapplications use Jplayer that I know of. I dont see to have the twitch player to be audio only.

my Twitch component:

 methods: {
 createPlayer() {
   const options = {
     width: this.width,
     height: this.height,
     channel: this.channel,
   };

  this.StreamPlayer = new window.Twitch.Player(this.$refs[this.streamType], options);

  this.player.addEventListener('pause', () => (this.$emit('pause')));
  this.player.addEventListener('play', () => (this.$emit('play')));
  this.player.addEventListener('ready', () => {
    this.player.setQuality('480p');
    this.player.setVolume(1);
    this.$emit('ready');
  });
  this.unMute();
},
play() {
  this.player.play();
},
pause() {
  this.player.pause();
},
mute() {
  this.player.setMuted(true);
},
unMute() {
  this.player.setMuted(false);
},

}

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.