2 $("#seekSlider").slider({
7 stop: function (event, ui) {
8 $("#currentTime").empty().append(format_time(Math.round((ui.value / 100) * $('#seekSlider').attr('totalLength'))));
13 'val': (ui.value) + '%'
17 sendVLMCmd('control Current seek ' + ui.value);
22 $("#volumeSlider").slider({
27 stop: function (event, ui) {
28 $("#currentVolume").empty().append(ui.value * 2 + "%");
31 'val': Math.round(ui.value * 5.12)
35 $('#buttonStop').click(function () {
36 switch (current_que) {
43 sendVLMCmd('control Current stop');
48 $('#buttonPlay').click(function () {
49 if ($(this).attr('state') == 'stopped') {
50 switch (current_que) {
52 var id = $('.jstree-clicked', '#libraryTree').length > 0 ? $('.jstree-clicked', '#libraryTree').first().parents().first().attr('id').substr(5) : current_id;
59 sendVLMCmd('control Current play');
60 flowplayer("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf");
64 switch (current_que) {
71 sendVLMCmd('control Current pause');
77 $('#buttonFull').click(function () {
79 'command': 'fullscreen'
83 $('#stream_host').val(stream_server);