Skip to main content

360 Degree Camera Mode

Content Authorization

A PlatformAsset for the 360 Degree camera supported content should be constructed with playbackMode = "LIVE360". ​

NameTypeDescription
playbackModePlaybackModePlayback mode of the content
// create asset
let platformAsset: PlatformAsset{
...,
playbackMode : "LIVE360"
}

Playback Auth Response

We can get live360Enabled, live360StartTime, live360EndTime and live360ContentId in playback auth response.

NameTypeDescription
live360StartTimeStringThe start time of the live 360 camera supported content
live360EndTimeStringThe end time of the live 360 camera supported content
live360EnabledBooleanThe boolean to indicate whether live 360 camera is enabled or not
live360ContentIdStringThe content identifier of the live 360 camera supported content
let contentAuthToken = await contentAuthorizer.authorizePlayback(platformAsset);

Setup Heartbeat

To extend support for 360 Degree camera feature, PlayerConfig will now accept couple of additional params.

NameTypeDescription
live360StartTimeStringThe start time of the live 360 camera supported content
live360EndTimeStringThe end time of the live 360 camera supported content
let heartbeatConfiguration: HeartbeatConfig = {
...
live360StartTime: contentAuthToken.live360StartTime,
live360EndTime: contentAuthToken.live360EndTime
}
val playerConfig: PlayerConfig = {
...
heartbeatConfig: heartbeatConfiguration,
}

Listen for stream events

We can get live360Available and live360Unavailable events through streamTimelineEvent of onEventReceived callback in playerListener.

 onEventReceived(streamTimelineEvent: StreamTimelineEvent, action: Action, streamTimelineMetadata?: StreamTimelineMetadata) {
switch (streamTimelineEvent) {
case "live360Available":
// Show the 360 button
break;
case "live360Unavailable":
// Hide the 360 button
break;
}
},