CN113014973A - Audio and video data processing method, system and device, electronic equipment and storage medium - Google Patents

Audio and video data processing method, system and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113014973A
CN113014973A CN202110218663.0A CN202110218663A CN113014973A CN 113014973 A CN113014973 A CN 113014973A CN 202110218663 A CN202110218663 A CN 202110218663A CN 113014973 A CN113014973 A CN 113014973A
Authority
CN
China
Prior art keywords
client
audio
video data
local area
network connection
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
CN202110218663.0A
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 QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202110218663.0A priority Critical patent/CN113014973A/en
Publication of CN113014973A publication Critical patent/CN113014973A/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/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/41Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/43615Interfacing a Home Network, e.g. for connecting the client to a plurality of peripherals

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a method, a system and a device for processing audio and video data, wherein the method comprises the following steps: a first client monitors a port preset in a local area network; the second client sends a connection request to the port; the first client establishes network connection with the second client according to the connection request, and generates and sends network connection information to the second client; the second client responds to the search operation of the user to acquire the index information of the audio and video data; the second client sends the index information to the first client according to the network connection information; and the first client plays the audio and video data according to the index information. The invention solves the technical problem of high functional requirements of respective application programs on the mobile terminal and the television. The function of seamlessly playing the audio and video data on the first client by transmitting the index information of the audio and video data through the network connection between the first client and the second client on the basis of not needing other hardware is realized.

Description

