browser - Reading external file using javascript ajax -
is possible read m3u8 file(or other text file example) external source via http request of ajax? , not using server side(such node.js or c#) request file. file sitting in http : // ... / file.m3u8 give thanks you:)
sure, can utilize xmlhttprequest read files local javascript, example:
var request = new xmlhttprequest(); request.open('get', '../file.m3u8', false); request.send(); console.log('file contents: ' + request.responsetext);
full details on xmlhttprequest on mozilla website.
javascript browser request
No comments:
Post a Comment