-- If you experience some problems with with the old buggy dkjson version, like in issue #3 -- You need to download the latest version of dkjson until https://code.videolan.org/videolan/vlc/-/merge_requests/3318 is merged. JSON = require "dkjson" -- load additional json routines -- Probe function. function probe() if vlc.access == "http" or vlc.access == "https" then peeklen = 9 s = "" while string.len(s) < 9 do s = string.lower(string.gsub(vlc.peek(peeklen), "%s", "")) peeklen = peeklen + 1 end return s == "