zhanghua
2023-03-20 7b99e3e74e2652e5a0ce75a8afefe3a969b939f7
视频code修改
2个文件已修改
10 ■■■■ 已修改文件
src/views/systemSetting/device/point/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/video/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/systemSetting/device/point/index.vue
@@ -104,11 +104,11 @@
        .catch((err) => this.$message.error(err));
    },
    loadVideo(item) {
      if (item.platResourceId) {
      if (item.code) {
        if (Hls.isSupported()) {
          var video = document.getElementById(item.id);
          var hls = new Hls();
          videoPoint.getVideoPointUrl(item.platResourceId).then((res) => {
          videoPoint.getVideoPointUrl(item.code).then((res) => {
            if (res.code === 0) {
              hls.loadSource(res.data);
              hls.attachMedia(video);
src/views/video/index.vue
@@ -127,11 +127,11 @@
  mounted() {},
  methods: {
    loadVideo(item) {
      if (item.platResourceId) {
      if (item.code) {
        if (Hls.isSupported()) {
          var video = document.getElementById(item.id);
          var hls = new Hls();
          videoPoint.getVideoPointUrl(item.platResourceId).then((res) => {
          videoPoint.getVideoPointUrl(item.code).then((res) => {
            if (res.code === 0) {
              hls.loadSource(res.data);
              hls.attachMedia(video);
@@ -220,7 +220,7 @@
      });
    },
    create(item) {
      if (item.code) {
      if (item.platResourceId) {
        const DHWsInstance = DHWs.getInstance();
        this.ws = DHWsInstance;
        console.log(this.ws);