capacitor-feed-fm
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

Feed FM for Capacitor

Web

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));
 })

Android

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");

Readme

Keywords

Package Sidebar

Install

npm i capacitor-feed-fm

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

136 kB

Total Files

39

Last publish

Collaborators

  • sworkit-tech