Last active
April 14, 2017 01:44
-
-
Save mikoim/7da6234ef37cfbc47236667d60e81bdb to your computer and use it in GitHub Desktop.
動画配信管理システムからURLを抜くやつ via RTMP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name 動画配信管理システムからURLを抜くやつ(認証なし) via RTMP | |
// @namespace http://dsmsf.doshisha.ac.jp/ | |
// @version 0.1 | |
// @description foo | |
// @author |)05|-|!5|-|4 (_)|\\|!\\/3|25!7`/ | |
// @match http://dsmsf.doshisha.ac.jp/Gateway/contentPlayAction.do?contentId=* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
let a = window.location.href.split('='); | |
alert(`rtmpdump -i 'rtmpt://doshisha.fmsod.stream.ne.jp/doshisha/_definst_/${a[a.length - 1]}/mp4:video1.mp4' --verbose --resume --flv video1.mp4`); | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name 動画配信管理システムからURLを抜くやつ via RTMP | |
// @namespace http://dsmsf.doshisha.ac.jp/ | |
// @version 0.1 | |
// @description foo | |
// @author |)05|-|!5|-|4 (_)|\\|!\\/3|25!7`/ | |
// @match http://dsmsf.doshisha.ac.jp/ContentCube/player.jsp?* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
let a = document.querySelector('object').baseURI.split('='); | |
alert(`rtmpdump -i '${a[a.length - 1]}mp4:video1.mp4' --verbose --resume --flv video1.mp4`); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment