| | |
| | | showArea: { |
| | | type: Boolean, |
| | | default: false |
| | | }, |
| | | hasPoster:{ |
| | | type: Boolean, |
| | | default: true |
| | | } |
| | | }, |
| | | |
| | | computed: { |
| | | poster() { |
| | | return "/images/player/player_poster.gif?t=" + Math.random() |
| | | } |
| | | // poster() { |
| | | // return "/images/player/player_poster.gif?t=" + Math.random() |
| | | // } |
| | | }, |
| | | data() { |
| | | return { |
| | | wfs: {}, |
| | | poster: "/images/player/player_poster.gif?t=" + Math.random(), |
| | | wfsId: 0, |
| | | Camera: new VideoRuleData(), |
| | | showCanvas: true, |
| | |
| | | }, |
| | | watch: { |
| | | rtspUrl: function (newVal, oldVal) { |
| | | console.log("new rstp:::", newVal); |
| | | console.log("new rstp: ", newVal); |
| | | if (newVal !== oldVal) { |
| | | if (this.wfs.config) { |
| | | this.wfs.destroy(); |
| | |
| | | } |
| | | this.$nextTick(() => { |
| | | this.clickStart(); |
| | | this.poster = "/images/player/player_poster.gif?t=" + Math.random() |
| | | }); |
| | | } |
| | | } |