[go: up one dir, main page]

CN116647543A - Optimization method based on android using WebRtc plug flow - Google Patents

Optimization method based on android using WebRtc plug flow Download PDF

Info

Publication number
CN116647543A
CN116647543A CN202310621840.9A CN202310621840A CN116647543A CN 116647543 A CN116647543 A CN 116647543A CN 202310621840 A CN202310621840 A CN 202310621840A CN 116647543 A CN116647543 A CN 116647543A
Authority
CN
China
Prior art keywords
webrtc
android
optimization method
method based
java
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310621840.9A
Other languages
Chinese (zh)
Inventor
张宇成
高斌
邹琼
周双全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ruiyun Technology Co ltd
Original Assignee
Shenzhen Ruiyun Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Ruiyun Technology Co ltd filed Critical Shenzhen Ruiyun Technology Co ltd
Priority to CN202310621840.9A priority Critical patent/CN116647543A/en
Publication of CN116647543A publication Critical patent/CN116647543A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1101Session protocols
    • H04L65/1108Web based protocols, e.g. webRTC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/6437Real-time Transport Protocol [RTP]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an optimization method based on android using WebRtc plug flow. According to the invention, after the modified source code is packaged into so, the so is quoted for java, after the business logic is processed, the so is packaged into apk and is installed on a server, and after the client is connected with the server, the experience effect can be achieved. By adopting the optimization method provided by the invention to optimize, the packet grabbing condition is more stable through comparison, the condition of unsmooth operation of the terminal is avoided, and the user experience is ensured.

Description

Optimization method based on android using WebRtc plug flow
Technical Field
The invention relates to the technical field of cloud mobile phones and cloud games, in particular to an optimization method for using WebRtc plug flow based on android.
Background
When the android server uses WebRtc to push, even if the network condition is good and the CPU performance is enough, the phenomenon of jamming and frame loss still occurs when the picture changes too fast, and the terminal has bad experiences such as unsmooth operation. At present, most of optimization methods use NACK optimization, dynamic adjustment of jitter buffer size, FEC/RED optimization and the like at a receiving end, so that the actual effect is not very good.
Accordingly, the prior art has drawbacks and needs improvement.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, provides an optimization method for using WebRtc plug flow based on android, mainly optimizes a server side WebRtc plug flow algorithm, and aims at reducing the interval of sending RTP packets so as to achieve the effect of reducing delay and jitter buffer values.
The technical scheme of the invention is as follows: the optimization method based on android using WebRtc plug flow is characterized by comprising the following steps:
step 1: downloading WebRtc source codes to a Linux system, compiling the source codes into a so library, and then calling the so library to an android system;
step 2: the JAVA is adopted to send the audio and video tracks separately, so that information congestion is avoided;
step 3: the data is processed through the video stream encoding module without losing packets;
step 4: after the packet loss prevention processing is completed, the paging module does not judge the buffer queue data any more, and the buffer queue data are immediately sent out when the data are inserted;
step 5: after compiling the source code into so again, the java is called.
Further, the JAVA code is set to H264 code.
By adopting the scheme, the invention mainly reduces the delay of the WebRtc in transmission, reduces the jitter buffer value and enables the experience to be smoother when the terminals are connected.
Drawings
FIG. 1 is a schematic flow chart of the present invention.
Fig. 2 is a schematic diagram of the bale plucking situation before optimization.
Fig. 3 is a schematic diagram of the jitter buffer before optimization.
Fig. 4 is a schematic diagram of an optimized bale plucking situation.
Fig. 5 is a schematic diagram of an optimized jitter buffer.
Detailed Description
The invention will be described in detail below with reference to the drawings and the specific embodiments.
Referring to fig. 1, the invention provides an optimization method based on android using WebRtc plug flow, which is characterized by comprising the following steps:
step 1: downloading the WebRtc source code to a Linux system, compiling the WebRtc source code into a so library, and then calling the so library to an android system.
Step 2: the JAVA code is set to H264 code. And the JAVA is adopted to send the audio and video tracks separately, so that information congestion is avoided.
Step 3: and carrying out non-packet loss processing on the data through a video stream encoding module.
Step 4: after the packet loss prevention processing is completed, the paging module does not judge the buffer queue data any more, and the buffer queue data are immediately sent out when the data are inserted, so that the size of the server buffer RTP packet is reduced.
Step 5: after compiling the source code into so again, the java is called.
Taking 30fps as an example, before the packet is captured under the same environment, the packet capturing situation is shown in fig. 2, and the chart of the jitter buffer is shown in fig. 3. By adopting the optimization method provided by the invention to optimize, the packet grabbing condition is more stable through comparison, the condition of unsmooth operation of the terminal is avoided, and the user experience is ensured.
The foregoing description of the preferred embodiment of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.