Audio and video data processing method, system and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, a system, and an apparatus for processing audio/video data, an electronic device, and a computer-readable storage medium.
Background
With the rapid development of computer technology, the popularity of smart televisions is higher and higher. By means of rich functions of an operating system in the intelligent television, the impression experience of the intelligent television is far better than that of a traditional television.
However, the operation mode of the smart television is still realized based on the remote controller. The remote controller may be a physical remote controller or a virtual remote controller (a mobile terminal installed with a remote controller application). When a movie and television play is played on the smart television based on the virtual remote controller, a special remote controller application program needs to be installed on the mobile terminal, and the remote controller application program and the audio and video application program in the smart television need to support a screen projection protocol at the same time, so that the functional requirements of the respective application programs on the mobile terminal and the smart television are increased.
Disclosure of Invention
Embodiments of the present invention provide a method, a system, and a device for processing audio and video data, an electronic device, and a computer-readable storage medium, where a network connection is established between a first client and a second client, the second client sends index information of the audio and video data to the first client according to the network connection information, and the first client plays the audio and video data according to the index information, thereby reducing functional requirements of respective application programs on a mobile terminal and a television. The specific technical scheme is as follows:
in a first aspect of the present invention, a method for processing audio/video data is first provided, where the method is applied to a local area network, where the local area network includes a first client and a second client, and the method includes: the first client monitors a port preset in the local area network; the second client sends a connection request to the port; the first client monitors the connection request, establishes network connection with the second client according to the connection request, generates network connection information and sends the network connection information to the second client; the second client responds to the searching operation of a user for the audio and video data to acquire the index information of the audio and video data; the second client sends the index information to the first client according to the network connection information; and the first client plays the audio and video data according to the index information.
In a second aspect of the present invention, there is also provided a method for processing audio/video data, where the method is applied to a first client in a local area network, and the method includes: monitoring a preset port in the local area network; monitoring a connection request from a second client in the local area network, establishing network connection with the second client according to the connection request, generating network connection information and returning the network connection information to the second client; receiving index information transmitted by the second client according to the network connection information; and playing audio and video data corresponding to the index information according to the index information.
Optionally, before the monitoring on the port preset in the local area network, the method further includes: and locally starting a preset first service at the first client, and binding the first service with the port.
Optionally, the monitoring a port preset in the local area network includes: listening for the port based on the first service.
Optionally, the establishing a network connection with the second client according to the connection request includes: judging whether the client identification information carried in the connection request belongs to a preset client identification set or not; and when the client identification information belongs to the client identification set, establishing the network connection.
Optionally, the network connection information includes a network address and/or the port of the first client in the local area network.
In a third aspect of the present invention, there is further provided a method for processing audio/video data, where the method is applied to a second client in a local area network, and the method includes: sending a connection request to a first client in the local area network, and receiving network connection information returned by the first client; responding to search operation of a user for audio and video data, and acquiring index information of the audio and video data; and sending the index information to the first client according to the network connection information so that the first client can play the audio and video data according to the index information.
Optionally, the sending a connection request to a first client in the local area network includes: locally starting a preset second service at the second client; and scanning a preset port in the local area network based on the second service, and sending the connection request to the scanned port.
Optionally, the network connection information includes a network address and/or the port of the first client in the local area network.
In a fourth aspect of the present invention, there is further provided an audio/video data processing system, including a first client and a second client located in the same local area network, where the first client is configured to monitor a port preset in the local area network; the second client is used for sending a connection request to the port; the first client is further configured to monitor the connection request, establish a network connection with the second client according to the connection request, generate network connection information, and send the network connection information to the second client; the second client is also used for responding to the searching operation of the user for the audio and video data and acquiring the index information of the audio and video data; the second client is further used for sending the index information to the first client according to the network connection information; the first client is further used for playing the audio and video data according to the index information.
In a fifth aspect of the present invention, there is also provided an apparatus for processing audio/video data, where the apparatus is applied in a local area network, and the apparatus is provided with a first client, and includes: the monitoring module is used for monitoring a port preset in the local area network; the connection module is used for monitoring a connection request from a second client in the local area network, establishing network connection with the second client according to the connection request, generating network connection information and returning the network connection information to the second client; the receiving module is used for receiving the index information transmitted by the second client according to the network connection information; and the playing module is used for playing the audio and video data corresponding to the index information according to the index information.
Optionally, the apparatus further comprises: and the binding module is used for locally starting a preset first service at the first client before the monitoring module monitors a preset port in the local area network, and binding the first service with the port.
Optionally, the monitoring module is configured to monitor the port based on the first service.
Optionally, the connection module includes: the identification judgment module is used for judging whether the client identification information carried in the connection request belongs to a preset client identification set or not; and the network connection module is used for establishing the network connection when the client identification information belongs to the client identification set.
Optionally, the network connection information includes a network address and/or the port of the first client in the local area network.
In a sixth aspect of the present invention, there is also provided an apparatus for processing audio/video data, where the apparatus is applied in a local area network, and the apparatus is provided with a second client, and includes: the request module is used for sending a connection request to a first client in the local area network and receiving network connection information returned by the first client; the acquisition module is used for responding to search operation of a user for audio and video data and acquiring index information of the audio and video data; and the sending module is used for sending the index information to the first client according to the network connection information so that the first client can play the audio and video data according to the index information.
Optionally, the request module is configured to locally start a preset second service at the second client; and scanning a preset port in the local area network based on the second service, and sending the connection request to the scanned port.
Optionally, the network connection information includes a network address and/or the port of the first client in the local area network.
In another aspect of the present invention, there is also provided an electronic device, including a processor, a communication interface, a memory and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus; a memory for storing a computer program; and the processor is used for realizing the audio and video data processing method in any aspect when executing the program stored in the memory.
In yet another aspect of the present invention, there is also provided a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to execute the processing method of audio-video data according to any one of the above aspects.
In yet another aspect of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method for processing audio-video data according to any one of the above aspects.
The method for processing the audio and video data, provided by the embodiment of the invention, is applied to a local area network comprising a first client and a second client, monitors a port preset in the local area network by using the first client, monitors a connection request sent by the second client, further establishes network connection with the second client according to the connection request, and sends generated network connection information to the second client. The second client sends the index information of the audio and video data to the first client according to the network connection information, and the first client establishes network connection between the first client and the second client in the local area network according to the technical means of playing the audio and video data by the index information. The second client transmits the index information of the audio and video data searched by the user to the first client through network connection with the first client, and the first client plays the audio and video data searched by the user on the second client according to the index information. The technical problem that the function requirements of respective application programs on the existing mobile terminal and the television terminal are high is solved. The function of seamlessly playing the audio and video data on the first client by transmitting the index information of the audio and video data through the network connection between the first client and the second client on the basis of not needing other hardware is realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a flowchart illustrating steps of a method for processing audio/video data according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating steps of another audio/video data processing method according to an embodiment of the present invention.
Fig. 3 is a flowchart illustrating steps of a further method for processing audio/video data according to an embodiment of the present invention.
Fig. 4 is a schematic flow chart of a method for playing audio and video data according to an embodiment of the present invention.
Fig. 5 is a schematic structural diagram of an audio/video data processing system according to an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of an audio/video data processing apparatus according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of another audio-video data processing device according to an embodiment of the present invention.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
The embodiment of the invention provides a method for processing audio and video data, wherein a first client at a television end can monitor a port preset in a local area network. And the second client side positioned on the mobile terminal sends a connection request to a port preset in the local area network and waits for the response of the first client side. And after the first client receives the connection request and establishes network connection with the second client, the first client returns network connection information to the second client. The second client stores the network connection information to the local, and transmits the index information of the audio and video data searched by the user to the first client according to the network connection information, and the first client can further play the audio and video data according to the index information.
As shown in fig. 1, a flowchart illustrating steps of a method for processing audio/video data according to an embodiment of the present invention is shown. The method for processing the audio and video data can be applied to a local area network comprising a first client and a second client, and in practical application, the first client can be installed at a television end, and the television end can be an intelligent television. The second client can be installed on a mobile terminal, and the mobile terminal can be a smart phone, a notebook computer, a tablet computer and the like. The processing method of the audio and video data specifically comprises the following steps.
Step 101, a first client monitors a port preset in a local area network.
In the embodiment of the present invention, the preset port may be a port through which the first client receives a connection request of the second client in the lan. The port can be preset according to actual conditions, and the port is set in the first client.
In practical application, the first client may start a first service preset locally, bind the first service with the port, and then monitor the port based on the first service. In a specific example, the first service may be a background running component for performing tasks that run for a long time and do not require user interaction.
Step 102, the second client sends a connection request to the port.
In the embodiment of the present invention, the second client may locally start a preset second service, scan the port in the local area network based on the second service, and send a connection request to the scanned port.
In practical applications, the connection request may contain client identification information of the second client. The client identification information may be a client version number or a network address.
Step 103, the first client monitors the connection request, establishes network connection with the second client according to the connection request, generates network connection information, and sends the network connection information to the second client.
In the embodiment of the present invention, the first client monitors the connection request from the port, analyzes the connection request to obtain the client identification information, and further determines whether the client identification information belongs to a preset client identification set. If the client identification information carried in the connection request belongs to the client identification set, the connection request is considered to be legal, and network connection with the second client can be established according to the connection request. And if the client identification information carried in the connection request does not belong to the client identification set, the connection request is considered to be illegal, and the network connection with the second client does not need to be established.
When the first client establishes network connection with the second client according to the connection request, network connection information can be generated. The network connection information may include, but is not limited to: the network address and/or the port of the first client within the local area network. The first client transmits the network connection information to the second client through the network connection between the first client and the second client.
And 104, the second client responds to the searching operation of the user for the audio and video data to acquire the index information of the audio and video data.
In embodiments of the present invention, after the second client receives the network connection information, the network connection information may be stored locally at the second client.
The user on the second client performs a search operation on the second client for the audio-video data, which may include but is not limited to: and inputting related information of the audio and video data. The related information may be name, author, year, type, language, etc. And the second client responds to the searching operation to acquire the index information of the audio and video data. The index information can be understood as a unique identification of the audio-video data. In practical applications, the user performs a search operation on the second client, for example, the user inputs related information at a search bar of the second client, the related information being described by taking a name, an author, and a year as examples. And the second client combines the name, the author and the year into a character string, takes the character string as a key character string, and searches index information corresponding to the key character string in an index information database. The index information database may be accessible to a local area network or the internet.
And 105, the second client sends the index information to the first client according to the network connection information.
In the embodiment of the invention, the second client sends the acquired index information to the first client through the network connection with the first client according to the locally stored network connection information.
And 106, the first client plays the audio and video data according to the index information.
In the embodiment of the invention, the first client can search the audio and video data in the audio and video database by taking the index information as a keyword. Specifically, the storage address of the audio and video data in the audio and video database can be searched and obtained. If the audio and video database and the first client access the same local area network, the storage address may include a network address of the audio and video database in the local area network and a storage path of the audio and video data in the audio and video database. If the audio and video database is accessed to the internet, the storage address can comprise a network address of the audio and video database on the internet and a storage path of the audio and video data in the audio and video database.
After the first client searches for the storage address, the audio and video data can be downloaded to the local for playing, or the audio and video data can be played on line.
The method for processing the audio and video data, provided by the embodiment of the invention, is applied to a local area network comprising a first client and a second client, monitors a port preset in the local area network by using the first client, monitors a connection request sent by the second client, further establishes network connection with the second client according to the connection request, and sends generated network connection information to the second client. The second client sends the index information of the audio and video data to the first client according to the network connection information, and the first client establishes network connection between the first client and the second client in the local area network according to the technical means of playing the audio and video data by the index information. When the first client is located at the television side and the second client is located at the mobile terminal, the network connection between the first client and the second client is the network connection between the television side and the mobile terminal. The second client transmits the index information of the audio and video data searched by the user to the first client through network connection with the first client, and the first client plays the audio and video data searched by the user on the second client according to the index information, so that the television end is prevented from being controlled by an entity remote controller, the operation steps of the user on the entity remote controller are reduced, and the technical problem that the function requirements of respective application programs on the existing mobile terminal and the television end are high is solved. The function of seamlessly playing the audio and video data on the first client is achieved by transmitting the index information of the audio and video data through the network connection between the first client and the second client on the basis of not needing other hardware, and the effects of reducing operation steps, improving operation efficiency and reducing the operation pressure of the television are achieved.
As shown in fig. 2, a flowchart of steps of another method for processing audio/video data according to an embodiment of the present invention is shown. The audio and video data processing method can be applied to a first client in a local area network, and a second client is also included in the local area network. In practical application, the first client may be installed at a television end, and the television end may be an intelligent television. The second client can be installed on a mobile terminal, and the mobile terminal can be a smart phone, a notebook computer, a tablet computer and the like. The processing method of the audio and video data specifically comprises the following steps.
Step 201, monitoring a port preset in a local area network.
In the embodiment of the invention, the preset port can be monitored based on the first service locally preset by the first client. Therefore, before listening to the preset port, the first service may be started locally at the first client, and the first service may be bound to the preset port. Wherein the first service may be used to listen to the bound port. When the first service is bound to a preset port, a port number of the port to be bound may be added to the first service. After the first service is bound with the preset port, monitoring the bound port based on the first service.
Step 202, monitoring a connection request from the second client, establishing a network connection with the second client according to the connection request, generating network connection information, and returning the network connection information to the second client.
In an embodiment of the present invention, the bound port is monitored based on the first service, and whether a connection request is received from the bound port is monitored. If the connection request is monitored, whether the client identification information carried in the connection request belongs to a preset client identification set can be judged. The client identification information in the set of client identifications may be considered client identification information of a legitimate second client. And the second client corresponding to the client identification information in the client identification set has the authority or qualification of establishing network connection with the first client.
And if the client identification information carried in the connection request belongs to the client identification set, establishing network connection with the second client according to the connection request information. If the client identification information carried in the connection request does not belong to the client identification set, the connection request can be discarded.
Step 203, receiving the index information transmitted by the second client according to the network connection information.
In the embodiment of the present invention, after the network connection between the first client and the second client is established, the second client may transmit the acquired index information of the audio and video data to the first client through the network connection.
And 204, playing audio and video data corresponding to the index information according to the index information.
In an embodiment of the present invention, the index information is index information of audio/video data targeted by a search operation performed by a user on the second client. After receiving the index information, the first client can search the storage address of the audio and video data in the audio and video database according to the index information, and then play the audio and video data according to the storage address.
As shown in fig. 3, a flowchart illustrating steps of another method for processing audio/video data according to an embodiment of the present invention is shown. The audio and video data processing method can be applied to a second client in the local area network, and the first client is also included in the local area network. In practical application, the first client may be installed at a television end, and the television end may be an intelligent television. The second client can be installed on a mobile terminal, and the mobile terminal can be a smart phone, a notebook computer, a tablet computer and the like. The processing method of the audio and video data specifically comprises the following steps.
Step 301, sending a connection request to the first client, and receiving network connection information returned by the first client.
In the embodiment of the present invention, a preset second service is locally started at a second client, and a port preset in the local area network is scanned based on the second service. The preset port is the same as the port bound to the first service in the above embodiment. And sending a connection request to the port after the port is obtained based on the second service scanning. In practical applications, the connection request may contain client identification information of the second client.
After the first client receives the connection request, if the first client judges that the client identification information carried in the connection request belongs to the client identification set, network connection with the second client is established according to the connection request. And returns the network connection information to the second client over the network connection. In practical applications, the network connection information may include a network address and/or the port of the first client in the lan.
After receiving the network connection information, the network connection information may be stored locally at the second client, so that the subsequent second client may directly perform communication connection with the first client according to the network connection information without requesting to establish a network connection with the first client again.
In an exemplary embodiment of the invention, one or more ports within the local area network may be scanned based on the second service. Wherein each port may correspond to a first client. If multiple ports are scanned, connection requests can be sent to multiple first clients. That is, if there are multiple first clients in the local area network, the second client may send connection requests to the multiple first clients, and then establish network connections with the multiple first clients.
Step 302, in response to a search operation of a user for audio and video data, obtaining index information of the audio and video data.
In the embodiment of the present invention, the user on the second client may perform a search operation for the audio/video data, such as inputting a name of the audio/video data. Index information of the audio and video data can be acquired in response to the search operation. In practical application, the index information may be a number of the audio/video data, and the number is used to determine the unique audio/video data.
Step 303, sending the index information to the first client according to the network connection information, so that the first client plays the audio and video data according to the index information.
In an embodiment of the invention, the index information may be sent to the first client based on network connection information stored locally at the second client. Specifically, the network address or the port of the first client may be determined according to the network connection information, and then the index information may be sent to the network address or the port of the first client.
In practical application, the first client may search the audio and video data corresponding to the index information in the audio and video database by using the index information as a search keyword. Specifically, the storage address of the audio and video data can be searched, and the audio and video data can be downloaded and/or played according to the storage address.
The first service and the second service may be components of the first client and the second client, respectively, which are continuously running in the background, and the first service and the second service may run in the background indefinitely after being started. The first service and the second service may define respective executed functions, and may specifically call related function execution functions. If the first service is bound with the port through the related function, and the bound port is monitored. The second service scans the ports through a correlation function, and so on.
Based on the above description about the embodiment of the audio and video data processing method, a method for playing audio and video data is introduced below, and the method for playing audio and video data can be applied to a local area network, in which a television terminal and a mobile phone terminal are accessed. As shown in fig. 4, fig. 4 is a flow chart diagram illustrating a method for playing audio/video data.
In step 401, a monitoring service may be started on the tv, where the monitoring service may be a service supporting hypertext Transfer Protocol (HTTP). The monitoring service can be bound with an appointed port and monitor the passed binding so as to wait for network connection with a mobile phone end in the local area network.
Step 402, a connection service may be started on the mobile phone side, and the connection service may attempt to send a connection request to an appointed port in the local area network to request a television side corresponding to the appointed port to establish a network connection.
Step 403, after receiving the connection request from the mobile phone, the television establishes a network connection with the mobile phone, and returns network connection information to the mobile phone.
In step 404, the mobile phone may store the network connection information from the television in a local area, so as to transmit the index information of the audio/video data by directly using the network connection information in the following.
Step 405, the mobile phone terminal may respond to a search operation of the user for the audio and video data, acquire index information of the audio and video data, and then transmit the index information to a corresponding television terminal according to pre-stored network connection information.
In step 406, after receiving the index information from the mobile phone, the television can start the search and play module to search and play the audio/video data corresponding to the index information.
The mobile phone terminal in the embodiment of the invention can send a connection request to a port in the local area network in advance to request for establishing network connection with the television terminal. After the network connection is established, the mobile phone terminal can cache the network connection information from the television terminal to the local, so that the network connection information is directly utilized when the index information is subsequently sent to the television terminal, the network connection with the television terminal is not required to be established every time the index information is sent, the communication times between the television terminal and the mobile phone terminal are reduced, and the operating pressure of the television terminal and the mobile phone terminal and the occupation condition of a local area network are reduced.
The embodiment of the invention can acquire the index information of the audio and video data on the mobile phone terminal, and avoids inputting keywords on the traditional entity remote controller. By means of the operation convenience and diversity of the mobile phone terminal, the steps of searching audio and video data by a user are reduced, and the operation time of the user is saved. Moreover, compared with the traditional virtual remote controller with the mobile phone end as the television end, the remote controller application program does not need to be installed on the mobile phone end in the embodiment of the invention, the first client in the embodiment of the invention can be an audio and video application program, the television remote controller function does not need to be provided, the screen projection protocol does not need to be supported, and the functional requirement on the first client is reduced.
The embodiment of the invention can transmit the index information of the audio and video data acquired on the mobile phone terminal to the television terminal through the pre-established network connection so as to search and play the audio and video data on the television terminal. The embodiment of the invention can establish the network connection between the first client and the second client without other hardware equipment. And after the network connection between the first client and the second client is established, the index information of the audio and video data can be transmitted through the network connection. Compared with the traditional screen projection technology, the first client and the second client in the embodiment of the invention do not need to support the screen projection protocol, and the requirements on the first client and the second client are lower.
As shown in fig. 5, a schematic structural diagram of a processing system of audio-video data according to an embodiment of the present invention is shown. The audio-video data processing system may comprise a first client 51 and a second client 52 located in the same local area network.
The first client 51 is configured to monitor a port preset in the local area network;
the second client 52 is configured to send a connection request to the port;
the first client 51 is further configured to monitor the connection request, establish a network connection with the second client 52 according to the connection request, generate network connection information, and send the network connection information to the second client 52;
the second client 52 is further configured to respond to a search operation of a user for audio and video data, and acquire index information of the audio and video data;
the second client 52 is further configured to send the index information to the first client 51 according to the network connection information;
the first client 51 is further configured to play the audio and video data according to the index information.
As shown in fig. 6, a schematic structural diagram of an apparatus for processing audio/video data according to an embodiment of the present invention is shown. The processing device of the audio and video data is applied to a local area network, a first client is arranged on the device, and the device comprises:
a monitoring module 61, configured to monitor a port preset in the local area network;
a connection module 62, configured to monitor a connection request from a second client in the local area network, establish a network connection with the second client according to the connection request, generate network connection information, and return the network connection information to the second client;
a receiving module 63, configured to receive index information transmitted by the second client according to the network connection information;
and the playing module 64 is configured to play the audio and video data corresponding to the index information according to the index information.
In an exemplary embodiment of the invention, the apparatus further comprises:
a binding module, configured to locally start a preset first service at the first client before the monitoring module 61 monitors a port preset in the local area network, and bind the first service and the port.
In an exemplary embodiment of the present invention, the listening module 61 is configured to listen to the port based on the first service.
In an exemplary embodiment of the present invention, the connection module 62 includes:
the identification judgment module is used for judging whether the client identification information carried in the connection request belongs to a preset client identification set or not;
and the network connection module is used for establishing the network connection when the client identification information belongs to the client identification set.
In an exemplary embodiment of the invention, the network connection information comprises a network address and/or the port of the first client within the local area network.
As shown in fig. 7, a schematic structural diagram of another audio-video data processing apparatus according to an embodiment of the present invention is shown. The processing device of the audio and video data is applied to a local area network, a second client is arranged on the device, and the device comprises:
a request module 71, configured to send a connection request to a first client in the local area network, and receive network connection information returned by the first client;
the acquisition module 72 is configured to respond to a search operation of a user for audio and video data, and acquire index information of the audio and video data;
and the sending module 73 is configured to send the index information to the first client according to the network connection information, so that the first client plays the audio and video data according to the index information.
In an exemplary embodiment of the present invention, the requesting module 71 is configured to locally start a preset second service at the second client; and scanning a preset port in the local area network based on the second service, and sending the connection request to the scanned port.
In an exemplary embodiment of the invention, the network connection information comprises a network address and/or the port of the first client within the local area network.
An embodiment of the present invention further provides an electronic device, as shown in fig. 8, which includes a processor 81, a communication interface 82, a memory 83, and a communication bus 84, where the processor 81, the communication interface 82, and the memory 83 complete mutual communication through the communication bus 84,
a memory 83 for storing a computer program;
the processor 81 is configured to implement the following steps when executing the program stored in the memory 83:
monitoring a preset port in the local area network; monitoring a connection request from a second client in the local area network, establishing network connection with the second client according to the connection request, generating network connection information and returning the network connection information to the second client; receiving index information transmitted by the second client according to the network connection information; and playing audio and video data corresponding to the index information according to the index information.
Before monitoring the preset port in the local area network, locally starting a preset first service at the first client, and binding the first service with the port.
And when monitoring a port preset in the local area network, monitoring the port based on the first service.
When the network connection with the second client is established according to the connection request, judging whether the client identification information carried in the connection request belongs to a preset client identification set or not; and when the client identification information belongs to the client identification set, establishing the network connection.
The network connection information includes a network address and/or the port of the first client within the local area network.
The processor 81, when executing the program stored in the memory 83, may further implement the following steps:
sending a connection request to a first client in the local area network, and receiving network connection information returned by the first client; responding to search operation of a user for audio and video data, and acquiring index information of the audio and video data; and sending the index information to the first client according to the network connection information so that the first client can play the audio and video data according to the index information.
When the connection request is sent to the first client in the local area network, a preset second service is started locally at the second client; and scanning a preset port in the local area network based on the second service, and sending the connection request to the scanned port.
The network connection information includes a network address and/or the port of the first client within the local area network.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In another embodiment of the present invention, a computer-readable storage medium is further provided, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a computer, the computer is caused to execute the processing method of audio and video data described in any one of the above embodiments.
In a further embodiment of the present invention, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute the processing method of audio-video data as described in any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (14)

