# TScenarioRunResponse:
Features {
  Intent: "alice.music.fm_radio_play"
}
Version: "trunk@******"
ContinueArguments {
  [type.googleapis.com/NAlice.NHollywoodFw.TProtoHwSceneCCAArguments] {
    ScenarioArgs {
      [type.googleapis.com/google.protobuf.Empty] {
      }
    }
    ProtoHwScene {
      SceneArgs {
        Args {
          [type.googleapis.com/NAlice.NHollywoodFw.NMusic.TMusicScenarioSceneArgsFmRadio] {
            GeneralRequest {
            }
            RequestStatus: OK
            CommonArgs {
              AccountStatus {
                Uid: "1083955728"
              }
            }
          }
        }
        SceneName: "fm_radio"
      }
      RunFeatures {
        Intent: "alice.music.fm_radio_play"
      }
    }
  }
}

# TScenarioContinueResponse:
ResponseBody {
  Layout {
    Cards {
      Text: "Включаю радио \"Максимум\"."
    }
    OutputSpeech: "Включаю радио \"Максимум\"."
    Directives {
      AudioPlayDirective {
        Name: "music"
        Stream {
          Id: "maximum"
          Url: "https://strm.yandex.ru/fm/fm_maximum/fm_maximum0.m3u8"
          StreamFormat: HLS
          ExpiringAtMs: 18446744073709551615
        }
        AudioPlayMetadata {
          Title: "Максимум"
          ArtImageUrl: "avatars.mds.yandex.net/get-music-misc/70850/maximum-225/%%"
          GlagolMetadata {
            MusicMetadata {
              Id: "maximum"
              Type: FmRadio
              Shuffled: false
              RepeatMode: None
            }
          }
        }
        Callbacks {
          OnPlayStartedCallback {
            Name: "music_thin_client_on_started"
            IgnoreAnswer: true
            Payload {
              fields {
                key: "events"
                value {
                  list_value {
                    values {
                      struct_value {
                        fields {
                          key: "playAudioEvent"
                          value {
                            struct_value {
                              fields {
                                key: "context"
                                value {
                                  string_value: "fm_radio"
                                }
                              }
                              fields {
                                key: "contextItem"
                                value {
                                  string_value: "maximum"
                                }
                              }
                              fields {
                                key: "from"
                                value {
                                  string_value: "alice-on_demand-fm_radio-fm_radio"
                                }
                              }
                              fields {
                                key: "playId"
                                value {
                                  string_value: "Y1Jb9gkE36DA"
                                }
                              }
                              fields {
                                key: "trackId"
                                value {
                                  string_value: "maximum"
                                }
                              }
                              fields {
                                key: "uid"
                                value {
                                  string_value: "1083955728"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
          OnPlayStoppedCallback {
            Name: "music_thin_client_on_stopped"
            IgnoreAnswer: true
            Payload {
              fields {
                key: "events"
                value {
                  list_value {
                    values {
                      struct_value {
                        fields {
                          key: "playAudioEvent"
                          value {
                            struct_value {
                              fields {
                                key: "context"
                                value {
                                  string_value: "fm_radio"
                                }
                              }
                              fields {
                                key: "contextItem"
                                value {
                                  string_value: "maximum"
                                }
                              }
                              fields {
                                key: "from"
                                value {
                                  string_value: "alice-on_demand-fm_radio-fm_radio"
                                }
                              }
                              fields {
                                key: "playId"
                                value {
                                  string_value: "Y1Jb9gkE36DA"
                                }
                              }
                              fields {
                                key: "trackId"
                                value {
                                  string_value: "maximum"
                                }
                              }
                              fields {
                                key: "uid"
                                value {
                                  string_value: "1083955728"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
          OnPlayFinishedCallback {
            Name: "music_thin_client_on_finished"
            IgnoreAnswer: true
            Payload {
            }
          }
          OnFailedCallback {
            Name: "music_thin_client_on_failed"
            IgnoreAnswer: true
            Payload {
              fields {
                key: "events"
                value {
                  list_value {
                    values {
                      struct_value {
                        fields {
                          key: "playAudioEvent"
                          value {
                            struct_value {
                              fields {
                                key: "context"
                                value {
                                  string_value: "fm_radio"
                                }
                              }
                              fields {
                                key: "contextItem"
                                value {
                                  string_value: "maximum"
                                }
                              }
                              fields {
                                key: "from"
                                value {
                                  string_value: "alice-on_demand-fm_radio-fm_radio"
                                }
                              }
                              fields {
                                key: "playId"
                                value {
                                  string_value: "Y1Jb9gkE36DA"
                                }
                              }
                              fields {
                                key: "trackId"
                                value {
                                  string_value: "maximum"
                                }
                              }
                              fields {
                                key: "uid"
                                value {
                                  string_value: "1083955728"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
        ScenarioMeta {
          key: "content_id"
          value: "CAYSB21heGltdW0="
        }
        ScenarioMeta {
          key: "owner"
          value: "music"
        }
        ScenarioMeta {
          key: "queue_item"
          value: "CgdtYXhpbXVtGhDQnNCw0LrRgdC40LzRg9C8MjphdmF0YXJzLm1kcy55YW5kZXgubmV0L2dldC1tdXNpYy1taXNjLzcwODUwL21heGltdW0tMjI1LyUlOksKNWh0dHBzOi8vc3RybS55YW5kZXgucnUvZm0vZm1fbWF4aW11bS9mbV9tYXhpbXVtMC5tM3U4EJi12Yb8LRgBIP///////////wFKDFkxSmI5Z2tFMzZEQVD/////B4IBCGZtX3JhZGlvqgELCAYSB21heGltdW26AV0KB21heGltdW0SNWh0dHBzOi8vc3RybS55YW5kZXgucnUvZm0vZm1fbWF4aW11bS9mbV9tYXhpbXVtMC5tM3U4GAEgASoFMTAzLjcxAAAA4Bynzz86ByM0MDQwNDA="
        }
        ScreenType: Music
      }
    }
  }
  State {
    [type.googleapis.com/NAlice.NHollywoodFw.TProtoHwFramework] {
      LastTimeUpdateStorage: 1579488271002
      ScenarioState {
        [type.googleapis.com/NAlice.NHollywood.NMusic.TScenarioState] {
          Queue {
            PlaybackContext {
              ContentId {
                Type: FmRadio
                Id: "maximum"
              }
              ContentInfo {
              }
              BiometryOptions {
                UserId: "1083955728"
              }
            }
            History {
              TrackId: "maximum"
              Title: "Максимум"
              CoverUrl: "avatars.mds.yandex.net/get-music-misc/70850/maximum-225/%%"
              UrlInfo {
                Url: "https://strm.yandex.ru/fm/fm_maximum/fm_maximum0.m3u8"
                UrlTime: 1579488271000
                UrlFormat: UrlFormatHls
                ExpiringAtMs: 18446744073709551615
              }
              PlayId: "Y1Jb9gkE36DA"
              DurationMs: 2147483647
              Type: "fm_radio"
              OriginContentId {
                Type: FmRadio
                Id: "maximum"
              }
              FmRadioInfo {
                FmRadioId: "maximum"
                FmRadioStreamUrl: "https://strm.yandex.ru/fm/fm_maximum/fm_maximum0.m3u8"
                Active: true
                Available: true
                Frequency: "103.7"
                Score: 0.24728737771511078
                Color: "#404040"
              }
            }
            CurrentContentLoadingState {
              FmRadio {
              }
            }
            Config {
              PageSize: 20
              HistorySize: 10
              ExplicitFilteredOutWarningRate: 0.25
              FindTrackIdxPageSize: 10000
            }
            FiltrationMode: Moderate
          }
          BiometryUserId: "1083955728"
        }
      }
    }
  }
  AnalyticsInfo {
    Intent: "personal_assistant.scenarios.radio_play"
    Actions {
      Id: "radio_play"
      Name: "radio_play"
      HumanReadable: "Включается радио \"Максимум\""
    }
    Events {
      MusicMonitoringEvent {
        BatchOfTracksRequested: true
      }
    }
    ProductScenarioName: "radio"
    NlgRenderHistoryRecords {
      TemplateName: "fm_radio"
      PhraseName: "render_result"
      Language: L_RUS
    }
  }
  StackEngine {
    Actions {
      NewSession {
      }
    }
    Actions {
      ResetAdd {
        Effects {
          Callback {
            Name: "music_thin_client_next"
          }
        }
        RecoveryAction {
          Callback {
            Name: "music_thin_client_recovery"
            Payload {
              fields {
                key: "playback_context"
                value {
                  struct_value {
                    fields {
                      key: "content_id"
                      value {
                        struct_value {
                          fields {
                            key: "id"
                            value {
                              string_value: "maximum"
                            }
                          }
                          fields {
                            key: "type"
                            value {
                              string_value: "FmRadio"
                            }
                          }
                        }
                      }
                    }
                    fields {
                      key: "content_info"
                      value {
                        struct_value {
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
Version: "trunk@******"
