2 $( "#seekSlider" ).slider({
7 stop: function( event, ui ) {
8 $( "#currentTime" ).empty().append( format_time(Math.round((ui.value/100)*$('#seekSlider').attr('totalLength'))) );
11 sendCommand({'command':'seek','val':Math.round((ui.value/100)*$('#seekSlider').attr('totalLength'))});
14 sendVLMCmd('control Current seek '+ui.value);
19 $( "#volumeSlider" ).slider({
24 stop: function( event, ui ) {
25 $( "#currentVolume" ).empty().append( ui.value+"%" );
28 'val':Math.round(ui.value*5.12)
32 $('#buttonStop').click(function(){
35 sendCommand({'command' : 'pl_stop'})
38 sendVLMCmd('control Current stop');
43 $('#buttonPlay').click(function(){
44 if($(this).attr('state')=='stopped'){
47 var id = $('.jstree-clicked','#libraryTree').length>0 ? $('.jstree-clicked','#libraryTree').first().parents().first().attr('id').substr(5) : current_id;
48 sendCommand({'command':'pl_play','id':id});
51 sendVLMCmd('control Current play');
52 flowplayer("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf");
58 sendCommand({'command':'pl_pause'});
61 sendVLMCmd('control Current pause');
67 $('#buttonFull').click(function(){
68 sendCommand({'command':'fullscreen'});
71 $('#stream_host').val(stream_server);