1. A processing method of audio and video data is applied to a local area network, wherein the local area network comprises a first client and a second client, and the method comprises the following steps:
the first client monitors a port preset in the local area network;
the second client sends a connection request to the port;
the first client monitors the connection request, establishes network connection with the second client according to the connection request, generates network connection information and sends the network connection information to the second client;
the second client responds to the searching operation of a user for the audio and video data to acquire the index information of the audio and video data;
the second client sends the index information to the first client according to the network connection information;
and the first client plays the audio and video data according to the index information.
2. A method for processing audio/video data is applied to a first client in a local area network, and the method comprises the following steps:
monitoring a preset port in the local area network;
monitoring a connection request from a second client in the local area network, establishing network connection with the second client according to the connection request, generating network connection information and returning the network connection information to the second client;
receiving index information transmitted by the second client according to the network connection information;
and playing audio and video data corresponding to the index information according to the index information.
3. The method according to claim 2, wherein before said listening to a predetermined port in said local area network, said method further comprises:
and locally starting a preset first service at the first client, and binding the first service with the port.
4. The method according to claim 3, wherein the listening to the port preset in the local area network comprises:
listening for the port based on the first service.
5. The method of claim 2, wherein the establishing a network connection with the second client according to the connection request comprises:
judging whether the client identification information carried in the connection request belongs to a preset client identification set or not;
and when the client identification information belongs to the client identification set, establishing the network connection.
6. The method according to any of claims 2 to 5, wherein the network connection information comprises a network address and/or the port of the first client within the local area network.
7. A method for processing audio/video data is applied to a second client in a local area network, and comprises the following steps:
sending a connection request to a first client in the local area network, and receiving network connection information returned by the first client;
responding to search operation of a user for audio and video data, and acquiring index information of the audio and video data;
and sending the index information to the first client according to the network connection information so that the first client can play the audio and video data according to the index information.
8. The method of claim 7, wherein sending a connection request to a first client in the local area network comprises:
locally starting a preset second service at the second client;
and scanning a preset port in the local area network based on the second service, and sending the connection request to the scanned port.
9. The method of claim 8, wherein the network connection information comprises a network address and/or the port of the first client within the local area network.
10. A processing system of audio and video data is characterized in that the system comprises a first client and a second client which are positioned in the same local area network,
the first client is used for monitoring a port preset in the local area network;
the second client is used for sending a connection request to the port;
the first client is further configured to monitor the connection request, establish a network connection with the second client according to the connection request, generate network connection information, and send the network connection information to the second client;
the second client is also used for responding to the searching operation of the user for the audio and video data and acquiring the index information of the audio and video data;
the second client is further used for sending the index information to the first client according to the network connection information;
the first client is further used for playing the audio and video data according to the index information.
11. The device for processing the audio and video data is applied to a local area network, a first client is arranged on the device, and the device comprises:
the monitoring module is used for monitoring a port preset in the local area network;
the connection module is used for monitoring a connection request from a second client in the local area network, establishing network connection with the second client according to the connection request, generating network connection information and returning the network connection information to the second client;
the receiving module is used for receiving the index information transmitted by the second client according to the network connection information;
and the playing module is used for playing the audio and video data corresponding to the index information according to the index information.
12. The device for processing the audio and video data is applied to a local area network, a second client is arranged on the device, and the device comprises:
the request module is used for sending a connection request to a first client in the local area network and receiving network connection information returned by the first client;
the acquisition module is used for responding to search operation of a user for audio and video data and acquiring index information of the audio and video data;
and the sending module is used for sending the index information to the first client according to the network connection information so that the first client can play the audio and video data according to the index information.
13. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method of processing audiovisual data as claimed in any of claims 1 to 9 when executing the program stored in the memory.
14. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is characterized by carrying out the method of processing audio-visual data according to any one of claims 1 to 9.
CN202110218663.0A 2021-02-26 2021-02-26 Audio and video data processing method, system and device, electronic equipment and storage medium Pending CN113014973A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110218663.0A CN113014973A (en) 2021-02-26 2021-02-26 Audio and video data processing method, system and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110218663.0A CN113014973A (en) 2021-02-26 2021-02-26 Audio and video data processing method, system and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113014973A true CN113014973A (en) 2021-06-22

Family

ID=76386488

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110218663.0A Pending CN113014973A (en) 2021-02-26 2021-02-26 Audio and video data processing method, system and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113014973A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050050028A1 (en) * 2003-06-13 2005-03-03 Anthony Rose Methods and systems for searching content in distributed computing networks
CN101873481A (en) * 2010-03-01 2010-10-27 杭州海康威视数字技术股份有限公司 Method and system for playing back videos in video monitoring system and network monitoring client side
CN103634688A (en) * 2013-12-23 2014-03-12 乐视致新电子科技(天津)有限公司 Method and device of controlling smart television to play video files by mobile communication terminal
CN104469475A (en) * 2014-11-19 2015-03-25 乐视网信息技术(北京)股份有限公司 Information interactive method, device and system and smart television
CN105578240A (en) * 2015-12-23 2016-05-11 广州视源电子科技股份有限公司 Television terminal interaction method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050050028A1 (en) * 2003-06-13 2005-03-03 Anthony Rose Methods and systems for searching content in distributed computing networks
CN101873481A (en) * 2010-03-01 2010-10-27 杭州海康威视数字技术股份有限公司 Method and system for playing back videos in video monitoring system and network monitoring client side
CN103634688A (en) * 2013-12-23 2014-03-12 乐视致新电子科技(天津)有限公司 Method and device of controlling smart television to play video files by mobile communication terminal
CN104469475A (en) * 2014-11-19 2015-03-25 乐视网信息技术(北京)股份有限公司 Information interactive method, device and system and smart television
CN105578240A (en) * 2015-12-23 2016-05-11 广州视源电子科技股份有限公司 Television terminal interaction method and system

Similar Documents

Publication Publication Date Title
US8195650B2 (en) Method and system for providing information using a supplementary device
CN102413151B (en) Network resource sharing method and system
EP2680500A1 (en) Application discovery
US11310066B2 (en) Method and apparatus for pushing information
CN113347242B (en) Cross-device resource access method and device, storage medium and electronic device
US20130018948A1 (en) Method and system for use in providing network services interchange
JP2009273105A (en) Audio/video streaming signal provision method and sharing system
WO2020206660A1 (en) Network resource request method and apparatus, electronic device and storage medium
US20130002540A1 (en) Operation information generation device
US20120331096A1 (en) Telecommunications terminal, broadcast receiving terminal and computer program
CN109446445B (en) Resource acquisition method and device
US20090271855A1 (en) Computer based method and system for registering a user at a server computer system
JP5624056B2 (en) Method, apparatus and computer program for generating a query
CN114039961A (en) Message pushing method, device, server and storage medium based on WebSocket
CN111225248B (en) On-demand content management method and content distribution network on-demand server
CN113014973A (en) Audio and video data processing method, system and device, electronic equipment and storage medium
CN113285920B (en) Service access method, device, equipment and storage medium
US9426510B2 (en) Method and apparatus for searching over a network
KR102072003B1 (en) Method and device for resource sharing between devices
CN111371868A (en) Method, device, equipment, system and storage medium for associating web application and client
CN115474100B (en) Method for sharing multimedia information and set top box system using the same
KR100788682B1 (en) Method and apparatus for providing transmission service of sound source contents
CN116582691A (en) Video data loading method and device, storage medium and electronic equipment
CN116208396A (en) Authentication method of access request, device storage medium and electronic device
WO2014180369A1 (en) Method and device for processing data of iptv based on distributed database

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210622