...
If authentication key and token are set, they will be inclueded included to stream URL
Code Block | ||||
---|---|---|---|---|
| ||||
const getVideoSrc = function(src) { let videoSrc = src; if (validateForm()) { let streamName = getValue('playStream'); streamName = encodeURIComponent(streamName); videoSrc = getValue("urlServer") + '/' + streamName + '/' + streamName + '.m3u8'; let key = getValue('key'); let token = getValue("token"); if (key.length > 0 && token.length > 0) { videoSrc += "?" + key + "=" + token; } } setValue("fullLink", videoSrc); return videoSrc; } |
...