CN111970541A - Data transmission method, device, terminal equipment and storage medium - Google Patents

Data transmission method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN111970541A
CN111970541A CN202010614928.4A CN202010614928A CN111970541A CN 111970541 A CN111970541 A CN 111970541A CN 202010614928 A CN202010614928 A CN 202010614928A CN 111970541 A CN111970541 A CN 111970541A
Authority
CN
China
Prior art keywords
target
terminal equipment
destination
number information
service
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
CN202010614928.4A
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.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information 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 Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN202010614928.4A priority Critical patent/CN111970541A/en
Publication of CN111970541A publication Critical patent/CN111970541A/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/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2387Stream processing in response to a playback request from an end-user, e.g. for trick-play

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a data transmission method, a data transmission device, terminal equipment and a storage medium, wherein the method comprises the following steps: receiving a resource request of the terminal equipment sent by a third-party platform, wherein the resource request comprises destination number information and a destination service type identifier of the terminal equipment; determining target terminal equipment corresponding to the target number information according to the target number information; determining the target service type of the target terminal equipment according to the target service type identifier; judging whether the target terminal equipment executes the target service corresponding to the target service type; and responding to the third-party platform based on the judgment result, and responding to the third-party platform according to the destination number information and the destination service type identifier of the terminal equipment in the resource request after the streaming media server receives the resource request by performing the unified setting of the resource request on the third-party platform, so that the third-party platform can acquire the corresponding resource.

Description

