client/annotviz/app/annotsvizview.html
changeset 104 685c5ebc59d0
parent 103 123a611c7903
child 105 25ac8802c189
equal deleted inserted replaced
103:123a611c7903 104:685c5ebc59d0
    26     <script src="/js/libs-annotviz.js"></script>
    26     <script src="/js/libs-annotviz.js"></script>
    27     <script src="/js/annotviz.js"></script>
    27     <script src="/js/annotviz.js"></script>
    28     <script>
    28     <script>
    29 	    var pianorollChannel  = 'PIANOROLL';
    29 	    var pianorollChannel  = 'PIANOROLL';
    30 	    var annotationChannel = 'ANNOT';
    30 	    var annotationChannel = 'ANNOT';
    31 	    var eventCode = 'test_1';
    31 	    var eventCode = 'atelier2_test';
    32 	    var wsUri;
    32 	    var wsUri;
    33 	    if (window.location.protocol === 'file:') {
    33 // 	    if (window.location.protocol === 'file:') {
    34 	        wsUri = 'ws://127.0.0.1:8090/broadcast';
    34 	        wsUri = 'ws://172.16.0.20:8090/broadcast';
    35 	    }
    35 // 	    }
    36 	    else {
    36 // 	    else {
    37 	        wsUri = 'ws://' + window.location.hostname + ':8090/broadcast';
    37 // 	        wsUri = 'ws://' + window.location.hostname + ':8090/broadcast';
    38 	    }
    38 // 	    }
    39 	    wsUriPianoroll = wsUri + '?channel=' + pianorollChannel + '&event_code=' + eventCode;
    39 	    wsUriPianoroll = wsUri + '?channel=' + pianorollChannel + '&event_code=' + eventCode;
    40 	    wsUriAnnotation = wsUri + '?channel=' + annotationChannel + '&event_code=' + eventCode;
    40 	    wsUriAnnotation = wsUri + '?channel=' + annotationChannel + '&event_code=' + eventCode;
    41 	
    41 	
    42 	    var logger = new annotviz.ConsoleLogger(true);
    42 	    var logger = new annotviz.ConsoleLogger(true);
    43 	    
    43