CN114827675A - Video data processing method and device for application program - Google Patents

Video data processing method and device for application program Download PDF

Info

Publication number
CN114827675A
CN114827675A CN202210404837.7A CN202210404837A CN114827675A CN 114827675 A CN114827675 A CN 114827675A CN 202210404837 A CN202210404837 A CN 202210404837A CN 114827675 A CN114827675 A CN 114827675A
Authority
CN
China
Prior art keywords
video data
application program
terminal
request message
mode
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
CN202210404837.7A
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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network 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 Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202210404837.7A priority Critical patent/CN114827675A/en
Publication of CN114827675A publication Critical patent/CN114827675A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/2662Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/437Interfacing the upstream path of the transmission network, e.g. for transmitting client requests to a VOD server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/4424Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a video data processing method and device of an application program, wherein the method comprises the following steps: receiving a request message sent by a terminal, wherein the request message carries parameters for representing the current running mode of an application program of the terminal, and the application program is used for playing video data; responding to the request message, and sending audio data in the video data to the application program in the terminal or sending video data to the application program in the terminal in a preset mode; the preset mode is a mode for reducing the flow of sending the video data. Through the application, the technical problems that in the prior art, after the live APP is switched to the background operation, the server still can send video data to cause data flow waste and influence terminal operation experience are solved.

Description