Data transmission method, device, terminal equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data transmission method, an apparatus, a terminal device, and a storage medium.
Background
With the continuous development of network technology, different manufacturers have various different types of resources, especially with the rapid development of video networking technology, the monitoring resources accessed in video networking services reach the million level, and with the gradual improvement of 64-bit systems, video networking resources reach the million level, but such huge internet resources and video networking resources have respective attribute information.
In order to realize interconnection and intercommunication between video networking and internet related services, if a third-party internet platform wants to access various resources but does not know attribute information of the various resources, when the third-party internet platform sends a request to a streaming media server, the streaming media server cannot identify the attribute information in the request, and further may not acquire the corresponding resources.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a data transmission method, apparatus, terminal device and storage medium that overcome or at least partially solve the above problems.
In a first aspect, an embodiment of the present invention provides a data transmission method, where the method includes:
receiving a resource request of terminal equipment sent by a third-party platform, wherein the resource request comprises destination number information and a destination service type identifier of the terminal equipment;
determining target terminal equipment corresponding to the target number information according to the target number information;
determining the destination service type of the destination terminal equipment according to the destination service type identifier;
judging whether the target terminal equipment executes the target service corresponding to the target service type;
and responding to the third-party platform based on the judgment result.
Optionally, the responding to the third party platform based on the determination result includes:
and if the target terminal equipment executes the target service corresponding to the target service type, acquiring target service video data from the target terminal equipment and transmitting the target service video data to the third-party platform.
Optionally, the responding to the third party platform based on the determination result includes:
and if the target terminal equipment does not execute the target service corresponding to the target service type, returning a response instruction of failure in acquiring the resource to the third-party platform.
Optionally, the responding to the third party platform based on the determination result includes:
and if the target terminal equipment does not execute the target service corresponding to the target service type, sending a command of forcibly starting the service to the target terminal equipment.
Optionally, after receiving the resource request of the terminal device sent by the third-party platform, the method further includes:
and decrypting the resource request according to a preset decryption mode to obtain the destination number information of the terminal equipment, the destination service type identifier and the stream type identifier, wherein the resource request is obtained by encrypting the destination number information of the terminal equipment, the destination service type identifier and the stream type identifier according to a preset encryption mode on the third-party platform, and the preset decryption mode corresponds to the preset encryption mode.
Optionally, if the number of digits of the destination number information is a first preset value, determining, according to the destination number information, a destination terminal device corresponding to the destination number information includes:
according to the destination number information, determining internet destination terminal equipment corresponding to the destination number information;
the method includes the steps that the target service type identification is a live broadcast service identification or a monitoring service identification, if the target terminal equipment executes a target service corresponding to the target service type, target service video data are obtained from the target terminal equipment, and the target service video data are returned to the third-party platform, and the method includes the following steps:
and if the internet target terminal equipment executes a live broadcast service or a monitoring service, acquiring target live broadcast data or target monitoring data from the internet target terminal equipment, coding the target live broadcast data or the target monitoring data according to the stream type corresponding to the stream type identifier, and sending the coded data to the third party platform.
Optionally, if the number of digits of the destination number information is a second preset value, determining, according to the destination number information, a destination terminal device corresponding to the destination number information includes:
determining the video network destination terminal equipment corresponding to the destination number information according to the destination number information;
the method includes the steps that the target service type identification is a live broadcast service identification or a monitoring service identification, if the target terminal equipment executes a target service corresponding to the target service type, target service video data are obtained from the target terminal equipment, and the target service video data are returned to the third-party platform, and the method includes the following steps:
and if the target terminal equipment of the video network executes the live broadcast service or the monitoring service, receiving target live broadcast data or target monitoring data sent by the target terminal equipment of the video network through a non-master virtual terminal number, coding the target live broadcast data or the target monitoring data according to the stream type corresponding to the stream type identifier, and sending the coded data to the third-party platform, wherein the non-master virtual number corresponds to the target terminal equipment of the video network.
In a second aspect, an embodiment of the present invention provides a data transmission apparatus, where the apparatus includes:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a resource request of the terminal equipment sent by a third-party platform, and the resource request comprises destination number information and a destination service type identifier of the terminal equipment;
the first determining module is used for determining target terminal equipment corresponding to the target number information according to the target number information;
a second determining module, configured to determine a destination service type of the destination terminal device according to the destination service type identifier;
the judging module is used for judging whether the target terminal equipment executes the target service corresponding to the target service type;
and the return module is used for responding to the third-party platform based on the judgment result.
Optionally, the return module is configured to:
and if the target terminal equipment executes the target service corresponding to the target service type, acquiring target service video data from the target terminal equipment and transmitting the target service video data to the third-party platform.
Optionally, the return module is configured to:
and if the target terminal equipment does not execute the target service corresponding to the target service type, returning a response instruction of failure in acquiring the resource to the third-party platform.
Optionally, the return module is configured to:
and if the target terminal equipment does not execute the target service corresponding to the target service type, sending a command of forcibly starting the service to the target terminal equipment.
Optionally, the apparatus further comprises a decryption module, the decryption module being configured to:
and decrypting the resource request according to a preset decryption mode to obtain the destination number information of the terminal equipment, the destination service type identifier and the stream type identifier, wherein the resource request is obtained by encrypting the destination number information of the terminal equipment, the destination service type identifier and the stream type identifier according to a preset encryption mode on the third-party platform, and the preset decryption mode corresponds to the preset encryption mode.
Optionally, if the number of digits of the destination number information is a first preset value, the first determining module is configured to:
according to the destination number information, determining internet destination terminal equipment corresponding to the destination number information;
the destination service type identifier is a live broadcast service identifier or a monitoring service identifier, and the return module is configured to:
and if the internet target terminal equipment executes a live broadcast service or a monitoring service, acquiring target live broadcast data or target monitoring data from the internet target terminal equipment, coding the target live broadcast data or the target monitoring data according to the stream type corresponding to the stream type identifier, and sending the coded data to the third party platform.
Optionally, if the number of digits of the destination number information is a second preset value, the first determining module is configured to:
determining the video network destination terminal equipment corresponding to the destination number information according to the destination number information;
the destination service type identifier is a live broadcast service identifier or a monitoring service identifier, and the return module is configured to:
and if the target terminal equipment of the video network executes the live broadcast service or the monitoring service, receiving target live broadcast data or target monitoring data sent by the target terminal equipment of the video network through a non-master virtual terminal number, coding the target live broadcast data or the target monitoring data according to the stream type corresponding to the stream type identifier, and sending the coded data to the third-party platform, wherein the non-master virtual number corresponds to the target terminal equipment of the video network.
In a third aspect, an embodiment of the present invention provides a terminal device, including: at least one processor and memory;
the memory stores a computer program; the at least one processor executes the computer program stored by the memory to implement the data transmission method provided by the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed, the computer program implements the data transmission method provided in the first aspect.
The embodiment of the invention has the following advantages:
according to the data transmission method, the data transmission device, the terminal equipment and the storage medium provided by the embodiment of the invention, the streaming media server receives a resource request of the terminal equipment, which is sent by a third-party platform, wherein the resource request comprises destination number information and a destination service type identifier of the terminal equipment; determining target terminal equipment corresponding to the target number information according to the target number information; determining the target service type of the target terminal equipment according to the target service type identifier; judging whether the target terminal equipment executes the target service corresponding to the target service type; and responding to the third-party platform based on the judgment result, and responding to the third-party platform according to the destination number information and the destination service type identifier of the terminal equipment in the resource request after the streaming media server receives the resource request by performing the unified setting of the resource request on the third-party platform, so that the third-party platform can acquire the corresponding resource.
Drawings
FIG. 1 is a flow chart of the steps of one embodiment of a data transmission method of the present invention;
FIG. 2 is a flow chart of steps in another data transmission method embodiment of the present invention;
FIG. 3 is a flow chart of the steps of yet another data transmission method embodiment of the present invention;
FIG. 4 is a flow chart of steps in another data transmission method embodiment of the present invention;
FIG. 5 is a flow chart of steps of yet another data transmission method embodiment of the present invention;
FIG. 6 is a block diagram of an embodiment of a data transmission apparatus according to the present invention;
fig. 7 is a schematic structural diagram of a terminal device of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, Personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
The nouns are explained as follows:
and (3) hierarchical compatibility: the method refers to a mode which adapts to all monitoring of video networking services, RTSP (Real Time Streaming Protocol) request of a live broadcast mode, which is an application layer Protocol in a TCP/IP Protocol system, and performs compatibility processing on multi-format streams according to various number types and multi-level number attribution in the request mode.
RTMP protocol: real Time Messaging Protocol, Real Time message transfer Protocol; the method is a streaming media protocol, an RTMP protocol is a proprietary protocol of Adobe and is not completely disclosed, the RTMP protocol generally transmits flv, f4v format streams, and the RTMP generally transmits commands and data on 1 channels of TCP.
RTSP protocol: real Time Messaging Protocol, which is a streaming media Protocol, is a common Protocol, and is maintained by a special mechanism, and streams in ts and mp4 formats are generally transmitted; RTSP transport typically requires 2-3 channels, with separation of command and data channels.
The HTTP protocol: hypertext Transfer Protocol, a HyperText Transfer Protocol, is not a streaming media Protocol, the HTTP Protocol is a common Protocol and is maintained by a special mechanism, the HTTP Protocol has no specific transmission stream, the HTTP transmission generally needs 2-3 channels, and commands are separated from data channels.
HLS: HTTP Live Streaming is a dynamic rate adaptation technique for Apple.
An embodiment of the present invention provides a data transmission method, which is used for a third-party platform to obtain resources from a terminal device. The execution subject of this embodiment is a data transmission device, and is disposed on a streaming media server.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a data transmission method of the present invention is shown, where the method may specifically include the following steps:
s101, receiving a resource request of the terminal equipment sent by a third-party platform, wherein the resource request comprises destination number information and a destination service type identifier of the terminal equipment;
specifically, the embodiment of the present invention is applied to a third party platform accessing a resource of a terminal device, which may be a video networking resource or an internet resource, where the third party platform sends a resource request of the terminal device to a streaming media server, where the resource request may be an RTMP protocol, an RTSP protocol, or an HTTP protocol, where the resource request includes target number information of the terminal device and a target service type identifier, the target number information may represent different terminal devices with different digits, and the service type identifier may be a live broadcast service or a monitoring service, etc.
S102, determining target terminal equipment corresponding to the target number information according to the target number information;
specifically, the streaming media server determines, according to the destination number information, a destination terminal device corresponding to the destination number information, for example, 4-digit destination number information representing that an internet terminal is to be accessed, 5-digit destination number indicating that a video network terminal is to be accessed, and different number information representing different terminal devices.
S103, determining the target service type of the target terminal equipment according to the target service type identifier;
specifically, the service type identifier may be a live service identifier or a monitoring service identifier. And determining the corresponding service type according to different service type identifications.
S104, judging whether the target terminal equipment executes the target service corresponding to the target service type;
specifically, when the streaming media server obtains the destination number information and the service type of the terminal device, it determines whether the terminal device corresponding to the destination number information is executing the service corresponding to the service type.
And S105, responding to the third-party platform based on the judgment result.
Specifically, the streaming media server returns a response result to the third-party platform according to the determination result, for example, if the corresponding media stream is acquired, the media stream is returned to the third-party platform, and if the corresponding media stream is not acquired, a response failure instruction is returned to the third-party platform.
The data transmission method provided by the embodiment of the invention receives a resource request of the terminal equipment sent by a third-party platform through a streaming media server, wherein the resource request comprises destination number information and a destination service type identifier of the terminal equipment; determining target terminal equipment corresponding to the target number information according to the target number information; determining the target service type of the target terminal equipment according to the target service type identifier; judging whether the target terminal equipment executes the target service corresponding to the target service type; and responding to the third-party platform based on the judgment result, and responding to the third-party platform according to the destination number information and the destination service type identifier of the terminal equipment in the resource request after the streaming media server receives the resource request by performing the unified setting of the resource request on the third-party platform, so that the third-party platform can acquire the corresponding resource.
The present invention further provides a supplementary description of the data transmission method provided in the above embodiment.
As shown in fig. 2, a flow chart of steps of another embodiment of a data transmission method of the present invention is shown, and the data transmission method includes:
s201, receiving a resource request of the terminal equipment sent by a third-party platform, wherein the resource request comprises destination number information and a destination service type identifier of the terminal equipment;
due to step S201 and step S101 in the embodiment shown in fig. 1. Step S101 has already been described in detail in fig. 1, and therefore step S201 is not described again here.
S202, decrypting the resource request according to a preset decryption mode to obtain the destination number information of the terminal equipment, the destination service type identifier and the stream type identifier, wherein the resource request is obtained by encrypting the destination number information of the terminal equipment, the destination service type identifier and the stream type identifier on the third-party platform according to a preset encryption mode, and the preset decryption mode corresponds to the preset encryption mode.
Specifically, in order to ensure the security of the third party platform acquiring the media stream of the terminal device, the resource request is encrypted on the third party platform, for example, the resource request may be encrypted in an MD5 manner, and after the streaming media server receives the resource request, the resource request is decrypted in an MD5 manner, so as to obtain the destination number information of the terminal device, the destination service type identifier, and the stream type identifier.
The preset decryption method and the preset encryption method may be an MD5 encryption algorithm, an MD3 encryption algorithm, or other encryption algorithms, which are not specifically limited in the embodiment of the present invention.
S203, determining target terminal equipment corresponding to the target number information according to the target number information;
s204, determining the target service type of the target terminal equipment according to the target service type identifier;
s205, judging whether the target terminal equipment executes the target service corresponding to the target service type;
since steps S203 to S205 are the same as steps S102 and S104 in the embodiment shown in fig. 1. Step S102 to step S104 have already been described in detail in fig. 1, and therefore step S203 to step S205 are not described again here.
And S206, if the target terminal equipment executes the target service corresponding to the target service type, acquiring target service video data from the target terminal equipment and transmitting the target service video data to the third-party platform.
Specifically, when the streaming media server determines that the destination terminal device executes the destination service corresponding to the destination service type, the streaming media server obtains the destination service video data from the destination terminal device and transmits the destination service video data to the third-party platform.
And S207, if the target terminal equipment does not execute the target service corresponding to the target service type, returning a response instruction of failure in acquiring the resource to the third-party platform.
And S208, if the target terminal equipment does not execute the target service corresponding to the target service type, sending a service forced opening instruction to the target terminal equipment.
Specifically, when the streaming media server determines that the destination terminal device does not execute the destination service corresponding to the destination service type, the streaming media server returns a response instruction indicating that the resource acquisition has failed to the third-party platform. Or the streaming media server sends an instruction for forcibly opening the service to the destination terminal device, so that the destination terminal device opens the corresponding service.
As shown in fig. 3, a flow chart of steps of another embodiment of a data transmission method of the present invention is shown, the data transmission method includes:
s301, receiving a resource request of the terminal equipment sent by a third party platform, wherein the resource request comprises destination number information and a destination service type identifier of the terminal equipment;
s302, decrypting the resource request according to a preset decryption mode to obtain the destination number information of the terminal device, the destination service type identifier and the stream type identifier, wherein the resource request is obtained by encrypting the destination number information of the terminal device, the destination service type identifier and the stream type identifier on the third-party platform according to a preset encryption mode, and the preset decryption mode corresponds to the preset encryption mode.
Since steps S301 to S302 are the same as steps S201 and S202 in the embodiment shown in fig. 2. Step S201 to step S202 have already been described in detail in fig. 2, and therefore step S301 to step S302 are not described again here.
S303, determining the internet target terminal equipment corresponding to the target number information according to the target number information, wherein the digit of the target number information is a first preset numerical value;
it should be noted that the first preset numerical value may be a character string with any number of digits, and in the embodiment of the present invention, 4-digit number information is preferred, that is, the 4-digit number information corresponds to a terminal device on the internet.
S304, the target service type identifier is a live broadcast service identifier or a monitoring service identifier, and the target service type of the target terminal equipment is determined according to the target service type identifier;
s305, judging whether the destination terminal equipment executes the destination service corresponding to the destination service type;
s306, if the internet target terminal equipment executes a live broadcast service or a monitoring service, acquiring target live broadcast data or target monitoring data from the internet target terminal equipment, coding the target live broadcast data or the target monitoring data according to the stream type corresponding to the stream type identifier, and sending the coded data to the third party platform.
Wherein, the stream type identifier may be H264 or H265.
And S307, if the internet target terminal equipment does not execute the live broadcast service or the monitoring service, returning a response instruction of failure in acquiring the resource to the third-party platform.
S308, if the internet target terminal device does not execute the live broadcast service or the monitoring service, an instruction for forcibly starting the live broadcast service or the monitoring service is sent to the target terminal device.
As shown in fig. 4, a flow chart of steps of another embodiment of a data transmission method of the present invention is shown, the data transmission method includes:
s401, receiving a resource request of the terminal equipment sent by a third party platform, wherein the resource request comprises destination number information and a destination service type identifier of the terminal equipment;
s402, decrypting the resource request according to a preset decryption mode to obtain the destination number information of the terminal device, the destination service type identifier and the stream type identifier, wherein the resource request is obtained by encrypting the destination number information of the terminal device, the destination service type identifier and the stream type identifier on the third-party platform according to a preset encryption mode, and the preset decryption mode corresponds to the preset encryption mode.
Since steps S401 to S402 are the same as steps S301 and S302 in the embodiment shown in fig. 3. Step S301 to step S302 have already been described in detail in fig. 3, and therefore step S401 to step S402 will not be described again here.
S403, determining a video network destination terminal device corresponding to the destination number information according to the destination number information, wherein the number of digits of the destination number information is a second preset numerical value;
it should be noted that the second preset numerical value may be a character string with any number of digits, but to distinguish from the first preset numerical value, in the embodiment of the present invention, the number information with 5 digits, 11 digits, or 20 digits is preferred, that is, the number information with 5 digits, 11 digits, or 20 digits corresponds to terminal equipment of the video network.
S404, the target service type identifier is a live broadcast service identifier or a monitoring service identifier, and the target service type of the target terminal equipment is determined according to the target service type identifier;
s405, judging whether the target terminal equipment executes the target service corresponding to the target service type;
s406, if the target terminal equipment of the video network executes the live broadcast service or the monitoring service, receiving target live broadcast data or target monitoring data sent by the target terminal equipment of the video network through a non-master virtual terminal number, coding the target live broadcast data or the target monitoring data according to the stream type corresponding to the stream type identifier, and sending the coded data to the third-party platform, wherein the non-master virtual number corresponds to the target terminal equipment of the video network.
Wherein, the stream type identifier may be H264 or H265.
And S407, if the video network target terminal device does not execute the live broadcast service or the monitoring service, returning a response instruction of failure in acquiring the resource to the third-party platform.
S408, if the video network destination terminal device does not execute the live broadcast service or the monitoring service, sending an instruction for forcibly starting the live broadcast service or the monitoring service to the video network destination terminal device.
Fig. 5 is a flowchart of steps of another embodiment of the data transmission method of the present invention, and as shown in fig. 5, a streaming server supports access to resources by multiple protocols, such as RTSP, RTMP, and HLS. Such as respective types of monitoring, national standard, live broadcast, conference, and other media resources. The streaming media server is a multi-input and multi-output composite streaming media server, the multi-input refers to various protocols, the resource media is accessed, and the output is the media resource which is output by adapting to the respective protocols. However, in order to facilitate uniform output and reduce complexity of a streaming media logic layer, embodiments of the present invention provide a uniform input request command for an internet protocol or a video networking protocol, thereby improving the reusability of a streaming media program.
The embodiment of the invention adopts a level compatible strategy corresponding to related network transmission protocols such as RTSP, RTMP and the like, divides the video networking number and the service characteristics into different levels, simultaneously monitors and carries out compatibility with the characteristics of the live media stream format, forms a simple, effective and unified request standard, and simultaneously adopts a request key and an encryption double safety strategy to seriously request the reliability and the safety.
The scheme firstly analyzes the characteristics of the video network: number characteristics, service characteristics, media stream characteristics.
Number characteristics: the internet of view number in the internet of view 16-bit server is 5-digit like 05022. In a 64-digit video networking system, the video networking numbers are 11 digits and each has its own number. And also non-video networking subscriber numbers such as 1028 in the streaming server.
Service characteristics: the video networking service can watch respective types of monitoring resources, such as Dahua, Haitan, Yu Shi and the like, and also can watch monitoring resources of various docking standards, such as GB28181, GB35114 and the like. And streaming media streams generated in live broadcasting and meetings of the video networking terminals.
Media stream characteristics: the media streams include PS, TS, H264, H265, etc.
According to the above characteristics, the embodiment of the present invention adopts a 5-level architecture, that is: key/service/number/media stream/other pattern.
The data transmission method comprises the following steps:
(1) when the streaming media server acquires a resource request (RTSP, RTMP and HLS) sent by a third party, the streaming media server decrypts the resource request to acquire number information, a service type and a stream type;
(2) and judging whether the service type is live broadcast or monitoring or conference, and judging number information, wherein the judging sequence is not specifically limited in the embodiment of the invention in the process.
(3) If the number information is 4-bit number information, judging whether the number information is an internet service or a non-video internet service, and judging whether the terminal equipment corresponding to the number information can communicate with the streaming media server. If yes, judging the service layer type, if yes, checking whether the number user initiates the live broadcast service, if yes, occupying the user number to pull the monitoring resource media stream in real time to send according to the media stream layer information to carry out coding format.
(4) If the 5-bit number information represents a 16-bit video networking system, a streaming media server is connected with video networking terminal equipment through the 16-bit video networking system, the service type is judged to be live broadcast, the main virtual terminal number of the streaming media server is communicated with the video networking equipment corresponding to a destination number to judge whether the live broadcast is sent or whether a live broadcast request is forcibly started (at this time, the other layer plays a role and other characteristics are reserved by the other layer), the streaming media server dynamically allocates a non-main virtual terminal number for receiving a media stream sent by the video networking terminal corresponding to the non-main virtual terminal number, codes and pushes the media stream to a third-party platform according to a coding format, namely encapsulates the media stream into an RTP format packet and sends the RTP format packet to the third-party platform in a UDP mode so as to efficiently utilize the idle video networking number (the non-main virtual terminal number), there are two ways of dynamically multiplexing video networking numbers and binding video networking numbers by users in the streaming media server.
(5) If the number information is 11 digits or 20 digits, the 64 digit video network system is represented, and the specific operation is the same as that of the 16 digit video network system.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
The data transmission method provided by the embodiment of the invention receives a resource request of the terminal equipment sent by a third-party platform through a streaming media server, wherein the resource request comprises destination number information and a destination service type identifier of the terminal equipment; determining target terminal equipment corresponding to the target number information according to the target number information; determining the target service type of the target terminal equipment according to the target service type identifier; judging whether the target terminal equipment executes the target service corresponding to the target service type; and responding to the third-party platform based on the judgment result, and responding to the third-party platform according to the destination number information and the destination service type identifier of the terminal equipment in the resource request after the streaming media server receives the resource request by performing the unified setting of the resource request on the third-party platform, so that the third-party platform can acquire the corresponding resource.
Another embodiment of the present invention provides a data transmission apparatus, configured to execute the data transmission method provided in the foregoing embodiment.
Referring to fig. 6, a block diagram of a data transmission apparatus according to an embodiment of the present invention is shown, where the apparatus may specifically include the following modules: a receiving module 601, a first determining module 602, a second determining module 603, a judging module 604 and a returning module 605, wherein:
the receiving module 601 is configured to receive a resource request of a terminal device sent by a third-party platform, where the resource request includes destination number information and a destination service type identifier of the terminal device;
the first determining module 602 is configured to determine, according to the destination number information, a destination terminal device corresponding to the destination number information;
the second determining module 603 is configured to determine a destination service type of the destination terminal device according to the destination service type identifier;
the determining module 604 is configured to determine whether the destination terminal device executes a destination service corresponding to the destination service type;
the returning module 605 is configured to respond to the third party platform based on the determination result.
The data transmission device provided by the embodiment of the invention receives a resource request of the terminal equipment sent by a third-party platform through the streaming media server, wherein the resource request comprises destination number information and a destination service type identifier of the terminal equipment; determining target terminal equipment corresponding to the target number information according to the target number information; determining the target service type of the target terminal equipment according to the target service type identifier; judging whether the target terminal equipment executes the target service corresponding to the target service type; and responding to the third-party platform based on the judgment result, and responding to the third-party platform according to the destination number information and the destination service type identifier of the terminal equipment in the resource request after the streaming media server receives the resource request by performing the unified setting of the resource request on the third-party platform, so that the third-party platform can acquire the corresponding resource.
The data transmission device provided by the above embodiment is further described in an additional embodiment of the present invention.
Optionally, the return module 605 is configured to:
and if the target terminal equipment executes the target service corresponding to the target service type, acquiring target service video data from the target terminal equipment and transmitting the target service video data to the third-party platform.
Optionally, the return module 605 is configured to:
and if the target terminal equipment does not execute the target service corresponding to the target service type, returning a response instruction of failure in acquiring the resource to the third-party platform.
Optionally, the return module 605 is configured to:
and if the target terminal equipment does not execute the target service corresponding to the target service type, sending a command of forcibly starting the service to the target terminal equipment.
Optionally, the apparatus further comprises a decryption module, the decryption module being configured to:
and decrypting the resource request according to a preset decryption mode to obtain the destination number information of the terminal equipment, the destination service type identifier and the stream type identifier, wherein the resource request is obtained by encrypting the destination number information of the terminal equipment, the destination service type identifier and the stream type identifier according to a preset encryption mode on the third-party platform, and the preset decryption mode corresponds to the preset encryption mode.
Optionally, if the number of digits of the destination number information is a first preset value, the first determining module 602 is configured to:
according to the destination number information, determining internet destination terminal equipment corresponding to the destination number information;
the destination service type identifier is a live broadcast service identifier or a monitoring service identifier, and the return module is configured to:
and if the internet target terminal equipment executes a live broadcast service or a monitoring service, acquiring target live broadcast data or target monitoring data from the internet target terminal equipment, coding the target live broadcast data or the target monitoring data according to the stream type corresponding to the stream type identifier, and sending the coded data to the third party platform.
Optionally, if the number of digits of the destination number information is a second preset value, the first determining module 602 is configured to:
determining the video network destination terminal equipment corresponding to the destination number information according to the destination number information;
the destination service type identifier is a live broadcast service identifier or a monitoring service identifier, and the return module is configured to:
and if the target terminal equipment of the video network executes the live broadcast service or the monitoring service, receiving target live broadcast data or target monitoring data sent by the target terminal equipment of the video network through a non-master virtual terminal number, coding the target live broadcast data or the target monitoring data according to the stream type corresponding to the stream type identifier, and sending the coded data to the third-party platform, wherein the non-master virtual number corresponds to the target terminal equipment of the video network.
It should be noted that the respective implementable modes in the present embodiment may be implemented individually, or may be implemented in combination in any combination without conflict, and the present application is not limited thereto.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The data transmission device provided by the embodiment of the invention receives a resource request of the terminal equipment sent by a third-party platform through the streaming media server, wherein the resource request comprises destination number information and a destination service type identifier of the terminal equipment; determining target terminal equipment corresponding to the target number information according to the target number information; determining the target service type of the target terminal equipment according to the target service type identifier; judging whether the target terminal equipment executes the target service corresponding to the target service type; and responding to the third-party platform based on the judgment result, and responding to the third-party platform according to the destination number information and the destination service type identifier of the terminal equipment in the resource request after the streaming media server receives the resource request by performing the unified setting of the resource request on the third-party platform, so that the third-party platform can acquire the corresponding resource.
Still another embodiment of the present invention provides a terminal device, configured to execute the data transmission method provided in the foregoing embodiment.
Fig. 7 is a schematic structural diagram of a terminal device of the present invention, and as shown in fig. 7, the terminal device includes: at least one processor 701 and memory 702;
the memory stores a computer program; the at least one processor executes the computer program stored in the memory to implement the data transmission method provided by the above-mentioned embodiments.
The terminal device provided in this embodiment receives, through the streaming server, a resource request of the terminal device sent by the third party platform, where the resource request includes destination number information and a destination service type identifier of the terminal device; determining target terminal equipment corresponding to the target number information according to the target number information; determining the target service type of the target terminal equipment according to the target service type identifier; judging whether the target terminal equipment executes the target service corresponding to the target service type; and responding to the third-party platform based on the judgment result, and responding to the third-party platform according to the destination number information and the destination service type identifier of the terminal equipment in the resource request after the streaming media server receives the resource request by performing the unified setting of the resource request on the third-party platform, so that the third-party platform can acquire the corresponding resource.
Yet another embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed, the computer program implements the data transmission method provided in any one of the above embodiments.
According to the computer-readable storage medium of the embodiment, a resource request of a terminal device sent by a third-party platform is received through a streaming media server, wherein the resource request comprises destination number information and a destination service type identifier of the terminal device; determining target terminal equipment corresponding to the target number information according to the target number information; determining the target service type of the target terminal equipment according to the target service type identifier; judging whether the target terminal equipment executes the target service corresponding to the target service type; and responding to the third-party platform based on the judgment result, and responding to the third-party platform according to the destination number information and the destination service type identifier of the terminal equipment in the resource request after the streaming media server receives the resource request by performing the unified setting of the resource request on the third-party platform, so that the third-party platform can acquire the corresponding resource.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, electronic devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing electronic device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing electronic device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing electronic devices to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing electronic device to cause a series of operational steps to be performed on the computer or other programmable electronic device to produce a computer implemented process such that the instructions which execute on the computer or other programmable electronic device provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be 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 electronic device 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 electronic device. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or electronic device that comprises the element.
The data transmission method and the data transmission device provided by the invention are described in detail, and the principle and the implementation mode of the invention are explained by applying specific examples, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method of data transmission, the method comprising:
receiving a resource request of terminal equipment sent by a third-party platform, wherein the resource request comprises destination number information and a destination service type identifier of the terminal equipment;
determining target terminal equipment corresponding to the target number information according to the target number information;
determining the destination service type of the destination terminal equipment according to the destination service type identifier;
judging whether the target terminal equipment executes the target service corresponding to the target service type;
and responding to the third-party platform based on the judgment result.
2. The method of claim 1, wherein responding to the third party platform based on the determination comprises:
and if the target terminal equipment executes the target service corresponding to the target service type, acquiring target service video data from the target terminal equipment and transmitting the target service video data to the third-party platform.
3. The method of claim 1, wherein responding to the third party platform based on the determination comprises:
and if the target terminal equipment does not execute the target service corresponding to the target service type, returning a response instruction of failure in acquiring the resource to the third-party platform.
4. The method of claim 1, wherein responding to the third party platform based on the determination comprises:
and if the target terminal equipment does not execute the target service corresponding to the target service type, sending a command of forcibly starting the service to the target terminal equipment.
5. The method of claim 2, wherein after receiving the resource request of the terminal device sent by the third party platform, the method further comprises:
and decrypting the resource request according to a preset decryption mode to obtain the destination number information of the terminal equipment, the destination service type identifier and the stream type identifier, wherein the resource request is obtained by encrypting the destination number information of the terminal equipment, the destination service type identifier and the stream type identifier according to a preset encryption mode on the third-party platform, and the preset decryption mode corresponds to the preset encryption mode.
6. The method of claim 5, wherein if the number of digits of the destination number information is a first preset value, determining the destination terminal device corresponding to the destination number information according to the destination number information comprises:
according to the destination number information, determining internet destination terminal equipment corresponding to the destination number information;
the method includes the steps that the target service type identification is a live broadcast service identification or a monitoring service identification, if the target terminal equipment executes a target service corresponding to the target service type, target service video data are obtained from the target terminal equipment, and the target service video data are returned to the third-party platform, and the method includes the following steps:
and if the internet target terminal equipment executes a live broadcast service or a monitoring service, acquiring target live broadcast data or target monitoring data from the internet target terminal equipment, coding the target live broadcast data or the target monitoring data according to the stream type corresponding to the stream type identifier, and sending the coded data to the third party platform.
7. The method of claim 5, wherein if the number of digits of the destination number information is a second preset value, determining the destination terminal device corresponding to the destination number information according to the destination number information comprises:
determining the video network destination terminal equipment corresponding to the destination number information according to the destination number information;
the method includes the steps that the target service type identification is a live broadcast service identification or a monitoring service identification, if the target terminal equipment executes a target service corresponding to the target service type, target service video data are obtained from the target terminal equipment, and the target service video data are returned to the third-party platform, and the method includes the following steps:
and if the target terminal equipment of the video network executes the live broadcast service or the monitoring service, receiving target live broadcast data or target monitoring data sent by the target terminal equipment of the video network through a non-master virtual terminal number, coding the target live broadcast data or the target monitoring data according to the stream type corresponding to the stream type identifier, and sending the coded data to the third-party platform, wherein the non-master virtual number corresponds to the target terminal equipment of the video network.
8. A data transmission apparatus, characterized in that the apparatus comprises:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a resource request of the terminal equipment sent by a third-party platform, and the resource request comprises destination number information and a destination service type identifier of the terminal equipment;
the first determining module is used for determining target terminal equipment corresponding to the target number information according to the target number information;
a second determining module, configured to determine a destination service type of the destination terminal device according to the destination service type identifier;
the judging module is used for judging whether the target terminal equipment executes the target service corresponding to the target service type;
and the return module is used for responding to the third-party platform based on the judgment result.
9. A terminal device, comprising: at least one processor and memory;
the memory stores a computer program; the at least one processor executes the computer program stored by the memory to implement the data transfer method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when executed, implements the data transmission method of any one of claims 1-7.
CN202010614928.4A 2020-06-30 2020-06-30 Data transmission method, device, terminal equipment and storage medium Pending CN111970541A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010614928.4A CN111970541A (en) 2020-06-30 2020-06-30 Data transmission method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010614928.4A CN111970541A (en) 2020-06-30 2020-06-30 Data transmission method, device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111970541A true CN111970541A (en) 2020-11-20

