PCDVD數位科技討論區

PCDVD數位科技討論區 (https://www.pcdvd.com.tw/index.php)
-   VIVO討論區 (數位機上盒) (https://www.pcdvd.com.tw/forumdisplay.php?f=15)
-   -   適合Media Player的VOD server?? (https://www.pcdvd.com.tw/showthread.php?t=685145)

cmwang 2007-01-03 08:15 AM

適合Media Player的VOD server??
 
不知要貼在哪裡,不過因為跟VIVO勉強扯得上關係,就貼在這裡好了:ase....

鵝最近試著拿VLC當VOD server,用VLC當client時client-server間的溝通大致如下....

client:
OPTIONS rtsp://192.168.1.179/test1 RTSP/1.0
CSeq: 1
User-Agent: VLC media player (LIVE555 Streaming Media v2005.11.10)

server:
RTSP/1.0 200 Ok
Cseq: 1
Server: VLC Server
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE
Content-Length: 0

client:
DESCRIBE rtsp://192.168.1.179/test1 RTSP/1.0
CSeq: 2
Accept: application/sdp
User-Agent: VLC media player (LIVE555 Streaming Media v2005.11.10)

server:
RTSP/1.0 200 OK
Content-type: application/sdp
Server: VLC Server
Content-Length: 311
Cseq: 2
Cache-Control: no-cache

v=0
o=- 1167710005492105 3 IN IP4 192.168.1.179
t=0 0
a=tool:vlc 0.8.5
c=IN IP4 0.0.0.0
a=range:npt=0-4304.195
m=video 0 RTP/AVP 32
a=rtpmap:32 MPV/90000
a=control:rtsp://192.168.1.179:554/test1/trackID=0
m=audio 0 RTP/AVP 14
a=rtpmap:14 MPA/90000
a=control:rtsp://192.168.1.179:554/test1/trackID=1

client:
SETUP rtsp://192.168.1.179:554/test1/trackID=0 RTSP/1.0
CSeq: 3
Transport: RTP/AVP;unicast;client_port=32780-32781
User-Agent: VLC media player (LIVE555 Streaming Media v2005.11.10)

server:
RTSP/1.0 200 OK
Transport: RTP/AVP/UDP;client_port=32780-32781
Server: VLC Server
Content-Length: 0
Cseq: 3
Cache-Control: no-cache
Session: 922799102

client:
SETUP rtsp://192.168.1.179:554/test1/trackID=1 RTSP/1.0
CSeq: 4
Transport: RTP/AVP;unicast;client_port=32782-32783
Session: 922799102
User-Agent: VLC media player (LIVE555 Streaming Media v2005.11.10)

server:
RTSP/1.0 200 OK
Transport: RTP/AVP/UDP;client_port=32782-32783
Server: VLC Server
Content-Length: 0
Cseq: 4
Cache-Control: no-cache
Session: 922799102

client:
PLAY rtsp://192.168.1.179/test1 RTSP/1.0
CSeq: 5
Session: 922799102
Range: npt=0.000-
User-Agent: VLC media player (LIVE555 Streaming Media v2005.11.10)

server:
RTSP/1.0 200 OK
Server: VLC Server
Content-Length: 0
Cseq: 5
Cache-Control: no-cache
Session: 922799102;timeout=5

client:
TEARDOWN rtsp://192.168.1.179/test1 RTSP/1.0
CSeq: 6
Session: 922799102
User-Agent: VLC media player (LIVE555 Streaming Media v2005.11.10)

server:
RTSP/1.0 200 OK
Server: VLC Server
Content-Length: 0
Cseq: 6
Cache-Control: no-cache
Session: 922799102;timeout=5

看來大致沒啥問題,但client換成Windows Media Player時就不work了:ase....

client:
DESCRIBE rtsp://192.168.1.179/test1 RTSP/1.0
User-Agent: WMPlayer/9.0.0.2980 guid/3300AD50-2C39-46C0-AE0A-893474423475
Accept: application/sdp
Accept-Charset: UTF-8, *;q=0.1
X-Accept-Authentication: NTLM, Digest, Basic
Accept-Language: zh-TW, *;q=0.1
CSeq: 1
Supported: com.microsoft.wm.srvppair,com.microsoft.wm.sswitch,com.microsoft.wm.eosmsg,com.microsoft.wm.predstrm

server:
RTSP/1.0 200 OK
Content-type: application/sdp
Server: VLC Server
Content-Length: 311
Cseq: 1
Cache-Control: no-cache

v=0
o=- 1167710005492105 3 IN IP4 192.168.1.179
t=0 0
a=tool:vlc 0.8.5
c=IN IP4 0.0.0.0
a=range:npt=0-4304.195
m=video 0 RTP/AVP 32
a=rtpmap:32 MPV/90000
a=control:rtsp://192.168.1.179:554/test1/trackID=0
m=audio 0 RTP/AVP 14
a=rtpmap:14 MPA/90000
a=control:rtsp://192.168.1.179:554/test1/trackID=1

如此重複數次後,Media Player便出現server端不支援的訊息:ase ....

看來是M$ Media Player對server端的實作有特殊的"癖好":think: ....請問一下有沒有網友知道除了M$自家的Windows Media service以外,還有能"伺候"Media Player的VOD server嗎:confused: :confused: ....


所有的時間均為GMT +8。 現在的時間是10:56 PM.

vBulletin Version 3.0.1
powered_by_vbulletin 2025。