Video data processing method and device for application program
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for processing video data of an application.
Background
At present, when a user switches a live broadcast APP (application) to a background during video live broadcast, a server can also send video data to the live broadcast APP, which causes traffic waste; and moreover, the terminal can be scalded after the background running time is too long so as to influence the normal running of the terminal, and in addition, if audio and video data are still sent after the background running, the phenomenon of blocking can be caused when the network is not good and the terminal still runs other APPs, so that the operation experience of the terminal is influenced.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for processing video data of an application, which solve the technical problems that, after a live APP is switched to a background operation in the prior art, a server still sends video data, which results in data traffic waste and affects terminal operation experience. The specific technical scheme is as follows:
in a first aspect of the present application, there is provided a method for processing video data of an application program, applied to a server side, including: receiving a request message sent by a terminal, wherein the request message carries parameters for representing the current running mode of an application program of the terminal, and the application program is used for playing video data; responding to the request message, and sending audio data in the video data to the application program in the terminal or sending video data to the application program in the terminal in a preset mode; the preset mode is a mode for reducing the flow of sending the video data.
In a second aspect of the present application, there is also provided a video data processing method for an application program, applied to a terminal side, including: sending a request message to a server, wherein the request message carries parameters for representing the current operation mode of an application program of the terminal, and the application program is used for playing video data; and receiving audio data in the video data sent by the server in response to the request message, or receiving the video data sent by the server in response to the request message in a preset mode, wherein the preset mode is a mode of reducing the flow of sending the video data.
In a third aspect of the present application, there is provided an apparatus for processing video data of an application program, applied to a server side, including: a first receiving module, configured to receive a request message sent by a terminal, where the request message carries a parameter for characterizing a current operation mode of an application program of the terminal, and the application program is used to play video data; a first sending module, configured to send, in response to the request message, audio data in the video data to the application program in the terminal, or send video data to the application program in the terminal in a preset manner; the preset mode is a mode for reducing the flow of sending the video data.
In a fourth aspect of the present application, there is also provided an apparatus for processing video data of an application program, applied to a terminal side, including: a second sending module, configured to send a request message to a server, where the request message carries a parameter for characterizing a current operation mode of an application program of the terminal, and the application program is used to play video data; a second receiving module, configured to receive audio data in the video data sent by the server in response to the request message, or receive the video data sent by the server in response to the request message in a preset manner, where the preset manner is a manner of reducing traffic of sending the video data.
In a fifth aspect of the present application, there is also provided an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus; a memory for storing a computer program; a processor for implementing the method steps of the first aspect or the method steps of the second aspect when executing a program stored in the memory.
In a sixth aspect implemented by the present application, there is also provided a computer-readable storage medium having stored therein instructions which, when run on a computer, implement the method steps of the first aspect or implement the method steps of the second aspect.
In the embodiment of the application, after receiving a request message sent by a terminal and having parameters for characterizing a current operation mode of an application program of the terminal, a server sends audio data in video data to the application program in the terminal in response to the request message, or sends video data to the application program in the terminal in a preset mode, that is, data can be sent to the application program in a corresponding mode of reducing transmission data traffic according to different operation modes of the application program, for example, only audio data can be sent during background operation, the burden of the terminal is reduced while the transmission data traffic is reduced, and the problems that in the prior art, after switching a live APP to background operation, the server still sends video data to cause data traffic waste and influence terminal operation experience are solved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a flowchart illustrating a video data processing method of an application according to an embodiment of the present application;
FIG. 2 is a second flowchart of a video data processing method of an application according to an embodiment of the present application;
FIG. 3 is a schematic structural diagram of a video data processing apparatus of an application according to an embodiment of the present application;
FIG. 4 is a second schematic diagram of a video data processing apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the following description, suffixes such as "module", "unit" used to indicate elements are used only for facilitating the explanation of the present application and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
An embodiment of the present application provides a video data processing method for an application, which is applied to a server side, and as shown in fig. 1, the method includes the steps of:
102, receiving a request message sent by a terminal, wherein the request message carries a parameter for representing a current operation mode of an application program of the terminal, and the application program is used for playing video data;
it should be noted that the video data in the embodiment of the present application refers to data including audio data and image data. In addition, the video data in the embodiment of the present application may be short video data, live video data, video data for playing movies and videos, and the like.
Step 104, responding to the request message, and sending audio data in the video data to an application program in the terminal, or sending the video data to the application program in the terminal in a preset mode; the preset mode is a mode for reducing the flow of sending video data.
Through the above steps 102 and 104, after receiving a request message sent by the terminal and having parameters for characterizing a current operation mode of an application program of the terminal, the server may send audio data in the video data to the application program in the terminal in response to the request message, or send the video data to the application program in the terminal in a preset mode, that is, according to different operation modes of the application program, may select a corresponding mode for reducing transmission data traffic to send data to the application program, for example, only audio data may be sent during background operation, so that the burden of the terminal is reduced while reducing transmission data traffic, and the problems that in the prior art, after switching a live APP to background operation, the server still sends video data to cause data traffic waste and affect terminal operation experience are solved.
In an optional implementation manner of this embodiment of the present application, regarding the manner of sending the audio data in the video data to the application program in the terminal in response to the request message in step 104, further may include:
step 11, acquiring audio data in the video data under the condition that the parameter representation operation mode is background operation;
and step 12, sending the audio data to the application program in the terminal.
For the above step 11 and step 12, the application program is used as the live APP, and in the process that the user watches live through the live APP, since chat information of others needs to be replied in time, the live APP is switched to the background, at this time, the terminal sends a request message to the server to inform that the current live APP has been switched to the background, at this time, the server only sends audio data in the video data to the application program, but not image data in the video data, thereby avoiding the situation that audio data and image data in the server simultaneous mode video data cause data traffic waste, in addition, since only audio data need to be received and played behind the background, compared with the prior art, the operation burden of the terminal is also lightened to a certain extent.
In an optional implementation manner of the embodiment of the present application, regarding the manner of sending video data to an application program in a terminal in a preset manner in response to the request message in step 104, the method further may include:
and step 21, under the condition that the parameter representation operation mode is small-window operation, transmitting the video data to the application program of the terminal at a first code rate, wherein the first code rate is lower than a second code rate, and the second code rate is the code rate when the application program plays the video data in the full screen of the terminal.
The small window mode refers to an operation mode in which the current application can be displayed in a window mode in a certain area of the operation interface of another application, that is, the video data of the current application can be viewed while using the other application. However, when the application program is run in the small window, the code rate for transmitting the video data is reduced, and the code rate is lower than that when the video data is played on the terminal in a full screen mode by the application program. Although the video definition played by the video player is reduced after the code rate is reduced, the whole video is visually equivalent to the full-screen playing due to the fact that the video data is played in the small window, but the picture is relatively small. That is, the flow can be saved without affecting the viewing experience of the video data played in the small window mode.
In an optional implementation manner of the embodiment of the present application, regarding the manner of sending video data to an application program in a terminal in a preset manner in response to the request message in step 104, the method further may include:
step 31, acquiring specified frame data in the video data under the condition that the parameter representation operation mode is the preview mode;
step 32, sending the specified frame data to the application program in the terminal.
It should be noted that, the preview mode referred to in this embodiment of the present application may refer to that, in the case of previewing, the application program simultaneously displays a plurality of playback channels, and each channel sequentially plays corresponding specified frame data, where the specified frame data may be frame data that is important for video data in the playback channel, such as short video data, and the specified frame data may be frame data of a frame with a relatively high highlight in short video, or movie data, and may summarize frame data of the movie data. In addition, each channel plays the corresponding specified frame data in sequence, which in a specific example may be: the current application program simultaneously displays 9 playing channels in a preview mode, each line of the three playing channels plays specified frame data next to the second playing channel in the first line after the specified frame data of the first playing channel on the upper left is played, and the specified frame data are played sequentially. Through the mode of playing appointed frame data under the preview mode, the situation that the data transmission quantity is large due to the fact that all the playing channels play complete data can be avoided, and the data transmission flow can be saved while the video data of each playing channel can be known rapidly through the mode, and user experience is further improved.
Corresponding to the above-mentioned video data processing method of the application program executed on the server side in fig. 1, an embodiment of the present application further provides a video data processing method of an application program, which is applied on the terminal side, as shown in fig. 2, the method includes the steps of:
step 202, sending a request message to a server, wherein the request message carries a parameter for representing a current operation mode of an application program of the terminal, and the application program is used for playing video data;
and step 204, receiving audio data in the video data sent by the server in response to the request message, or receiving the video data sent by the server in response to the request message in a preset manner.
Through the above steps 202 and 204, the application program in the terminal can send the parameters carrying the current operation mode of the application program for characterizing the terminal to the server in different operation modes, and then receiving audio data in the video data sent by the server in response to the request message, or receiving video data sent by the server in a preset manner in response to the request message, that is, according to different operation modes of the application program, the data sent by the server in a mode of selecting the corresponding reduction transmission data flow can be received, for example, can only receive the audio data sent by the server when running in the background, reduces the load of the terminal while reducing the flow of the transmission data, therefore, the problems that in the prior art, after the live APP is switched to the background operation, the server still sends video data to cause data traffic waste and influence terminal operation experience are solved.
In an optional implementation manner of the embodiment of the present application, regarding a manner of receiving audio data in video data sent by a server in response to a request message in step 204 of the embodiment of the present application, the method further may include:
and step 41, receiving the audio data in the video data sent by the server under the condition that the parameter representation operation mode is background operation.
Therefore, after the terminal sends the request message to the server, the corresponding data can be received based on the current operation mode, that is, when the terminal operates in the background, only the audio data needs to be received, and the image data in the video data does not need to be received, so that the flow of data transmission can be further saved, and the operation burden of the terminal is reduced.
In an optional implementation manner of the embodiment of the present application, regarding a manner of receiving video data that is sent by a server in response to a request message in a preset manner in step 204 of the embodiment of the present application, the method may further include:
and step 51, under the condition that the parameter representation operation mode is small-window operation, receiving the video data sent by the server at a first code rate, wherein the first code rate is lower than a second code rate, and the second code rate is the code rate when the application program plays the video data in the full screen of the terminal.
In an optional implementation manner of the embodiment of the present application, regarding a manner of receiving video data that is sent by a server in response to a request message in a preset manner in step 204 of the embodiment of the present application, the method may further include:
and 61, receiving the appointed frame data in the video data sent by the server under the condition that the parameter representation operation mode is the preview mode.
The preview mode referred to in this embodiment of the present application may refer to that, in the case of previewing, the application program may simultaneously display a plurality of playback channels, and each channel sequentially plays corresponding specified frame data, where the specified frame data may be frame data in the playback channel that is important for video data, such as short video data, and the specified frame data may be frame data of a frame with a more wonderful short video, or video data, and may summarize frame data of the video data. In addition, each channel plays the corresponding specified frame data in sequence, which in a specific example may be: the current application program simultaneously displays 9 playing channels in a preview mode, each line of the three playing channels is provided, and after the appointed frame data of the first playing channel at the upper left are played, the appointed frame data are played next to the second playing channel at the first line and are played in sequence. Through the mode of playing appointed frame data under the preview mode, the situation that the data transmission quantity is large due to the fact that each playing channel plays complete data can be avoided, and the data transmission flow can be saved while the video data in each playing channel can be known rapidly through the mode, and user experience is further improved.
Corresponding to the above video data processing method of the application program in fig. 1, an embodiment of the present application provides a video data processing apparatus of an application program, which is applied to a server side, and as shown in fig. 3, the apparatus includes:
a first receiving module 32, configured to receive a request message sent by a terminal, where the request message carries a parameter used to characterize a current operation mode of an application program of the terminal, and the application program is used to play video data;
a first sending module 34, configured to send, in response to the request message, audio data in the video data to an application program in the terminal, or send the video data to the application program in the terminal in a preset manner; the preset mode is a mode for reducing the flow of sending video data.
Through the device of the embodiment of the application, after receiving a request message which is sent by a terminal and has parameters used for representing the current operation mode of an application program of the terminal, a server can respond to the request message, send audio data in video data to the application program in the terminal, or send video data to the application program in the terminal in a preset mode, namely, the server can select a corresponding mode for reducing transmission data flow to send data to the application program according to different operation modes of the application program, for example, only audio data can be sent during background operation, the burden of the terminal is reduced while the transmission data flow is reduced, and the problems that in the prior art, after a live APP is switched to the background operation, the server still sends the video data to cause data flow waste and influence terminal operation experience are solved.
Optionally, the first sending module 32 in this embodiment of the present application further includes: the first acquisition unit is used for acquiring audio data in the video data under the condition that the parameter representation operation mode is background operation; and the first sending unit is used for sending the audio data to the application program in the terminal.
Optionally, the first sending module 32 in this embodiment of the present application further includes: and the second sending unit is used for sending the video data to the application program of the terminal at the first code rate under the condition that the parameter representation operation mode is small-window operation, wherein the first code rate is lower than the second code rate, and the second code rate is the code rate when the application program plays the video data in the full screen of the terminal.
Optionally, the first sending module 32 in this embodiment of the present application further includes: the second acquisition unit is used for acquiring specified frame data in the video data under the condition that the parameter representation operation mode is the preview mode; and a third transmitting unit for transmitting the specified frame data to the application program in the terminal.
Corresponding to the above-mentioned video data processing method of the application program in fig. 2, an embodiment of the present application provides an apparatus for processing video data of an application program, which is applied to a terminal side, as shown in fig. 4, and the apparatus includes:
a second sending module 42, configured to send a request message to the server, where the request message carries a parameter used to characterize a current operation mode of an application program of the terminal, and the application program is used to play video data;
the second receiving module 44 is configured to receive audio data in the video data sent by the server in response to the request message, or receive video data sent by the server in response to the request message in a preset manner, where the preset manner is a manner of reducing a traffic of sending video data.
By the device, the application program in the terminal can send the parameters carrying the current operation mode of the application program for representing the terminal to the server in different operation modes, and then receiving audio data in the video data sent by the server in response to the request message, or receiving video data sent by the server in a preset manner in response to the request message, that is, according to different operation modes of the application program, the data sent by the server in a mode of selecting the corresponding reduction transmission data flow can be received, for example, can only receive the audio data sent by the server when running in the background, reduces the load of the terminal while reducing the flow of the transmission data, therefore, the problems that in the prior art, after the live APP is switched to the background operation, the server still sends video data to cause data traffic waste and influence terminal operation experience are solved.
Optionally, the second receiving module 44 of the embodiment of the present application further includes: and the first receiving unit is used for receiving the audio data in the video data sent by the server under the condition that the parameter representation operation mode is background operation.
Optionally, the second receiving module 44 of the embodiment of the present application further includes: and the second receiving unit is used for receiving the video data sent by the server at the first code rate under the condition that the parameter representation operation mode is small-window operation, wherein the first code rate is lower than the second code rate, and the second code rate is the code rate when the application program plays the video data in the full screen of the terminal.
Optionally, the second receiving module 44 of the embodiment of the present application further includes: and the third receiving unit is used for receiving the specified frame data in the video data sent by the server under the condition that the parameter representation operation mode is the preview mode.
The embodiment of the present application further provides an electronic device, as shown in fig. 5, including a processor 501, a communication interface 502, a memory 503 and a communication bus 504, where the processor 501, the communication interface 502 and the memory 503 complete mutual communication through the communication bus 504;
a memory 503 for storing a computer program;
the processor 501 is configured to implement the method steps in fig. 1 or fig. 2 when executing the program stored in the memory 503, and the functions of the processor are similar to the method steps in fig. 1 or fig. 2, and are not described again here.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In yet another embodiment provided by the present application, a computer-readable storage medium is further provided, which stores instructions that, when executed on a computer, cause the computer to execute the video data processing method of the application program described in any of the above embodiments.
In a further embodiment provided by the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the video data processing method of the application program as described in any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (12)

1. A video data processing method of an application program, which is applied to a server side, is characterized by comprising the following steps:
receiving a request message sent by a terminal, wherein the request message carries parameters for representing the current running mode of an application program of the terminal, and the application program is used for playing video data;
responding to the request message, and sending audio data in the video data to the application program in the terminal or sending video data to the application program in the terminal in a preset mode; the preset mode is a mode for reducing the flow of sending the video data.
2. The method according to claim 1, wherein said sending audio data of the video data to the application in the terminal in response to the request message comprises:
under the condition that the parameter represents that the running mode is background running, audio data in the video data are obtained;
and sending the audio data to the application program in the terminal.
3. The method according to claim 1, wherein said sending video data to said application program in said terminal in a predetermined manner in response to said request message comprises:
and under the condition that the parameter represents that the operation mode is small-window operation, sending the video data to the application program of the terminal at a first code rate, wherein the first code rate is lower than a second code rate, and the second code rate is the code rate when the application program plays the video data in the full screen of the terminal.
4. The method according to claim 1, wherein said sending video data to said application program in said terminal in a predetermined manner in response to said request message comprises:
acquiring specified frame data in the video data under the condition that the parameter represents that the operation mode is a preview mode;
and sending the specified frame data to the application program in the terminal.
5. A video data processing method of an application program, applied to a terminal side, is characterized by comprising the following steps:
sending a request message to a server, wherein the request message carries parameters for representing the current operation mode of an application program of the terminal, and the application program is used for playing video data;
and receiving audio data in the video data sent by the server in response to the request message, or receiving the video data sent by the server in response to the request message in a preset mode, wherein the preset mode is a mode of reducing the flow of sending the video data.
6. The method of claim 5, wherein the receiving audio data in the video data sent by the server in response to the request message comprises:
and receiving audio data in the video data sent by the server under the condition that the parameter represents that the operation mode is background operation.
7. The method according to claim 5, wherein the receiving the video data sent by the server in a preset manner in response to the request message comprises:
and under the condition that the parameter represents that the operation mode is small-window operation, receiving the video data sent by the server at a first code rate, wherein the first code rate is lower than a second code rate, and the second code rate is the code rate of the application program when the video data is played in a full screen mode at the terminal.
8. The method according to claim 5, wherein the receiving the video data sent by the server in a preset manner in response to the request message comprises:
and receiving specified frame data in the video data sent by the server under the condition that the parameter represents that the operation mode is a preview mode.
9. An apparatus for processing video data of an application program, applied to a server side, comprising:
a first receiving module, configured to receive a request message sent by a terminal, where the request message carries a parameter for characterizing a current operation mode of an application program of the terminal, and the application program is used to play video data;
a first sending module, configured to send, in response to the request message, audio data in the video data to the application program in the terminal, or send video data to the application program in the terminal in a preset manner; the preset mode is a mode for reducing the flow of sending the video data.
10. An apparatus for processing video data of an application program, applied to a terminal side, comprising:
a second sending module, configured to send a request message to a server, where the request message carries a parameter for characterizing a current operation mode of an application program of the terminal, and the application program is used to play video data;
a second receiving module, configured to receive audio data in the video data sent by the server in response to the request message, or receive the video data sent by the server in response to the request message in a preset manner, where the preset manner is a manner of reducing traffic of sending the video data.
11. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for performing the method steps of any one of claims 1 to 4 or the method steps of any one of claims 5 to 8 when executing a program stored in a memory.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method steps of any one of claims 1 to 4 or carries out the method steps of any one of claims 5 to 8.
CN202210404837.7A 2022-04-18 2022-04-18 Video data processing method and device for application program Pending CN114827675A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210404837.7A CN114827675A (en) 2022-04-18 2022-04-18 Video data processing method and device for application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210404837.7A CN114827675A (en) 2022-04-18 2022-04-18 Video data processing method and device for application program