Family

ID=73361139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010614928.4A Pending CN111970541A (en) 2020-06-30 2020-06-30 Data transmission method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111970541A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112883400A (en) * 2021-03-11 2021-06-01 杭州网易云音乐科技有限公司 Business resource service method, device, electronic equipment and storage medium
CN113490013A (en) * 2021-06-30 2021-10-08 聚好看科技股份有限公司 Server and data request method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012103670A1 (en) * 2011-01-31 2012-08-09 海信集团有限公司 Method, device and system for, based on cloud service, providing and processing multimedia data
CN105991711A (en) * 2015-02-11 2016-10-05 中国移动通信集团公司 Communication method, terminal and correlation equipment thereof
CN109714604A (en) * 2018-12-10 2019-05-03 视联动力信息技术股份有限公司 A kind of processing method and system regarding networking data
CN111131746A (en) * 2019-11-27 2020-05-08 视联动力信息技术股份有限公司 Terminal service control method and device
CN111176803A (en) * 2019-11-06 2020-05-19 腾讯科技(深圳)有限公司 Service processing method, device, server and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012103670A1 (en) * 2011-01-31 2012-08-09 海信集团有限公司 Method, device and system for, based on cloud service, providing and processing multimedia data
CN105991711A (en) * 2015-02-11 2016-10-05 中国移动通信集团公司 Communication method, terminal and correlation equipment thereof
CN109714604A (en) * 2018-12-10 2019-05-03 视联动力信息技术股份有限公司 A kind of processing method and system regarding networking data
CN111176803A (en) * 2019-11-06 2020-05-19 腾讯科技(深圳)有限公司 Service processing method, device, server and storage medium
CN111131746A (en) * 2019-11-27 2020-05-08 视联动力信息技术股份有限公司 Terminal service control method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112883400A (en) * 2021-03-11 2021-06-01 杭州网易云音乐科技有限公司 Business resource service method, device, electronic equipment and storage medium
CN113490013A (en) * 2021-06-30 2021-10-08 聚好看科技股份有限公司 Server and data request method
CN113490013B (en) * 2021-06-30 2023-09-22 聚好看科技股份有限公司 Server and data request method

