Skip to content

pbj-apps/Live-android-sdk

Repository files navigation

Live Player

alt text

Stream your PBJ.live content from your Android App.

Stream to your Android app in 4 simple steps

1. Import the Live-android-sdk package

Add in gradle at app level

implementation "live.pbj.sdk:live:$live_version"

2. Initialize the LivePlayerSDK with your credentials on App start

 val liveSdk = LiveSDK.initialize(context, "yourApiKey", ApiEnvironment)

3. (Optional) Check if there is a live episode beforehand

Typical usage is that you have a "Watch live" button that you only want to show if there is an actual episode currently live.

liveSdk.isEpisodeLive { isLive ->

}

You can also pass your showId as a parameter to query live episodes, but this time for a specific show. You can find your showId in your web dashboard. Select the show you want and grab it's id from the browser's url.

4. Start a Player activity

liveSdk.startLivePlayer(context) // Optionally pass a showId.

Without a showId parameter, the player will display the first live show it finds.

Example App

Checkout the example App provided in this repository to see a typical integration. With the test app, you can input your Organization api key and battle test your own environment.

Got a question? Found an issue?

Create a github issue and we'll help you from there ❤️

About

Stream your PBJ.live content from your Android App.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages