Network 版 (精华区)
发信人: zzn (爱你到内伤), 信区: Network
标 题: mms协议英文资料(11)
发信站: 哈工大紫丁香 (2003年08月23日10:53:41 星期六), 站内信件
06 To Client
Prefix 1 00 00 00 00 - ErrorCode
Prefix 2 01 00 00 00
Then structure as below
Reply from filename and path request, includes file data like number of
packets, the packet length and the file play time. The data in the 06 command
is similar to the data included in the ASF file header.
Once the media has been located on the server, details of the media stream
and its packets are returned here. Below is a break down of what is known of
its structure.
This is the structure of the 06 command, after the prefix fields
01 00 00 00 Result flags – see note below 00 00 00 00 00 00 00 00 00 00 xx
yy broadcast flags: see # below Tt tt tt tt tt tt tt tt double precision file
Time point, see notes Ll ll ll ll total pre-recorded media length in seconds,
live = 0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Pp pp pp pp packet
length used in media in bytes Nn nn nn nn total number of packets in media,
live = 0xffffffff or 0x00 00 00 00 00 Ss ss ss ss highest streaming bit rate
value, see ~ Hh hh hh hh header size in bytes, this is the complete header
size Zeros 40 bytes of zero data follow until end of struct
Time point:
A double precision value fixed when this is a Live stream:
0x48 0xaf 0xbc 0x9a 0xf2 0xd7 0x7a 0xbe which is equal to: -1 E -7 in
decimal, a small negative value indicating no time point is available during
a live stream
Else it shows the total file length in seconds + 3.6. This can sometimes show
the media total length.
~ Highest available stream rate value. This is stated in bits per second and
represents the highest video stream rate in the MBR object summed with the
audio bit rate. This value is probably used by media player to determine if
it can handle the maximum rate using its pre set modem/network bandwidth. If
not, command 0x33 would then reduce the MBR selection to a lower rate. Note
that if no MBR object exists, this value is equal to the total bandwidth
variable in the ASF header File Object.
# Broadcast flags:
where xx = :
00; when this is a live broadcast, and it can indicate there is no video
stream available (audio only).
80; shows video is available.
and yy = :
01; this is a pre-recorded broadcast
02; this is a live broadcast
42; this is a presentation which includes a script command – like a popup
image or banner.
Result Flags:
This shows the result of a previous file request (0x05 command) or
authentication request (0x1a).
01 = Media file name and path was accepted
02 = Authentication for this media was accepted
Negative values like 0xffffffff = error condition, like file not found or
other failure.
Note: It has been seen that if the server version is v 9.0, the ‘number of
packets’ field can show 0x00 even when this is a pre-recorded media file.
Also, the file cannot be resumed in this case, command 07 start packet values
do not work. This field has been disabled for v9 servers.
--
既然选择了远方,就让我们风雨兼程吧
人生最快乐的事 莫过于
有了目标,并为之奋斗!
※ 来源:·哈工大紫丁香 bbs.hit.edu.cn·[FROM: 202.118.243.49]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:2.269毫秒