Skip to content

Instantly share code, notes, and snippets.

@OnlyInAmerica
Created May 14, 2014 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OnlyInAmerica/91dd00a612fbcd2dab1f to your computer and use it in GitHub Desktop.
Save OnlyInAmerica/91dd00a612fbcd2dab1f to your computer and use it in GitHub Desktop.
Streaming with Kickflip for Android
Kickflip.setup(this, "CLIENT_ID", "CLIENT_SECRET");
Kickflip.startBroadcastActivity(this, new BroadcastListener() {
@Override
public void onBroadcastStart() {
// The user began broadcasting
}
@Override
public void onBroadcastLive(Stream stream) {
// This device's broadcast is live!
// The kickflip.io HTML5 / Flash player URL for this stream is:
// stream.getKickflipUrl();
// The raw stream address (.m3u8 file for HLS streams) is:
// stream.getStreamUrl();
}
@Override
public void onBroadcastStop() {
// The user stopped broadcasting.
// The BroadcastActivity will be finished after this call
// completes.
}
@Override
public void onBroadcastError(KickflipException error) {
Log.i("Kickflip" "An error occurred: " + error.getMessage());
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment