Vue.component("http-hls-config-box", { props: ["value", "v-is-location", "v-is-group"], data: function () { let config = this.value if (config == null) { config = { isPrior: false } } let encryptingConfig = config.encrypting if (encryptingConfig == null) { encryptingConfig = { isOn: false, onlyURLPatterns: [], exceptURLPatterns: [] } config.encrypting = encryptingConfig } return { config: config, encryptingConfig: encryptingConfig, encryptingMoreOptionsVisible: false } }, methods: { isOn: function () { return ((!this.vIsLocation && !this.vIsGroup) || this.config.isPrior) }, showEncryptingMoreOptions: function () { this.encryptingMoreOptionsVisible = !this.encryptingMoreOptionsVisible } }, template: `
| 启用HLS加密配置 |
启用后,系统会自动在 |
| 例外URL |
如果填写了例外URL,表示这些URL跳过不做处理。 |
| 限制URL |
如果填写了限制URL,表示只对这些URL进行加密处理;如果不填则表示支持所有的URL。 |