Network 版 (精华区)
发信人: zzn (爱你到内伤), 信区: Network
标 题: mms协议英文资料(09)
发信站: 哈工大紫丁香 (2003年08月23日10:52:49 星期六), 站内信件
Known MMS commands
This is a list of all the commands found to date. Commands are represented by
a single hex byte value as shown below. The actual command byte is located
within the MMS command packet header detailed earlier in this document.
Command packets have data within them that is specific to the command itself.
This means that a command packets’ length will vary, different procedures
need to be applied depending on the command in use and the direction of the
command (server to client or vice-versa) also determine the command data
properties. This complicates matters a little, however, below is a breakdown
of what is known so far. All commands are padded with zeros before sending
over the network. The padding length ensures that the total command length
(including all data) fits into an 8 byte length boundary.
All text strings, unless otherwise stated, are sent as a 16 bit Unicode
string type format.
01 To Server
Prefix 1 f0 f0 f0 f0 - flags (see flags section)
Prefix 2 0b 00 04 00
Then 1c 00 03 00
Then the structure as below
Send the initial connect info including player version no. Client GUID
(random) and the host address being connected to.
This command is sent at the very start of protocol initiation. It sends local
information to the server.
The Unicode data string is made from the following data:
“NSPlayer/7.0.0.1956; {128 bit local client GUID in hex text }; Host:
The.Host.Net” + a null 0x00 + sometimes with a hidden data field showing
more zeros (this seems optional).
Notes:
Client GUID is random, read the section ‘locally generated GUIDs’.
The ‘Host’ field is optional – only used by versions of media player 7.0
or later (see below).
The player version name must start with the value “NSPlayer”, if any other
name of player is sent, the server will automatically send a default movie
called ‘Upgrade Your Player’, regardless of any filename you may request.
This is a 15 second movie telling you how to upgrade.
The values after NSPlayer, can be anything, e.g. a version number like
/7.0.0.1956
Only versions of media player 7.0 or later support a ‘MMS Proxy Server’
option. The ‘Host’ field indicates the actual streaming server domain or IP
address, regardless of whether a proxy is being used or not. A proxy server
can use this host address to then connect to the desired streaming server.
This is why the ‘host’ field does not appear in older versions of media
player – proxy servers are not supported below 7.0.
--
如果世界上每个地方都可以看到月亮,
那就让我搬到月亮上去悄悄看你。
※ 来源:·哈工大紫丁香 bbs.hit.edu.cn·[FROM: 202.118.243.49]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:3.648毫秒