Claims (2)

1. The optimization method based on android using WebRtc plug flow is characterized by comprising the following steps:
step 1: downloading WebRtc source codes to a Linux system, compiling the source codes into a so library, and then calling the so library to an android system;
step 2: the JAVA is adopted to send the audio and video tracks separately, so that information congestion is avoided;
step 3: the data is processed through the video stream encoding module without losing packets;
step 4: after the packet loss prevention processing is completed, the paging module does not judge the buffer queue data any more, and the buffer queue data are immediately sent out when the data are inserted;
step 5: after compiling the source code into so again, the java is called.
2. The optimization method based on android using WebRtc push as claimed in claim 1, wherein the JAVA code is set to H264 code.
CN202310621840.9A 2023-05-29 2023-05-29 Optimization method based on android using WebRtc plug flow Pending CN116647543A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310621840.9A CN116647543A (en) 2023-05-29 2023-05-29 Optimization method based on android using WebRtc plug flow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310621840.9A CN116647543A (en) 2023-05-29 2023-05-29 Optimization method based on android using WebRtc plug flow

Publications (1)

Publication Number Publication Date
CN116647543A true CN116647543A (en) 2023-08-25

Family

ID=87622555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310621840.9A Pending CN116647543A (en) 2023-05-29 2023-05-29 Optimization method based on android using WebRtc plug flow

Country Status (1)

Country Link
CN (1) CN116647543A (en)

Similar Documents

Publication Publication Date Title
CN111246284B (en) Video stream playing method, system, terminal and storage medium
US7451228B2 (en) System and method of transmitting data packets
CN104125429B (en) Video data transmission adjusting method and device
CN104270684B (en) It is a kind of towards the video/audio network transmission system and method applied in real time
CN113497792A (en) Audio and video communication method, terminal, server, computer equipment and storage medium
CN114221909B (en) Data transmission method, device, terminal and storage medium
CN114979023A (en) Data transmission method, system, electronic equipment and storage medium
CN110233856B (en) Message processing method and device and computer readable storage medium
CN109862400B (en) Streaming media transmission method, device and system
CN114979793A (en) Live broadcast data transmission method, device, system, equipment and medium
CN116647543A (en) Optimization method based on android using WebRtc plug flow
CN113573003A (en) Weak network-based audio and video real-time communication method, device and equipment
US7830920B2 (en) System and method for enhancing audio quality for IP based systems using an AMR payload format
CN115942000B (en) H.264 format video stream transcoding method, device, equipment and medium
CN112543374A (en) Transcoding control method and device and electronic equipment
CN112437263A (en) Video plug flow method and system
CA2896307C (en) Method and apparatus for forwarding multimedia message
CN101645903A (en) Method and device for transmitting multimedia data
CN105611424A (en) Reliable audio and video transmission QOS method and system based on RUDP
CN110062003A (en) Video data transmitting method, device, electronic equipment and storage medium
CN115086285B (en) Data processing method and device, storage medium and electronic equipment
CN116437035A (en) Audio and video communication method, device, equipment and storage medium
CN116320532A (en) Method and device for adjusting streaming delay
WO2025025776A1 (en) Network state detection method, terminal device, and computer-readable storage medium
WO2024104016A1 (en) Data transmission method and apparatus, and electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination