CN110708314A - Live streaming data uploading method and device, electronic equipment and storage medium - Google Patents

Live streaming data uploading method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110708314A
CN110708314A CN201910955710.2A CN201910955710A CN110708314A CN 110708314 A CN110708314 A CN 110708314A CN 201910955710 A CN201910955710 A CN 201910955710A CN 110708314 A CN110708314 A CN 110708314A
Authority
CN
China
Prior art keywords
streaming data
live streaming
client
data
singing
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
CN201910955710.2A
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 ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance 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 ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910955710.2A priority Critical patent/CN110708314A/en
Publication of CN110708314A publication Critical patent/CN110708314A/en
Pending legal-status Critical Current

Links

Images

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/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • H04L65/762Media network packet handling at the source 
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

The disclosure discloses a live streaming data uploading method and device, electronic equipment and a storage medium. The method comprises the following steps: the client copies live streaming data to be uploaded in a memory to obtain first target live streaming data and second target live streaming data; the client stores the first target live streaming data in a file form; and the client sends the second target live streaming data to a server so that the server transmits the second target live streaming data in real time. The embodiment of the disclosure can realize live broadcasting and save live broadcasting stream data, improve the uploading efficiency of the live broadcasting stream data, and ensure the real-time performance of server stream pushing.

Description

Live streaming data uploading method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to data processing technologies, and in particular, to a live streaming data uploading method and apparatus, an electronic device, and a storage medium.
Background
With the development of the technology, the mobile terminal can transmit the acquired audio and video signals to the server for the listening or watching of vast internet friends or authorized specific people.
The client converts the audio and video signals into live streaming data and sends the live streaming data to the server. And the server pushes the live streaming data to other clients so as to enable the other clients to play.
In the above manner, the user wants to obtain his own live streaming data, and can only download the live streaming data from the server. Generally, when a live broadcast is performed by a client side of an anchor broadcast, live broadcast stream data uploaded by the anchor broadcast at the same time is acquired from a server, which occupies resources of the client side of the anchor broadcast, causes slow downloading, and even causes real-time uploading of the live broadcast stream data, thereby affecting the real-time of the live broadcast stream data received by other client sides, and causing viewers in a live broadcast room to feel that the viewers feel stuck when watching or listening.
Disclosure of Invention
The embodiment of the disclosure provides a live streaming data uploading method and device, an electronic device and a storage medium, which can realize live streaming data uploading and save the live streaming data, improve live streaming data uploading efficiency and ensure real-time streaming of a server.
In a first aspect, an embodiment of the present disclosure provides a live streaming data uploading method, where the method includes:
the client copies live streaming data to be uploaded in a memory to obtain first target live streaming data and second target live streaming data;
the client stores the first target live streaming data in a file form;
and the client sends the second target live streaming data to a server so that the server transmits the second target live streaming data in real time.
In a second aspect, an embodiment of the present disclosure further provides a live streaming data uploading apparatus, where the apparatus includes:
the live streaming data copying module is used for copying live streaming data to be uploaded in the memory to obtain first target live streaming data and second target live streaming data;
the live streaming data storage module is used for storing the first target live streaming data in a file form;
and the live streaming data uploading module is used for sending the second target live streaming data to a server so as to enable the server to transmit the second target live streaming data in real time.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, the one or more programs cause the one or more processors to implement a live streaming data upload method as described in an embodiment of the present disclosure.
In a fourth aspect, the disclosed embodiment also provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a live streaming data uploading method according to the disclosed embodiment.
The embodiment of the disclosure copies live streaming data, wherein one part of the live streaming data is used for uploading to a server, and the other part of the live streaming data is stored as a file, so that live streaming data is locally stored while live streaming data is uploaded in real time, thereby solving the problem that the transmission real-time performance of the live streaming data is reduced because the live streaming data uploaded in the prior art can only be downloaded from the server, and simultaneously ensuring the real-time transmission of the live streaming data, the live streaming data is locally stored, the uploading efficiency of the live streaming data is improved, and the real-time performance of pushing the streaming of the server is ensured, and the live streaming data is copied in an internal memory, so that the interference of the step of storing the live streaming data into the file can be avoided, thereby ensuring the real-time performance and.
Drawings
Fig. 1 is a flowchart of a live streaming data uploading method provided in an embodiment of the present disclosure;
fig. 2 is a flowchart of a live streaming data uploading method provided in a second embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a live streaming data uploading apparatus provided in a third embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Example one
Fig. 1 is a flowchart of a live streaming data uploading method provided in an embodiment of the present disclosure, where this embodiment is applicable to a case where a client uploads live streaming data to a server, and the method may be executed by a live streaming data uploading apparatus, where the apparatus may be implemented in a software and/or hardware manner, and the apparatus may be configured in an electronic device, specifically, in a client of the electronic device, and the electronic device may be a terminal device, and may include a mobile phone, a vehicle-mounted terminal, or a notebook computer. As shown in fig. 1, the method specifically includes the following steps:
s110, the client copies live streaming data to be uploaded in a memory to obtain first target live streaming data and second target live streaming data.
The client is used for providing the live broadcast room function for the user. The client communicates with the server, so that the live broadcast service provided by the server can be acquired, and the server is used for providing live broadcast room service for each client. Specifically, the client can establish a live broadcast room, acquire audio and video data of a user in the live broadcast room and upload the audio and video data to the server, so that the server pushes streams to other clients watching the live broadcast room; the client can also acquire live broadcast stream data of a live broadcast room from the server to play the live broadcast stream data in real time. The operating system of the client is an android system.
In this embodiment, the client is configured to collect audio and video data of a user and form live streaming data, and upload the live streaming data to the server, so that the server pushes the live streaming data to other clients.
Live streaming data may refer to real-time data transmitted in the form of a stream, and live streaming data may include live audio streaming data and/or live video streaming data.
Generally, a complete live broadcast process includes operations of collecting, processing, encoding, packaging, streaming, transmitting, transcoding, distributing, decoding, and playing. The client disclosed in this embodiment performs acquisition, processing, encoding, and packetization to generate live streaming data. In addition, the client transmits the packaged live streaming data to the server through stream pushing.
Optionally, the live streaming data is live audio streaming data; before the client copies the live streaming data to be uploaded in the memory, the method further comprises the following steps: and the client converts the audio data to be uploaded into live streaming data in the memory.
The audio data to be uploaded may refer to sound data collected by the client. Specifically, the sound data may include at least one of sound data of a user, sound data associated with a user action behavior (e.g., sound data of a playing instrument), background sound data, and the like.
The mode of converting the audio data into the live streaming data may be: and processing, grouping, coding and encapsulating the audio data to be uploaded according to a streaming media protocol to form a data packet, wherein the data encapsulated in the data packet is used as audio stream data.
Wherein the processing is used to subject the data to an optimization process, such as noise reduction. The grouping is used to divide the audio data into a plurality of groups, and the encapsulation and transmission are performed in units of each group. The encoding is used to convert the data to data in a standard format. Encapsulation is used to pack multiple pieces of data into one packet.
The audio data are converted into live streaming data, and the live streaming data are transmitted to the network in a streaming form, so that real-time continuous data transmission can be realized, the effect of immediately live-broadcasting the acquired audio data is achieved, and the real-time property of live streaming data transmission is improved.
Optionally, before the client converts the audio data to be uploaded into the streaming data in the memory, the method further includes: the client acquires audio signals and stores the audio signals into a memory; and the client performs reverberation processing on the acquired audio signals to obtain audio data to be uploaded.
The client collects sound through an audio acquisition module (such as a microphone) on the electronic equipment, converts the sound into an audio signal and stores the audio signal in the memory.
Reverberation may refer to an acoustic phenomenon in which sound continues to exist and bounce after a sound source stops sounding in a space. The reverberation process is used to increase the reverberation of a sound in an audio signal, increase the playing effect of the sound, and improve the reality of the sound.
Through carrying out the reverberation to the audio signal of gathering, as the audio data of waiting to upload and deposit in the memory to carry out subsequent processing, can increase the broadcast effect of sound simultaneously, improve the authenticity of sound.
S120, the client stores the first target live streaming data in a file form.
The first target live streaming data is for storage for subsequent programming operations.
Currently, a client generates live streaming data and directly uploads the live streaming data to a server, at this time, the live streaming data is transmitted to the server from a memory, and then the live streaming data does not exist in the memory. Therefore, live streaming data needs to be stored separately and form a file for storage, the live streaming data can exist in the memory for a long time, and even the live streaming data in the file can be operated and processed. For example, at least one of play, delete, and edit processing and the like may be performed.
Specifically, a file is newly created at a storage location specified in the memory, and live streaming data is written in the file. Or the live streaming data is written into a pre-specified file, and the file stores the live streaming data with the time sequence being earlier, so that the file stores a large amount of live streaming data sequentially according to the generation time sequence of the live streaming data.
S130, the client sends the second target live streaming data to a server so that the server can transmit the second target live streaming data in real time.
And the second target live streaming data is used for the client to upload to the server. The second target live streaming data is the same as the first target live streaming data. In the live broadcast process, the server can send the second target live broadcast stream data to each client in the live broadcast room, so that each client in the live broadcast room can obtain the second target live broadcast stream data.
The embodiment of the disclosure copies live streaming data, wherein one part of the live streaming data is used for uploading to a server, and the other part of the live streaming data is stored as a file, so that live streaming data is locally stored while live streaming data is uploaded in real time, thereby solving the problem that the transmission real-time performance of the live streaming data is reduced because the live streaming data uploaded in the prior art can only be downloaded from the server, and simultaneously ensuring the real-time transmission of the live streaming data, the live streaming data is locally stored, the uploading efficiency of the live streaming data is improved, and the real-time performance of pushing the streaming of the server is ensured, and the live streaming data is copied in an internal memory, so that the interference of the step of storing the live streaming data into the file can be avoided, thereby ensuring the real-time performance and.
Example two
Fig. 2 is a flowchart of a live streaming data uploading method according to a second embodiment of the present disclosure. The present embodiment is optimized on the basis of the alternatives in the above-described embodiment. And the live streaming data is embodied as live audio streaming data. Meanwhile, before the client copies the live streaming data to be uploaded in the memory, the optimization is as follows: and the client converts the audio data to be uploaded into live streaming data in the memory. Meanwhile, the client is embodied as a singing live broadcast room client; the client side of the singing type live broadcast room of the singing user is used for uploading the singing data of the singing user in real time, and the client side of the singing type live broadcast room of the audience user is used for playing the singing data of the singing user in real time. Before the client side converts the audio data to be uploaded into the live streaming data in the memory, the optimization is as follows: the client acquires audio signals and stores the audio signals into a memory; and the client performs reverberation processing on the acquired audio signals to obtain audio data to be uploaded. And the audio signal collected by the client is embodied as follows: and when receiving a recording instruction input by the singing user, the client acquires the singing data of the singing user to form an audio signal.
Correspondingly, the method of the embodiment may include:
s210, when receiving a recording instruction input by a singing user, a client acquires the singing data of the singing user to form an audio signal; the client comprises a singing live broadcast room client; the client side of the singing type live broadcast room of the singing user is used for uploading the singing data of the singing user in real time, and the client side of the singing type live broadcast room of the audience user is used for playing the singing data of the singing user in real time.
The client, the audio signal, the reverberation processing, the audio data, the live streaming data, the first target live streaming data, the second target live streaming data, and the like in the present embodiment may all refer to the description in the above embodiments.
The recording instructions are used to collect the audio signals of the singing user. Specifically, when the client receives the recording instruction, the client may collect the singing data by operating a sound collection module (e.g., a microphone) on the electronic device of the client. Illustratively, the recording instruction may be a live broadcast start instruction, or may be generated during a live broadcast. The trigger may be a singing user trigger on live broadcasting or a listener user trigger on broadcasting. In this regard, the disclosed embodiments are not particularly limited.
The client side of the singing live broadcast room can be used for uploading the singing data of the user to the server in real time, so that the server can transmit the singing data to other client sides in real time for playing.
The client side of the singing live broadcast room can establish the singing live broadcast room. Typically, in a singing live room, users of the singing live room include both singing users and audience users. In the singing live broadcasting room, the client side of the singing live broadcasting room can live broadcast the singing audio of the singing user.
Specifically, the number of singing users in a singing live broadcast room is at least one, and the number of audience users is more than or equal to zero.
Optionally, the number of singing users in the singing live broadcast room at the same time is one. It will be appreciated that in a singing live room, only one singing user sings at the same time, and that other users in the singing live room are audience users. The singing user and the audience user may vary. Illustratively, in a singing live broadcast room, a user a sings at a first time, the user a is a singing user, and other users are audience users; and the user B sings at the second moment, the user B is a singing user, and other users are audience users at the moment, namely the user A is the audience user. Different singing users can sing different songs, and different singing users can sing different sentences in the same song. In this regard, the disclosed embodiments are not particularly limited.
And S220, the client performs reverberation processing on the collected audio signals to obtain audio data to be uploaded.
And S230, the client converts the audio data to be uploaded into live streaming data in the memory.
S240, the client copies live streaming data to be uploaded in a memory to obtain first target live streaming data and second target live streaming data; the live streaming data is live audio streaming data.
In fact, the client may also store the live streaming data into a file first, and transmit the live streaming data in the file to the server, which may cause the client to add a step of storing the file in the process of pushing the stream, resulting in a delay of pushing the stream, and further causing a delay of transmitting the live streaming data to other clients by the server, thereby reducing the real-time performance of live streaming. The method provided by the embodiment of the disclosure realizes simultaneous file storage and stream pushing to the server, and reduces the interference of the stored file to the stream pushing, thereby ensuring the real-time performance of the stream pushing and ensuring the real-time performance of the server for transmitting the live stream data.
S250, the client stores the first target live streaming data in a file form.
And S260, the client sends the second target live streaming data to a server so that the server transmits the second target live streaming data in real time.
The embodiment of the disclosure collects singing data of singing users in the singing live broadcast room, stores the singing data into a file and pushes the file to the server, and the singing data is transmitted to the client sides of other users in the singing live broadcast room in real time through the server to be played, the singing data can be stored into a file while the singing data is pushed, the flow of downloading the singing data from the server can be saved, meanwhile, the condition that the uploading is slow due to the fact that the singing data is downloaded while the singing data is uploaded can be avoided, the uploading efficiency of live broadcast streaming data is improved, and the instantaneity of server pushing is ensured.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a live streaming data uploading device according to an embodiment of the present disclosure, which is applicable to a case where a client uploads live streaming data to a server. The apparatus may be implemented in software and/or hardware, and may be configured in an electronic device. As shown in fig. 3, the apparatus may include: a live streaming data copying module 310, a live streaming data storage module 320, and a live streaming data uploading module 330.
The live streaming data copying module 310 is configured to copy live streaming data to be uploaded in a memory to obtain first target live streaming data and second target live streaming data;
a live streaming data storage module 320, configured to store the first target live streaming data in a file form;
the live streaming data uploading module 330 is configured to send the second target live streaming data to a server, so that the server transmits the second target live streaming data in real time.
The embodiment of the disclosure copies live streaming data, wherein one part of the live streaming data is used for uploading to a server, and the other part of the live streaming data is stored as a file, so that live streaming data is locally stored while live streaming data is uploaded in real time, thereby solving the problem that the transmission real-time performance of the live streaming data is reduced because the live streaming data uploaded in the prior art can only be downloaded from the server, and simultaneously ensuring the real-time transmission of the live streaming data, the live streaming data is locally stored, the uploading efficiency of the live streaming data is improved, and the real-time performance of pushing the streaming of the server is ensured, and the live streaming data is copied in an internal memory, so that the interference of the step of storing the live streaming data into the file can be avoided, thereby ensuring the real-time performance and.
Further, the live streaming data includes live audio streaming data and/or live video streaming data.
Further, the live streaming data is live audio streaming data; the live streaming data uploading device further comprises: and the live streaming data conversion module is used for converting the audio data to be uploaded into the live streaming data in the memory before the client copies the live streaming data to be uploaded in the memory.
Further, the live streaming data uploading device further includes: the reverberation processing module is used for acquiring audio signals and storing the audio signals into the memory before the client converts the audio data to be uploaded into the live streaming data in the memory; and carrying out reverberation processing on the collected audio signals to obtain audio data to be uploaded.
Further, the client comprises a singing live broadcast room client; the client side of the singing live broadcast room of the singing user is used for uploading the singing data of the singing user in real time, and the client side of the singing live broadcast room of the audience user is used for playing the singing data of the singing user in real time; the reverberation processing module comprises: and the singing data acquisition unit is used for acquiring the singing data of the singing user by the client side to form an audio signal when receiving the recording instruction input by the singing user.
Furthermore, the number of singing users in the singing live broadcast room at the same time is one.
Further, the operating system of the client is an android system.
The live streaming data uploading device provided by the embodiment of the disclosure belongs to the same inventive concept as the live streaming data uploading method provided by the foregoing embodiment, and the technical details that are not described in detail in the embodiment of the disclosure can be referred to the foregoing embodiment, and the embodiment of the disclosure has the same beneficial effects as the foregoing embodiment.
Example four
Referring now to fig. 4, a block diagram of an electronic device (e.g., a terminal device) 400 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, electronic device 400 may include a processing device (e.g., central processing unit, graphics processor, etc.) 401 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage device 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the electronic apparatus 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Generally, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device 400 to communicate wirelessly or by wire with other devices to exchange data. While fig. 4 illustrates an electronic device 400 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication device 409, or from the storage device 408, or from the ROM 402. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 401.
EXAMPLE five
The computer readable medium described above in this disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (Hyper Text transfer protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: the client copies live streaming data to be uploaded in a memory to obtain first target live streaming data and second target live streaming data; the client stores the first target live streaming data in a file form; and the client sends the second target live streaming data to a server so that the server transmits the second target live streaming data in real time.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. For example, the live streaming data copying module may be further described as a "module that copies live streaming data to be uploaded in a memory to obtain first target live streaming data and second target live streaming data".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, the present disclosure provides a live streaming data uploading method, including:
the client copies live streaming data to be uploaded in a memory to obtain first target live streaming data and second target live streaming data;
the client stores the first target live streaming data in a file form;
and the client sends the second target live streaming data to a server so that the server transmits the second target live streaming data in real time.
According to one or more embodiments of the present disclosure, in a live streaming data uploading method provided by the present disclosure, the live streaming data includes live audio streaming data and/or live video streaming data.
According to one or more embodiments of the present disclosure, in a live streaming data uploading method provided by the present disclosure, the live streaming data is live audio streaming data; before the client copies the live streaming data to be uploaded in the memory, the method further comprises the following steps: and the client converts the audio data to be uploaded into live streaming data in the memory.
According to one or more embodiments of the present disclosure, in the live streaming data uploading method provided by the present disclosure, before the client converts audio data to be uploaded into live streaming data in the memory, the method further includes: the client acquires audio signals and stores the audio signals into a memory; and the client performs reverberation processing on the acquired audio signals to obtain audio data to be uploaded.
According to one or more embodiments of the present disclosure, in a live streaming data uploading method provided by the present disclosure, the client includes a singing live broadcasting room client; the client side of the singing live broadcast room of the singing user is used for uploading the singing data of the singing user in real time, and the client side of the singing live broadcast room of the audience user is used for playing the singing data of the singing user in real time; the client collects audio signals, and comprises: and when receiving a recording instruction input by the singing user, the client acquires the singing data of the singing user to form an audio signal.
According to one or more embodiments of the present disclosure, in the live streaming data uploading method provided by the present disclosure, the number of singing users in the singing live room at the same time is one.
According to one or more embodiments of the disclosure, in the live streaming data uploading method provided by the disclosure, the operating system of the client is an android system.
According to one or more embodiments of the present disclosure, the present disclosure provides a live streaming data uploading apparatus, including:
the live streaming data copying module is used for copying live streaming data to be uploaded in the memory to obtain first target live streaming data and second target live streaming data;
the live streaming data storage module is used for storing the first target live streaming data in a file form;
and the live streaming data uploading module is used for sending the second target live streaming data to a server so as to enable the server to transmit the second target live streaming data in real time.
According to one or more embodiments of the present disclosure, in the live streaming data uploading apparatus provided by the present disclosure, the live streaming data includes live audio streaming data and/or live video streaming data.
According to one or more embodiments of the present disclosure, in the live streaming data uploading apparatus provided by the present disclosure, the live streaming data is live audio streaming data; the live streaming data uploading device further comprises: and the live streaming data conversion module is used for converting the audio data to be uploaded into the live streaming data in the memory before the client copies the live streaming data to be uploaded in the memory.
According to one or more embodiments of the present disclosure, the live streaming data uploading apparatus provided by the present disclosure further includes: the reverberation processing module is used for acquiring audio signals and storing the audio signals into the memory before the client converts the audio data to be uploaded into the live streaming data in the memory; and carrying out reverberation processing on the collected audio signals to obtain audio data to be uploaded.
According to one or more embodiments of the present disclosure, in the live streaming data uploading apparatus provided by the present disclosure, the client includes a singing live room client; the client side of the singing live broadcast room of the singing user is used for uploading the singing data of the singing user in real time, and the client side of the singing live broadcast room of the audience user is used for playing the singing data of the singing user in real time; the reverberation processing module comprises: and the singing data acquisition unit is used for acquiring the singing data of the singing user by the client side to form an audio signal when receiving the recording instruction input by the singing user.
According to one or more embodiments of the present disclosure, in the live streaming data uploading apparatus provided by the present disclosure, the number of singing users in the singing live room at the same time is one.
According to one or more embodiments of the present disclosure, in the live streaming data uploading apparatus provided by the present disclosure, an operating system of the client is an android system.
In accordance with one or more embodiments of the present disclosure, there is provided an electronic device including:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement any of the live streaming data upload methods provided by the present disclosure.
According to one or more embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a live streaming data uploading method as any one of the live streaming data uploading methods provided by the present disclosure.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (10)

1. A live streaming data uploading method is characterized by comprising the following steps:
the client copies live streaming data to be uploaded in a memory to obtain first target live streaming data and second target live streaming data;
the client stores the first target live streaming data in a file form;
and the client sends the second target live streaming data to a server so that the server transmits the second target live streaming data in real time.
2. The method of claim 1, wherein the live streaming data comprises live audio streaming data and/or live video streaming data.
3. The method of claim 2, wherein the live streaming data is live audio streaming data;
before the client copies the live streaming data to be uploaded in the memory, the method further comprises the following steps:
and the client converts the audio data to be uploaded into live streaming data in the memory.
4. The method of claim 3, further comprising, before the client converts the audio data to be uploaded into live streaming data in the memory:
the client acquires audio signals and stores the audio signals into a memory;
and the client performs reverberation processing on the acquired audio signals to obtain audio data to be uploaded.
5. The method of claim 4, wherein the client comprises a singing-class live room client; the client side of the singing live broadcast room of the singing user is used for uploading the singing data of the singing user in real time, and the client side of the singing live broadcast room of the audience user is used for playing the singing data of the singing user in real time;
the client collects audio signals, and comprises:
and when receiving a recording instruction input by the singing user, the client acquires the singing data of the singing user to form an audio signal.
6. The method as claimed in claim 5, wherein the number of singing users in the singing live room at the same time is one.
7. The method according to any one of claims 1 to 6, wherein the operating system of the client is an android system.
8. A live streaming data uploading device, comprising:
the live streaming data copying module is used for copying live streaming data to be uploaded in the memory to obtain first target live streaming data and second target live streaming data;
the live streaming data storage module is used for storing the first target live streaming data in a file form;
and the live streaming data uploading module is used for sending the second target live streaming data to a server so as to enable the server to transmit the second target live streaming data in real time.
9. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the live streaming data upload method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements a live streaming data uploading method according to any one of claims 1 to 7.
CN201910955710.2A 2019-10-09 2019-10-09 Live streaming data uploading method and device, electronic equipment and storage medium Pending CN110708314A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910955710.2A CN110708314A (en) 2019-10-09 2019-10-09 Live streaming data uploading method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910955710.2A CN110708314A (en) 2019-10-09 2019-10-09 Live streaming data uploading method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110708314A true CN110708314A (en) 2020-01-17

Family

ID=69200073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910955710.2A Pending CN110708314A (en) 2019-10-09 2019-10-09 Live streaming data uploading method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110708314A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679599A (en) * 2022-03-24 2022-06-28 上海哔哩哔哩科技有限公司 Live broadcast watching method and device

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020040404A1 (en) * 2000-01-28 2002-04-04 Ibeam Broadcasting Corporation. System and method for performing broadcast-enabled disk drive replication in a distributed data delivery network
CN101184195A (en) * 2007-12-25 2008-05-21 腾讯科技(深圳)有限公司 Audio/video living broadcast system and method
CN101483536A (en) * 2009-02-10 2009-07-15 腾讯科技(深圳)有限公司 Method, system and customer terminal for transmitting data used for network karaoke
CN105959717A (en) * 2016-05-27 2016-09-21 天脉聚源(北京)传媒科技有限公司 Live broadcast method based on mobile terminal and live broadcast device
CN106060071A (en) * 2016-06-27 2016-10-26 杭州当虹科技有限公司 Live stream video real-time editing system
CN106169998A (en) * 2016-07-13 2016-11-30 腾讯科技(深圳)有限公司 The treating method and apparatus of media file
CN106375859A (en) * 2016-09-26 2017-02-01 腾讯科技(深圳)有限公司 Media processing method and apparatus, and terminal
CN106412645A (en) * 2016-09-09 2017-02-15 广州酷狗计算机科技有限公司 Method and apparatus for uploading video file to multimedia server
CN107249133A (en) * 2017-02-24 2017-10-13 北京潘达互娱科技有限公司 Live stream data processing method and device
CN108200444A (en) * 2017-12-29 2018-06-22 北京奇虎科技有限公司 A kind of methods, devices and systems of net cast
CN108668163A (en) * 2018-05-03 2018-10-16 广州虎牙信息科技有限公司 Live play method, apparatus, computer readable storage medium and computer equipment
CN108900938A (en) * 2018-09-04 2018-11-27 深圳市领芯者科技有限公司 Microphone is broadcast live
CN209030383U (en) * 2018-09-04 2019-06-25 深圳市领芯者科技有限公司 Microphone and the mobile device including it, cloud server is broadcast live
CN112019905A (en) * 2019-05-30 2020-12-01 上海哔哩哔哩科技有限公司 Live broadcast playback method, computer equipment and readable storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020040404A1 (en) * 2000-01-28 2002-04-04 Ibeam Broadcasting Corporation. System and method for performing broadcast-enabled disk drive replication in a distributed data delivery network
CN101184195A (en) * 2007-12-25 2008-05-21 腾讯科技(深圳)有限公司 Audio/video living broadcast system and method
CN101483536A (en) * 2009-02-10 2009-07-15 腾讯科技(深圳)有限公司 Method, system and customer terminal for transmitting data used for network karaoke
CN105959717A (en) * 2016-05-27 2016-09-21 天脉聚源(北京)传媒科技有限公司 Live broadcast method based on mobile terminal and live broadcast device
CN106060071A (en) * 2016-06-27 2016-10-26 杭州当虹科技有限公司 Live stream video real-time editing system
CN106169998A (en) * 2016-07-13 2016-11-30 腾讯科技(深圳)有限公司 The treating method and apparatus of media file
CN106412645A (en) * 2016-09-09 2017-02-15 广州酷狗计算机科技有限公司 Method and apparatus for uploading video file to multimedia server
CN106375859A (en) * 2016-09-26 2017-02-01 腾讯科技(深圳)有限公司 Media processing method and apparatus, and terminal
CN107249133A (en) * 2017-02-24 2017-10-13 北京潘达互娱科技有限公司 Live stream data processing method and device
CN108200444A (en) * 2017-12-29 2018-06-22 北京奇虎科技有限公司 A kind of methods, devices and systems of net cast
CN108668163A (en) * 2018-05-03 2018-10-16 广州虎牙信息科技有限公司 Live play method, apparatus, computer readable storage medium and computer equipment
CN108900938A (en) * 2018-09-04 2018-11-27 深圳市领芯者科技有限公司 Microphone is broadcast live
CN209030383U (en) * 2018-09-04 2019-06-25 深圳市领芯者科技有限公司 Microphone and the mobile device including it, cloud server is broadcast live
CN112019905A (en) * 2019-05-30 2020-12-01 上海哔哩哔哩科技有限公司 Live broadcast playback method, computer equipment and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679599A (en) * 2022-03-24 2022-06-28 上海哔哩哔哩科技有限公司 Live broadcast watching method and device

Similar Documents

Publication Publication Date Title
WO2019128800A1 (en) Content service implementation method and device, and content delivery network node
CN106817613B (en) Method and device for playing audio and video contents
WO2017101418A1 (en) Method and device for playing multiple streaming media
CN110545472B (en) Video data processing method and device, electronic equipment and computer readable medium
WO2023035879A1 (en) Angle-of-view switching method, apparatus and system for free angle-of-view video, and device and medium
CN113891132A (en) Audio and video synchronization monitoring method and device, electronic equipment and storage medium
CN111818383B (en) Video data generation method, system, device, electronic equipment and storage medium
WO2023103861A1 (en) Screen projection method, screen projection device, screen projection display device, screen projection system and medium
WO2023165371A1 (en) Audio playing method and apparatus, electronic device and storage medium
CN108337556B (en) Method and device for playing audio-video file
CN114257905B (en) Audio processing method, computer-readable storage medium, and electronic device
CN110708314A (en) Live streaming data uploading method and device, electronic equipment and storage medium
CN114125551B (en) Video generation method, device, electronic equipment and computer readable medium
CN113037751A (en) Method and system for creating audio and video receiving stream
CN112416289A (en) Audio synchronization method, device, equipment and storage medium
WO2023193574A1 (en) Screen mirroring method and system, and device and storage medium
CN112153322B (en) Data distribution method, device, equipment and storage medium
CN113542792B (en) Audio merging method, audio uploading method, device and program product
CN113242446B (en) Video frame caching method, video frame forwarding method, communication server and program product
CN109375892B (en) Method and apparatus for playing audio
CN112616087A (en) Live audio processing method and device
CN112786070A (en) Audio data processing method and device, storage medium and electronic equipment
CN112040328A (en) Data interaction method and device and electronic equipment
JP2014200099A (en) Transmitting device and method, and receiving device and method
WO2022188688A1 (en) Information sending method and apparatus, electronic device, and computer-readable 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200117

RJ01 Rejection of invention patent application after publication