Mercurial > hg > Applications > TreeVNC
view src/main/java/jp/ac/u_ryukyu/treevnc/SendSound.java @ 290:c10e0dee7bbb
add READY_SHARE_SOUND msg, add function of receive READY_SHARE_SOUND msg, add sendSound thread.
author | oc |
---|---|
date | Tue, 13 Jan 2015 05:22:53 +0900 |
parents | |
children | a310be14d757 |
line wrap: on
line source
package jp.ac.u_ryukyu.treevnc; /** * Created by OcBookPro on 15/01/13. */ public class SendSound implements Runnable { TreeRFBProto rfb; public SendSound(TreeRFBProto rfb) { this.rfb = rfb; } @Override public void run() { for(;;) { if (rfb.isTreeManager()) { // root version (send packet to other nodes) System.out.println("root : share sound!!\n"); } else { // node version (send packet+RTP to root) System.out.println("client node : share sound!!\n"); } } } }