Download presentation
Presentation is loading. Please wait.
1
Project I : RTP Speaker : Jiun-Wei Chiu Advisor : Prof. Shun-Ren Yang Date : Oct. 9, 2008
2
2 Introduction RTP : A Transport Protocol for Real-Time Application RFC 1889 RTP - Real-Time Transport Protocol RTP over UDP A sequence number A time stamp for synchronized play-out
3
3 RTP Project Goal 了解如何利用 RTP 在網路上傳送語音封包 加深對 RTP 封包的基本格式的認識 Task Trace code of SimRTP Modify code Requirement Talk to each other Assign local and Remote RTP port
4
4 cclRTP 處理 RTP 的傳送與接收 cclRtp.h 、 cclRtp.c 、 rtp.h 、 rtp.c 處理聲音的輸出入 WavInOut.h 、 WavInOut.c 將 RTP 與聲音的輸出入結合,並建立到對方的 RTP 連線 SimRTPDlg.h 、 SimRTPDlg.c
5
5 Experiment steps 1. 下載 SimRTP.zip and document.doc 硬體需求 : 音效卡、喇叭、麥克風、區域網路、 網路卡、 IP 2. CSimRTPDlg::CSimRTPDlg 中加入 cclRTPStartup(2) 做 RTP 的一些物件初始化 設定最大 channel 數為 2 3. RTPOpenPort() 開啟 RTP port
6
6 Experiment steps (cont.) 4. 在 void CSimRTPDlg::OnOK() 中先把 WavIO 關閉,加入 RTPPeerConnect(ConnectIP,ConnectPort) 將 RTP 連線到對方電腦 IP 為 ConnectIP port 為 ConnectPort( 這裡內定為 9000) 5. 之後開啟聲音的 IO ,即可以開始傳送 RTP
7
7 Experiment steps (cont.) 程式執行後如下 輸入對方的 IP address
8
8 Example A B 輸入 B 的 IP address 和 port 輸入 A 的 IP address 和 port 輸入 A 的 port 輸入 B 的 port Talk to each other
9
9 Example (cont.) A B Talk to each other
10
10 Requirement Talk to each other (70%) Assign local and Remote RTP port (20%) Report (10%)
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.