/Users/lyon/j4p/src/net/multicast/MultiMediaMultiCasting.java
|
1 package net.multicast;
2
3 import sound.audioDigitizer.MainAudioMcastXmitter;
4 import sound.audioDigitizer.StreamingAudioMulticastRcvr;
5 import video.BroadcastMain;
6 import gui.In;
7
8 /**
9 * DocJava, Inc.
10 * http://www.docjava.com
11 * Programmer: dlyon
12 * Date: Dec 14, 2004
13 * Time: 3:47:00 PM
14 */
15 public class MultiMediaMultiCasting {
16 public static void main(String[] args) {
17 boolean b = In.getBoolean("do you want to xmit?");
18 if (b) xmitter();
19 else recvr();
20 }
21
22 private static void recvr() {
23 ChatMain cm = new ChatMain();
24 StreamingAudioMulticastRcvr
25 s = new StreamingAudioMulticastRcvr();
26 s.start();
27 BroadcastMain bc = new BroadcastMain();
28 }
29
30 private static void xmitter() {
31 ChatMain cm = new ChatMain();
32 MainAudioMcastXmitter sa = new MainAudioMcastXmitter();
33 sa.start();
34 BroadcastMain bc = new BroadcastMain();
35 }
36 }
37