Similar Documents

Publication Publication Date Title
US10440444B2 (en) Method and set top box for use in a multimedia system
JP4955743B2 (en) Resource management and multi-channel multiplexing method and apparatus in multimedia system
US7099951B2 (en) Method and apparatus for multimedia system
US8291457B2 (en) Channel selection in a multimedia system
CN109167960B (en) Method and system for processing video stream data
CN112165596A (en) Monitoring video data transmission method and device, terminal equipment and storage medium
CN111970541A (en) Data transmission method, device, terminal equipment and storage medium
US10878076B2 (en) Receiving apparatus, transmitting apparatus, and data processing method
US11395050B2 (en) Receiving apparatus, transmitting apparatus, and data processing method
US20090157891A1 (en) Method and Apparatus for Inserting Time-Variant Data into a Media Stream
CN110061962A (en) A kind of method and apparatus of video stream data transmission
CN104935952A (en) Video transcoding method and system
Begen et al. Road to salvation: streaming clients and content delivery networks working together
CN116261021B (en) Video stream playing method and device, electronic equipment and storage medium
CN110913351B (en) Multicast control method, device, network equipment and storage medium
CN112118411A (en) Data transmission method, device, terminal equipment and storage medium
CN105812961A (en) Self-adaptive streaming media processing method and device
CN111131777B (en) Viewing method and device for video network monitoring
JP2005509210A (en) Resource management and multi-channel multiplexing method and apparatus in multimedia system
CN111726645A (en) Live broadcast control method and device, electronic equipment and storage medium
CN108924591B (en) Television channel accurate grouping publishing method and system based on multi-terminal service
EP2366250B1 (en) Method and apparatus for secure distribution of audiovisual data encapsulated according to a plurality of transport protocols
CN112752070A (en) Data transmission method, device, terminal equipment and storage medium
KR102510245B1 (en) Method and device for controlling transmission of multi-channel emergency broadcasting video in case of emergency
CN112752055A (en) Data transmission method, device, terminal equipment and storage medium

Legal Events

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