Network 版 (精华区)
发信人: zzn (爱你到内伤), 信区: Network
标 题: mms协议英文资料(12)
发信站: 哈工大紫丁香 (2003年08月23日10:53:54 星期六), 站内信件
07 To Server
Prefix 1 01 00 00 00 - CommandLevel
Prefix 2 ff ff 01 00 - or shows 76 04 00 00 with optional data #
Then structure data below
Start sending file from packet xx. This command is also used for resume
downloads or requesting a lost packet. Also used for seeking by sending a
play point value which seeks to the media time point. Includes media ‘PacketID
Type’ value in pre header and the maximum media stream time.
This command sets the start point within the media using the packet sequence
number and/or the play time point. It can be used to continue a download
session after a previous uncompleted session. Or, it can be used to re-access
a specific lost packet and for seeking during a fast forward or re-wind
operation. Its main use is simply to start the file playing from the
beginning.
8 bytes double precision time in seconds used for seek point in file. 4 bytes
of FF unknown, could be an offset 4 bytes for the start packet sequence number
where ff ff ff ff = begin from start of media.
Note: this value is not valid for version 9 servers, any value here makes no
difference to the start point. 3 bytes for max stream time limit from server.
See * time in mS. 1 byte enable stream time limit flag 4 bytes Media
PacketIDtype - See ~ 4 bytes optional data # like ff ff ff 7f 4 bytes
optional data # like 00 00 00 00 4 bytes optional data # like ff ff ff 7f 4
bytes optional data # like 00 00 00 00
* This value stated in milliseconds is the maximum allowable stream time that
the server will stream for. After this pre-set time, the server will
disconnect regardless how far the file has been streamed.
The purpose of this value is not clear, maybe a safeguard to make sure
streams stop after lost network connection, although the server would time
out anyway due to loss of 1B acknowledgement commands.
Flag = 0x80 means use the limit value, Flag = 0x00 means don’t. A data value
of 00 makes the stream last for as long as the file needs to stream until the
end of file, no limit. A limit value can have up to 4.6 hours of stream = ff
ff ff.
~ This sets the ‘Packet ID type’ value used by the server when sending mms
pre-headers for media packets. This value is echoed back from the server in
the mms pre header itself. Media player increments this value by 1 for every
start/stop operation or session. The value 04 is the value normally found and
is the first value sent.
# Optional data only appears when the client player version is 7.0 or higher.
These optional fields are not yet understood. In this case, maximum allowable
stream time can equal 0 also with flag = 0. It could be that the max stream
time values have been replaced with these optional data fields.
09 To Server
Prefix 1 01 00 00 00 - CommandLevel
Prefix 2 ff ff 01 00
This is sent by Media Player when the Stop button is activated. If Media
Player needs to stop the stream for any reason, it sends this command. The
socket connection is kept open.
0A To Client
Prefix 1 00 00 00 00 - ErrorCode
Prefix 2 04 00 00 00 - reflects the media PacketIDType
Data 00 00 00 00 00 00 00 00 - may be a double precision value
This command is used to indicate an active fast forward / rewind state, while
held down or locked into a seeking mode.
--
如果世界上每个地方都可以看到月亮,
那就让我搬到月亮上去悄悄看你。
※ 来源:·哈工大紫丁香 bbs.hit.edu.cn·[FROM: 202.118.243.49]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:3.430毫秒