+
+// ---------------------------------------------------------------------------
+
+function buildLiveAPAttributes (video: MVideoAP) {
+ if (!video.isLive) {
+ return {
+ isLiveBroadcast: false,
+ liveSaveReplay: null,
+ permanentLive: null,
+ latencyMode: null
+ }
+ }
+
+ return {
+ isLiveBroadcast: true,
+ liveSaveReplay: video.VideoLive.saveReplay,
+ permanentLive: video.VideoLive.permanentLive,
+ latencyMode: video.VideoLive.latencyMode
+ }
+}