var vlc=document.getElementById("vlc"); varid=vlc.playlist.add("rtsp://192.168.1.18:8554/crazystone.ts");
vlc.playlist.playItem(id); var seek_time = 1000 * 50; var volume_number = 10;
function volume_up() {
alert("Before up is "+ vlc.audio.volume);
if((vlc.audio.volume + volume_number)<= 200) {
vlc.audio.volume += volume_number; }
else {
vlc.audio.volume = 200; }
alert("After up is "+ vlc.audio.volume); }
function volume_down() {
alert("Before down is "+ vlc.audio.volume);
if((vlc.audio.volume - volume_number)>= 0) {
vlc.audio.volume -= volume_number; }
else {
vlc.audio.volume = 0; }
alert("After down is "+ vlc.audio.volume); }
function onPause() {
vlc.playlist.togglePause(); }
function onStop() {
vlc.playlist.stop(); }
function onPlay() {
vlc.input.rate = 1.0 }
function onFullscreen() {
vlc.video.toggleFullscreen(); }