zhanghua
2023-05-30 08c2c3aea346fc8b838cd04918b7864592ac079b
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);