High-efficiency streaming media playing method and device
A playback method and streaming media technology, applied in the field of network communication, can solve problems such as increasing the cost of streaming media players, achieve the effect of reducing the number of system IO operations, reducing the number of allocations, and realizing fast interaction
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0041] refer to figure 1 , which shows the flow of the first embodiment of the high-efficiency streaming media playback method of the present invention, specifically including the following steps:
[0042] S101: Establish a connection with the streaming media server;
[0043] Send a connection request according to the communication protocol name of the streaming media server; if the connection fails, then judge whether the streaming media server address contains a connection port parameter, if so, try to establish a connection with other streaming protocol connection ports in turn; if the connection still fails, Try to repeat the above connection process with other streaming media communication protocols that do not include the name of this communication protocol in turn; among them, streaming media communication protocols include RTSP, HTTP and MMS protocols, etc.; in the above connection establishment steps, as long as the connection is successful, then The disconnection pr...
Embodiment 2
[0058] In this preferred embodiment, processes such as connection establishment, stream protocol analysis, ring memory management, playback pause control, dynamic buffer management, and UI user interaction management are included. in:
[0059] 1. Establish a connection process, specifically including:
[0060] S201: According to the protocol name, the stream reading module matching the protocol name is preferentially used for connection;
[0061] When establishing a connection, it is preferable to set the connection to a non-blocking mode, and set the timeout to 10s.
[0062] S202: Determine whether the connection establishment is successful? If yes, go to step S211; otherwise, go to step S203;
[0063] S203: Judging that the streaming media server address has a port (Port), if so, turn to step S204; otherwise, turn to step S206;
[0064] S204: Save the resolved ip address of the domain name connected for the first time, and try to connect to other recognized stream protoc...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com