Created
December 29, 2014 23:11
-
-
Save oleksii-zavrazhnyi/41225ef43176f7582078 to your computer and use it in GitHub Desktop.
vlc
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
</head> | |
<body> | |
<form> | |
<input type="text" id="url"/> <button id="send">play</button> | |
</form> | |
<script type="text/javascript"> | |
$(function(){ | |
$('#send').click(function(){ | |
var url = $('#url').val(); | |
$.ajax({ | |
url: 'http://:[email protected]:8080/requests/status.xml?command=in_play&input=' + encodeURIComponent(url), | |
beforeSend: function(xhr) { | |
// xhr.setRequestHeader("Authorization", "Basic " + btoa(":password")); | |
xhr.setRequestHeader("Authorization", "Basic OnBhc3N3b3Jk"; | |
} | |
}); | |
}) | |
}) | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment