I’ve been struggling for hours trying to implement the media plugin in my ionic 3 app. I had a look at the Ionic docs as well as the plugin docs but both seem to have a different way of implementing it. The only way I can get it to work is through the following, but I think this is the wrong way and the code just looks dirty!
I’m having to duplicate the stream url twice (both in the play and once again in the stop function) just to get it to work - I know this is not the right way, someone please assist. Thanks!
I’m fairly new to ionic, can you please illustrate how this should look in my home.ts file? I think I saw a similar method when I was researching, and I tried it but it didn’t work, perhaps there was an error somewhere there. Thanks for your time.