Publications (1)

Publication Number Publication Date
CN114827675A true CN114827675A (en) 2022-07-29

Family

ID=82536604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210404837.7A Pending CN114827675A (en) 2022-04-18 2022-04-18 Video data processing method and device for application program

Country Status (1)

Country Link
CN (1) CN114827675A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116634189A (en) * 2023-07-20 2023-08-22 天津星耀九洲科技有限公司 Interactive live broadcast data display method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110769282A (en) * 2018-07-25 2020-02-07 北京达佳互联信息技术有限公司 Short video generation method, terminal and server
CN111787340A (en) * 2020-05-25 2020-10-16 天津车之家数据信息技术有限公司 Network live broadcast system and method
CN112333508A (en) * 2020-10-28 2021-02-05 深圳创维-Rgb电子有限公司 Video preview method, system, device and storage medium
CN114125564A (en) * 2020-08-31 2022-03-01 华为终端有限公司 Video control method and device and terminal
CN114257861A (en) * 2020-09-24 2022-03-29 腾讯科技(深圳)有限公司 Video processing method, device, storage medium and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110769282A (en) * 2018-07-25 2020-02-07 北京达佳互联信息技术有限公司 Short video generation method, terminal and server
CN111787340A (en) * 2020-05-25 2020-10-16 天津车之家数据信息技术有限公司 Network live broadcast system and method
CN114125564A (en) * 2020-08-31 2022-03-01 华为终端有限公司 Video control method and device and terminal
CN114257861A (en) * 2020-09-24 2022-03-29 腾讯科技(深圳)有限公司 Video processing method, device, storage medium and equipment
CN112333508A (en) * 2020-10-28 2021-02-05 深圳创维-Rgb电子有限公司 Video preview method, system, device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116634189A (en) * 2023-07-20 2023-08-22 天津星耀九洲科技有限公司 Interactive live broadcast data display method and device and electronic equipment
CN116634189B (en) * 2023-07-20 2023-10-03 天津星耀九洲科技有限公司 Interactive live broadcast data display method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN109413483B (en) Live content preview method, device, equipment and medium
CN108933948B (en) Video playing progress synchronization method and device
US20210160577A1 (en) Method for playing video, electronic device and storage medium
CN112203111B (en) Multimedia resource preloading method and device, electronic equipment and storage medium
US20170278547A1 (en) Method of modifying play of an original content form
CN109040830B (en) Live broadcast pause prediction method, switching method and device
CN110996157A (en) Video playing method and device, electronic equipment and machine-readable storage medium
CN114827675A (en) Video data processing method and device for application program
CN109495699B (en) Video playing switching method and device
CN108322793B (en) Shared video playing method and device and electronic equipment
CN111131812A (en) Broadcast time testing method and device and computer readable storage medium
CN109922366B (en) Equipment parameter adjusting method, device, equipment and medium
EP3522525B1 (en) Method and apparatus for processing video playing
CN111836099A (en) Channel switching processing method and sound box
CN113727167B (en) Video resource playing method, device, equipment and readable storage medium
CN111147884B (en) Data processing method, device, system, user side and storage medium
US20230333800A1 (en) Screen projection method and apparatus, electronic device and computer readable storage medium
CN111356006B (en) Video playing method, device, server and storage medium
US11463493B2 (en) Method and apparatus for playing media file
CN113365112B (en) Remote assistance method and device, electronic equipment and storage medium
CN112653896A (en) House source information playback method and device with watching assistant, electronic equipment and medium
CN114630134B (en) Processing method and system for newly added code stream
CN114938472B (en) Video playing method and device, electronic equipment and computer readable storage medium
CN115119010B (en) Wheat connecting method, device, electronic equipment and storage medium
CN114827690B (en) Network resource display method, device and system

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