java.lang.Object | |
↳ | io.kickflip.sdk.Kickflip |
This is a top-level manager class for all the fundamental SDK actions. Herer you can register your Kickflip account credentials, start a live broadcast or play one back.
setup(android.content.Context, String, String)
. These tokens are available in your kickflip
account dashboard.
setup(android.content.Context, String, String)
setSessionConfig(io.kickflip.sdk.av.SessionConfig)
startBroadcastActivity(android.app.Activity, io.kickflip.sdk.av.BroadcastListener)
BroadcastActivity
will present a standard camera UI with controls
for starting and stopping the broadcast. When the broadcast is stopped, BroadcastActivity will finish
after notifying onBroadcastStop()
.
setSessionConfig(io.kickflip.sdk.av.SessionConfig)
before
each call to startBroadcastActivity(android.app.Activity, io.kickflip.sdk.av.BroadcastListener)
.
Here's an example of how to build a SessionConfig
with SessionConfig.Builder
:
SessionConfig config = new SessionConfig.Builder(mRecordingOutputPath)
 .withTitle(Util.getHumanDateString())
 .withDescription("Example Description")
 .withVideoResolution(1280, 720)
 .withVideoBitrate(2 * 1000 * 1000)
 .withAudioBitrate(192 * 1000)
 .withAdaptiveStreaming(true)
 .withVerticalVideoCorrection(true)
 .withExtraInfo(extraDataMap)
 .withPrivateVisibility(false)
 .withLocation(true)
 .build();
Kickflip.setSessionConfig(config);
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Convenience method for attaching the current reverse geocoded device location to a given
Stream | |||||||||||
Create a new instance of the KickflipApiClient if one hasn't
yet been created, or the provided API keys don't match
the existing client.
| |||||||||||
Create a new instance of the KickflipApiClient if one hasn't
yet been created, or the provided API keys don't match
the existing client.
| |||||||||||
Get the provided Kickflip Client Key
| |||||||||||
Get the provided Kickflip Client Secret
| |||||||||||
Get the
BroadcastListener to be notified on broadcast events. | |||||||||||
Given a Kickflip.io url, return the stream id.
| |||||||||||
Return whether the given Uri belongs to the kickflip.io authority.
| |||||||||||
Returns whether the current device is running Android 4.4, KitKat, or newer
KitKat is required for certain Kickflip features like Adaptive bitrate streaming
| |||||||||||
Check whether credentials required for broadcast are provided
| |||||||||||
Set a
BroadcastListener to be notified on broadcast events. | |||||||||||
Set the
SessionConfig responsible for configuring this broadcast. | |||||||||||
Register with Kickflip, creating a new user identity per app installation.
| |||||||||||
Register with Kickflip, creating a new user identity per app installation.
| |||||||||||
Start
BroadcastActivity . | |||||||||||
Start MediaPlayerActivity.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Create a new instance of the KickflipApiClient if one hasn't yet been created, or the provided API keys don't match the existing client.
context | the context of the host application |
---|---|
callback | an optional callback to be notified with the Kickflip user corresponding to the provided API keys. |
Create a new instance of the KickflipApiClient if one hasn't yet been created, or the provided API keys don't match the existing client.
context | the context of the host application |
---|
Get the provided Kickflip Client Key
Get the provided Kickflip Client Secret
Get the BroadcastListener
to be notified on broadcast events.
Given a Kickflip.io url, return the stream id.
e.g: https://kickflip.io/39df392c-4afe-4bf5-9583-acccd8212277/ returns "39df392c-4afe-4bf5-9583-acccd8212277"uri | the uri to test |
---|
Return whether the given Uri belongs to the kickflip.io authority.
uri | uri to test |
---|
Returns whether the current device is running Android 4.4, KitKat, or newer KitKat is required for certain Kickflip features like Adaptive bitrate streaming
Check whether credentials required for broadcast are provided
Set a BroadcastListener
to be notified on broadcast events.
listener | a BroadcastListener
|
---|
Set the SessionConfig
responsible for configuring this broadcast.
config | the SessionConfig responsible for configuring this broadcast.
|
---|
Register with Kickflip, creating a new user identity per app installation.
context | the host application's Context |
---|---|
key | your Kickflip Client Key |
secret | your Kickflip Client Secret |
cb | A callback to be invoked when Kickflip user credentials are available. |
KickflipApiClient
used to perform actions on behalf of
a User
.
Register with Kickflip, creating a new user identity per app installation.
context | the host application's Context |
---|---|
key | your Kickflip Client Key |
secret | your Kickflip Client Secret |
KickflipApiClient
used to perform actions on behalf of a
User
.
Start BroadcastActivity
. This Activity
facilitates control over a single live broadcast.
setup(android.content.Context, String, String)
or
setup(android.content.Context, String, String, io.kickflip.sdk.api.KickflipCallback)
.host | the host android.app.Activity initiating this action |
---|---|
listener | an optional BroadcastListener to be notified on
broadcast events
|
Start MediaPlayerActivity. This Activity facilitates playing back a Kickflip broadcast.
Must be called aftersetup(android.content.Context, String, String)
or
setup(android.content.Context, String, String, io.kickflip.sdk.api.KickflipCallback)
.host | the host Activity initiating this action |
---|---|
streamUrl | a path of format https://kickflip.io/ |
newTask | Whether this Activity should be started as part of a new task. If so, when this Activity finishes the host application will be concluded. |