Skip to content

Instantly share code, notes, and snippets.

@jeasonstudio
Created June 17, 2019 13:52
Show Gist options
  • Save jeasonstudio/9aa494e6fa852fd9dfbe7821af1d4cb6 to your computer and use it in GitHub Desktop.
Save jeasonstudio/9aa494e6fa852fd9dfbe7821af1d4cb6 to your computer and use it in GitHub Desktop.
javascript: (function() {
let liveInfo = window.hyPlayerConfig.stream.data[0].gameStreamInfoList;
let liveUrl = `${liveInfo[0].sHlsUrl}/${liveInfo[0].sStreamName}.m3u8`;
window.open(`iina://weblink?url=${encodeURIComponent(liveUrl)}`);
window.close();
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment