In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article shows you what is the result message, the content is concise and easy to understand, can definitely brighten your eyes, through the detailed introduction of this article, I hope you can get something.
After the rtmp client sends a connect message, rtmp server sends a _ result message to the client, notifying the client of the connection status (success/fail). Let's talk about the _ result message in more detail.
1. Overview
As an old rule, let's first take a look at the grab packet of a _ result message.
As you can see, a _ result message consists of four parts, type identification and transaction ID,properties,response related information, all of which are encoded in AMF format. Let's look at them one by one:
two。 Detailed explanation
Type identification
A typical AMF combination of type + length + value, not to mention much, _ result represents the message type.
Transaction ID
TranscationID, encoded in AMF0 format, 0x00 for numeric format, followed by 8 bytes for ID, the ID is always 1 in response to connect messages.
Properties
You can see that the properties contains two Object types of data, one fmsVer represents the version information of the FMS server (in this case, FMS/3,0,1123), and the other capabilites represents the capacity, with a value of 31. There is no need to dwell on the organization format of Object object data in RTMP Body, but you can refer to the previous detailed explanation of connect messages.
Response related information
By looking at the grab file, we can see that there are many responses about connect connections, organized as object types. There is a level, in this case status, which means the status of the connection; code, which represents the code, can be understood as some kind of number, in this case NetConnection.Connect.Succes;description can be understood as a description of code, and here it is' Connection succeeded'. The combination of code and description indicates that the connection is successful; there is also an objectEncoding field indicating how object is encoded (AMF0 or AMF3). A value of 0 indicates that AMF0 encoding is used. The client receives _ result and gets the connection status as Connection succeeded. In this way, the establishment of the connection is basically complete, and then the flow-related operations can be carried out. What is the result message above? have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.