Initialize by installing npm i feed-media-audio-player
(a todo is getting this installed on the capacitor plugin so this is one step)
import { FeedFM } from "capacitor-feed-fm";
// pass js version of player in just for web, is not used on native
const player = new Feed.Player(tokens.feedFMtoken, tokens.feedFMsecret)
FeedFM.newPlayer({ feedFMtoken: tokens.feedFMtoken, feedFMsecret: tokens.feedFMsecret, player}).then(()=>{
Feed.on('all', (event:any) => console.log('player-event: ', event));
})
add this to app.gradle dependencies: implementation 'fm.feed.android:player-sdk:5.2.4'
In your Application.onCreate()
add the following to initialize
FeedPlayerService.initialize(getApplicationContext(), "yourToken", "yourSecret");