pt-dplayer / sw.js
wsj1995's picture
Update sw.js
77c29f9 verified
raw
history blame contribute delete
455 Bytes
self.importScripts('/hls-proxy.js')
// uncomment code below to customize HlsProxy config, see https://www.swarmcloud.net/web-hls/API#hlsproxy-api
// new HlsProxy({
// insertTimeOffsetTag: true,
// allowedPlaylistSuffix: ['m3u8'], // add other playlist suffix like 'html' if your playlist url is xxx.html
// allowedMediaFiles: ['ts', 'mp4', 'm4s', 'fmp4'], // add other media file suffix like 'txt' if your media file url is xxx.txt
// })