<template>
  <div>
    <Player @close="$emit('close')" :url="url" :name="name" label="舱内" />
  </div>
</template>

<script>
import Player from "../components/player";
import { mapState } from "vuex";

export default {
  name: "InnerPlayer",
  components: { Player },
  data() {
    return {};
  },
  computed: {
    ...mapState("MMCFlightControlCenter/hangar", ["hangar"]),
    name() {
      return `${this.hangar?.name || ""}`;
    },
    url() {
      let find = this.hangar?.streamConfiguration
          ?.find((v) => v.urlType === 1)
      return find?.originalUrl || find?.lowLatencyUrl || find?.fluencyUrl || '';
    },
  },
};
</script>

<style lang="scss" scoped>
</style>