| 1 | package cz.vutbr.feec.session.rtprtcp; |
| 2 | |
| 3 | import cz.vutbr.feec.session.rtprtcp.internal.SessionType; |
| 4 | |
| 5 | public class ManualConfigSessionExample { |
| 6 | public static void main(String[] args) throws InterruptedException { |
| 7 | Config cfg = new Config(); |
| 8 | cfg.setBandwidthAudio(1000*1000); |
| 9 | cfg.setCNAME("AudioSession"); |
| 10 | cfg.setBandwidthAudio(1024*1024); |
| 11 | cfg.setMemberType(SessionType.RECEIVER); |
| 12 | cfg.setSSMPortAudio(6000); |
| 13 | cfg.setSSMSourceIpAddress("147.229.146.241"); |
| 14 | cfg.setSSMGroupIpAddress("232.1.1.1"); |
| 15 | cfg.setFeedbackInPortAudio(9003); |
| 16 | cfg.setFeedbackOutPortAudio(9004); |
| 17 | |
| 18 | AudioSession audioSess = new AudioSession(cfg, "AudioSession", 5); |
| 19 | audioSess.start(); |
| 20 | Thread.sleep(1000); |
| 21 | audioSess.stopThread(); |
| 22 | } |
| 23 | } |