CN103391473B - Method and device for providing and acquiring audio and video - Google Patents
Method and device for providing and acquiring audio and video Download PDFInfo
- Publication number
- CN103391473B CN103391473B CN201310293677.4A CN201310293677A CN103391473B CN 103391473 B CN103391473 B CN 103391473B CN 201310293677 A CN201310293677 A CN 201310293677A CN 103391473 B CN103391473 B CN 103391473B
- Authority
- CN
- China
- Prior art keywords
- terminal
- audio
- video
- multimedia resource
- thread
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 63
- 238000004891 communication Methods 0.000 claims abstract description 65
- 238000012545 processing Methods 0.000 claims description 16
- 230000006835 compression Effects 0.000 claims description 14
- 238000007906 compression Methods 0.000 claims description 14
- 230000006978 adaptation Effects 0.000 claims description 9
- 238000000926 separation method Methods 0.000 claims description 6
- 230000000977 initiatory effect Effects 0.000 claims 2
- 230000006870 function Effects 0.000 description 15
- 238000010586 diagram Methods 0.000 description 14
- 238000003860 storage Methods 0.000 description 8
- 230000005540 biological transmission Effects 0.000 description 7
- 238000004590 computer program Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000005484 gravity Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Landscapes
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention discloses a method and a device for providing and acquiring audio and video, wherein the method for providing the audio and video comprises the following steps: establishing communication connection with a second terminal in the process of sending a first multimedia resource to a first terminal through a first thread; receiving a request for acquiring video and/or audio in a second multimedia resource sent by the second terminal; and starting a second thread to send the requested video and/or audio in the second multimedia resource to the second terminal. The embodiment of the invention can realize the purpose of simultaneously providing the same or different multimedia resources for a plurality of terminals by sending the first multimedia resource to the first terminal through the first thread and sending the second multimedia resource to the second terminal through the second thread.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for providing and acquiring an audio and video.
Background
The television serves as an entertainment center of a family and provides multimedia resource playing for users. The traditional television plays the received cable television signal by connecting with a cable television interface. With the development of science and technology, the existing television can play a cable television and also can acquire multimedia resources through a network to play by connecting a set top box or a built-in network module, a decoding module and the like.
However, the current television can only play pictures and sound in multimedia resources at the same time, and since there are many people in the family, devices such as a television and the like with a play-out function may affect other members in the family, for example, watching tv at night, and pictures and/or sound of the television may affect other members.
Therefore, a method for processing pictures and sounds in multimedia resources according to user requirements is needed.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method and an apparatus for providing and acquiring an audio/video, which can process pictures and sounds in multimedia resources according to user requirements.
In order to achieve the above object, an embodiment of the present invention provides a method for providing audio and video, including the following steps:
establishing wireless connection with a terminal;
establishing communication connection with a second terminal in the process of sending a first multimedia resource to a first terminal through a first thread;
receiving a request for acquiring video and/or audio in a second multimedia resource sent by the second terminal;
and starting a second thread to send the requested video and/or audio in the second multimedia resource to the second terminal.
In the embodiment of the invention, the first multimedia resource is sent to the first terminal through the first thread, and the second multimedia resource is sent to the second terminal through the second thread, so that the aim of simultaneously providing the same or different multimedia resources for a plurality of terminals can be realized.
As a preferable aspect of the above technical solution, the method further includes: the second multimedia resource is a first multimedia resource, and when the second terminal requests to acquire the video of the second multimedia resource, the audio in the first multimedia resource is sent to the first terminal through a first thread, and the video in the first multimedia resource is synchronously sent to the second terminal through a second thread;
the second multimedia resource is a first multimedia resource, and when the second terminal requests to acquire the audio of the second multimedia resource, the video in the first multimedia resource is sent to the first terminal through a first thread, and the audio in the first multimedia resource is synchronously sent to the second terminal through a second thread;
and when the second terminal requests to acquire the video and the audio of the second multimedia resource, the video and the audio in the first multimedia resource are synchronously sent to the second terminal through a second thread. This allows video and audio from the same multimedia asset to be viewed and listened to separately by different terminals.
Preferably, the video and audio in the first multimedia resource are synchronously sent to the second terminal through the second thread, and then the method further comprises: and after receiving a receiving selection returned by the second terminal, starting a second thread according to the selection to send the audio and/or video in the second multimedia resource to the second terminal. This enables the selection of the transmission of video and/or audio of the multimedia asset according to the reception returned by the second terminal.
As a preferable aspect of the above technical solution, the method further includes:
and when a second thread is started to send the requested audio in the second multimedia resource to the second terminal, sending the video in the second multimedia resource to the first terminal and performing split-screen display on the video of the first multimedia resource. The video of the second multimedia resource can be played in the first terminal, and the audio of the second multimedia resource is played in the second terminal so as to be convenient for a user to listen, so that the playing of the video and the audio has more choices, the use by the user is convenient, and the playing of the video and the audio is not influenced by each other.
As a preferable aspect of the above technical solution, the method further includes:
when a second multimedia resource requested by a second terminal is not stored in the equipment, searching the multimedia resource in the local corresponding resource server; when the resource server has the second multimedia resource, starting a second thread to send the video and/or audio in the second multimedia resource in the resource server to the second terminal; and when the resource server does not have the second multimedia resource, searching the second multimedia resource through the network, and starting a second thread after downloading to send the video and/or audio in the second multimedia resource to the second terminal.
As a preferred aspect of the foregoing technical solution, the starting of a second thread to send a requested video and/or audio in the second multimedia resource to the second terminal includes: sending the compressed packets of the video and/or audio in the second multimedia resource requested by the second terminal to the second terminal; or decoding the video compressed packet and/or the audio compressed packet in the second multimedia resource requested by the second terminal, and sending the decoded video and/or audio to the second terminal. The transmission speed can be faster by transmitting the compressed packet, and the decoded video and/or audio is transmitted to the second terminal, so that the burden of the second terminal can be reduced.
Preferably, before the second thread is started to send the requested video and/or audio in the second multimedia resource to the second terminal, the method further includes: and carrying out adaptation processing on the video and/or audio requested by the second terminal according to the configuration attribute of the second terminal.
Preferably, in the above technical solution, the first terminal and/or the second terminal are separable components of the device and establish a wireless communication connection when the first terminal and/or the second terminal are in a separated state; when the mobile terminal is in a non-separation state, establishing wired communication connection or near field wireless connection; or when the first terminal and/or the second terminal are/is an inseparable part of the device, establishing wired communication connection or near-field wireless connection.
The embodiment of the invention also provides a method for acquiring the audio and video, which comprises the following steps:
establishing communication connection with audio and video providing equipment which is sending a first media resource to a first terminal through a first thread;
sending a request for acquiring video and/or audio in the second multimedia resource;
receiving video and/or audio in the second multimedia resource sent by the audio and video providing equipment through a second thread;
playing the received video and/or audio.
According to the method, the video and/or audio in the multimedia resource is obtained through the audio and video providing equipment, the flexibility of obtaining the multimedia resource is improved, and the use experience of a user is improved.
The embodiment of the present invention further provides an apparatus for providing audio and video, including:
the first connection module is used for establishing communication connection with a second terminal in the process of sending the first multimedia resource to the first terminal through the first thread;
the first receiving module is used for receiving a request for acquiring video and/or audio in a second multimedia resource, which is sent by the second terminal;
and the first sending module is used for starting a second thread to send the requested video and/or audio in the second multimedia resource to the second terminal.
As a preference of the above technical solution, the apparatus further includes a second sending module;
the second multimedia resource is a first multimedia resource, and when the second terminal requests to acquire the video of the second multimedia resource, the second sending module is used for sending the audio in the first multimedia resource to the first terminal through a first thread, and the first sending module synchronously sends the video in the first multimedia resource to the second terminal through a second thread;
the second multimedia resource is a first multimedia resource, and when the second terminal requests to acquire the audio of the second multimedia resource, the second sending module is used for sending the video in the first multimedia resource to the first terminal through a first thread, and the first sending module is used for synchronously sending the audio in the first multimedia resource to the second terminal through a second thread;
the second multimedia resource is a first multimedia resource, and when the second terminal requests to acquire the video and audio of the second multimedia resource, the first sending module is used for synchronously sending the video and audio in the first multimedia resource to the second terminal through a second thread.
As a preferable aspect of the above, the apparatus further includes:
the second receiving module is used for receiving a receiving selection returned by the second terminal;
and the first sending module is used for starting a second thread according to the selection to send the audio and/or video in the second multimedia resource to the second terminal.
As a preferable aspect of the above, the apparatus further includes:
and the split-screen display module is used for sending the video in the second multimedia resource to the first terminal to perform split-screen display with the video in the first multimedia resource when a second thread is started to send the requested audio in the second multimedia resource to the second terminal.
As a preferable aspect of the above, the apparatus further includes:
the first searching module is used for searching the multimedia resource in the local corresponding resource server when the second multimedia resource requested by the second terminal is not stored in the equipment;
the first sending module is used for starting a second thread to send the video and/or audio in the second multimedia resource in the resource server to the second terminal when the resource server has the second multimedia resource;
the second searching module is used for searching and downloading the second multimedia resource through a network when the resource server does not have the second multimedia resource;
the first sending module is used for starting a second thread to send the video and/or audio in the downloaded second multimedia resource to the second terminal.
Preferably, the first sending module is configured to send a video compression packet and/or an audio compression packet in a second multimedia resource requested by the second terminal to the second terminal; alternatively, the first transmitting module comprises:
a decoding unit, configured to decode a video compression packet and/or an audio compression packet in a second multimedia resource requested by the second terminal;
and the sending unit is used for sending the decoded video and/or audio to the second terminal.
As a preferable aspect of the above, the apparatus further includes:
and the adaptation module is used for carrying out adaptation processing on the video and/or audio requested by the second terminal according to the configuration attribute of the second terminal before a second thread is started to send the requested video and/or audio in the second multimedia resource to the second terminal.
Preferably, as a preferred aspect of the foregoing technical solution, the first connection module is configured to establish a wireless communication connection when the first terminal and/or the second terminal are separable components of the device and are in a separated state; when the mobile terminal is in a non-separation state, establishing wired communication connection or near field wireless connection; or when the first terminal and/or the second terminal are/is an inseparable part of the device, establishing wired communication connection or near-field wireless connection.
The embodiment of the present invention further provides a device for acquiring an audio and a video, including:
the second connection module is used for establishing communication connection with audio and video providing equipment which is sending the first media resource to the first terminal through the first thread;
a third sending module, configured to send a request for obtaining video and/or audio in a second multimedia resource;
the third receiving module is used for receiving the video and/or the audio in the second multimedia resource sent by the audio and video providing equipment through a second thread;
and the playing module is used for playing the received video and/or audio.
An embodiment of the present invention further provides a terminal device, which includes a memory, and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by one or more processors, where the one or more programs include instructions for:
establishing communication connection with a second terminal in the process of sending a first multimedia resource to a first terminal through a first thread;
receiving a request for acquiring video and/or audio in a second multimedia resource sent by the second terminal;
and starting a second thread to send the requested video and/or audio in the second multimedia resource to the second terminal.
Additional features and advantages of embodiments of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solutions of the embodiments of the present invention are further described in detail with reference to the accompanying drawings and embodiments.
Drawings
The accompanying drawings are included to provide a further understanding of the embodiments of the invention, and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention. In the drawings:
fig. 1 is a flow chart of a main method of providing audio and video in an embodiment of the present invention;
fig. 2 is a flowchart of a detailed method for providing audio and video according to a first embodiment of the present invention;
fig. 3 is a flowchart of a detailed method for providing audio and video according to a second embodiment of the present invention;
fig. 4 is a flowchart of a third detailed method for providing audio and video in the embodiment of the present invention;
fig. 5 is a flowchart illustrating a detailed method for providing audio and video by taking a set-top box as an example in the embodiment of the present invention;
FIG. 6 is a flowchart of a detailed method for split-screen display in an embodiment of the present invention;
fig. 7 is a flowchart of a method for acquiring audio and video in an embodiment of the present invention;
fig. 8 is a main structural schematic diagram of an apparatus for providing audio and video in an embodiment of the present invention;
fig. 9 is a detailed structural schematic diagram of an apparatus for providing audio and video in an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a first sending module in the apparatus for providing audio and video in the embodiment of the present invention;
fig. 11 is a schematic structural diagram of a device for acquiring audio and video in the embodiment of the invention;
fig. 12 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings, and it should be understood that the preferred embodiments described herein are merely illustrative and explanatory of the embodiments of the present invention, and are not restrictive of the embodiments of the invention.
The method for providing the audio and video is mainly used for being implemented in audio and video providing equipment such as an intelligent television or a set top box connected with the television. As shown in fig. 1, a main method flow for providing audio and video in the embodiment of the present invention includes:
step 101: and establishing communication connection with a second terminal in the process of sending the first multimedia resource to the first terminal through the first thread.
Preferably, the first terminal and/or the second terminal are separable parts of the device, wherein the device is a device for implementing the method, such as a set-top box, and the first terminal is a television set that can be inserted into the set-top box, so that the television set is a separable part of the device; or the first terminal and the second terminal are mobile terminals such as tablet computers, and the like, so that the first terminal and the second terminal are separable parts of the set-top box; when the first terminal and/or the second terminal are in a separated state, establishing wireless communication connection with the first terminal and/or the second terminal; when the first terminal and/or the second terminal are in a non-separated state, establishing wired communication connection or near-field wireless connection with the first terminal and/or the second terminal; or, the first terminal and/or the second terminal are inseparable parts of the device, for example, when the device is a television with a built-in set-top box, then the television is an inseparable part of the device; at this time, a wired communication connection or a near field wireless connection is established with the first terminal and/or the second terminal.
Preferably, the communication connection may be established with the second terminal after detecting the connection request sent by the second terminal. For example, a related APP (application program) may be installed in the second terminal in advance, and the connection request is sent by triggering the APP; or the connection request is triggered by a physical key on the second terminal. In addition, when a second terminal under the same wireless transmission protocol is searched, wireless communication connection can be actively established with the second terminal; or establishing communication connection with the second terminal by pressing the function key. The wireless transmission protocol may be, for example, Wi-Fi Direct (the Wi-Fi Direct standard is to allow devices in a wireless NETWORK to be connected to each other without a wireless router), Airplay (a wireless technology allowing devices in the same lan to share data), DLNA (DIGITAL LIVING NETWORK ALLIANCE), NFC (Near Field Communication ), and the like.
Step 102: and receiving a request for acquiring the video and/or audio in the second multimedia resource sent by the second terminal.
Step 103: and starting the second thread to send the video and/or audio in the requested second multimedia resource to the second terminal.
The multimedia resource may be, for example, a television signal, or a multimedia resource acquired through a network or an external memory.
Preferably, in this step, the compressed packet of the video and/or audio requested by the second terminal may be sent to the second terminal, and the second terminal decodes and plays the compressed packet by itself, so that the transmission speed can be faster by transmitting the compressed packet; or the compressed packet of the video and/or audio requested by the second terminal can be decoded, and the decoded video and/or audio is sent to the second terminal, so that the load of the second terminal can be reduced.
Preferably, in this step, before the video and/or audio is sent to the mobile phone, the video and/or audio requested by the mobile phone may be adapted according to the configuration attribute of the mobile phone, and then the adapted video and/or audio is sent to the mobile phone, in order to adapt the playing type (i.e. file format) and the configuration parameters such as resolution and size of the mobile phone.
Preferably, the second multimedia resource is the first multimedia resource, and when the second terminal requests to acquire the video of the second multimedia resource, the audio in the first multimedia resource is sent to the first terminal through the first thread, and the video in the first multimedia resource is synchronously sent to the second terminal through the second thread; when the second multimedia resource is the first multimedia resource and the second terminal requests to acquire the audio of the second multimedia resource, the video in the first multimedia resource is sent to the first terminal through the first thread, and the audio in the first multimedia resource is synchronously sent to the second terminal through the second thread; and when the second multimedia resource is the first multimedia resource and the second terminal requests to acquire the video and the audio of the second multimedia resource, the video and the audio in the first multimedia resource are synchronously sent to the second terminal through the second thread.
Preferably, after the video and the audio in the first multimedia resource are synchronously transmitted to the second terminal through the second thread, the method further comprises: and after receiving a receiving selection returned by the second terminal, starting a second thread according to the selection to send the audio and/or video in the second multimedia resource to the second terminal.
Preferably, when the second thread is started to send the requested audio in the second multimedia resource to the second terminal, the video in the second multimedia resource is sent to the first terminal and is displayed in a split screen manner with the video in the first multimedia resource.
Preferably, when the second multimedia resource requested by the second terminal is not stored in the device, the multimedia resource in the locally corresponding resource server is searched; when the resource server has a second multimedia resource, a second thread is started to send the video and/or audio in the second multimedia resource in the resource server to the second terminal; and when the resource server does not have the second multimedia resource, searching the second multimedia resource through the network, downloading the second multimedia resource, and starting a second thread to send the video and/or the audio in the second multimedia resource to the second terminal.
In the embodiment of the invention, the first multimedia resource is sent to the first terminal through the first thread, and the second multimedia resource is sent to the second terminal through the second thread, so that the aim of simultaneously providing the same or different multimedia resources for a plurality of terminals can be realized.
In the present embodiment, the multimedia resource requested by the second terminal (mobile phone) is a multimedia resource provided to the first terminal (television). Referring to fig. 2, the detailed process flow is as follows:
step 201: the set-top box establishes wired connection with the television. Preferably, the set-top box and the television can be connected in a wireless mode.
Step 202: the set top box sends the multimedia resource A to the television through the first thread.
Step 203: the set-top box receives a request for establishing connection sent by the mobile phone.
Step 204: and the set-top box establishes communication connection with the mobile phone. Preferably, the connection may be by wired or wireless means.
Step 205: the set top box receives a request for acquiring the video in the multimedia resource A, which is sent by the mobile phone.
Step 206: the set top box sends the audio in the multimedia resource A to the television through the first thread, and synchronously sends the video in the multimedia resource A to the mobile phone through the second thread.
Therefore, the video of the multimedia resource A can be watched in the mobile phone, and the audio of the multimedia resource A can be played through the television.
In order to achieve the effect of real-time synchronization, the time of the above-mentioned devices may be calibrated synchronously, wherein any method capable of achieving video and audio synchronization is adopted, and further description is omitted here.
In the present embodiment, the multimedia resource requested by the second terminal (mobile phone) is a multimedia resource provided to the first terminal (television). Referring to fig. 3, the detailed process flow is as follows:
step 301: the set-top box establishes wired connection with the television. Preferably, the set-top box and the television can be connected in a wireless mode.
Step 302: the set top box sends the multimedia resource A to the television through the first thread.
Step 303: the set-top box receives a request for establishing connection sent by the mobile phone.
Step 304: and the set-top box establishes communication connection with the mobile phone. Preferably, the connection may be by wired or wireless means.
Step 305: the set top box receives a request for acquiring the audio in the multimedia resource A, which is sent by the mobile phone.
Step 306: the set top box sends the video in the multimedia resource A to the television through the first thread, and synchronously sends the audio in the multimedia resource A to the mobile phone through the second thread.
Therefore, the audio of the multimedia resource A can be listened through the mobile phone, and the video of the multimedia resource A is played through the television.
In order to achieve the effect of real-time synchronization, the time of the devices can be calibrated in a synchronous manner, then the audio is decoded in a plurality of playing devices at the same time, the occurrence time of the maximum audio amplitude in each time period is calculated, and the synchronization is realized by compensating the time difference according to the occurrence time of the maximum audio amplitude. For example, it is equivalent to decode the audio on the tv and the mobile phone at the same time, synchronize the audio and the video on the tv, and then adjust the mobile phone according to the maximum audio amplitude time taken out from the tv to achieve synchronization.
In the present embodiment, the multimedia resource requested by the second terminal (mobile phone) is a multimedia resource provided to the first terminal (television). Referring to fig. 4, the detailed process flow is as follows:
step 401: the set-top box establishes wired connection with the television.
Step 402: the set top box sends the multimedia resource A to the television through the first thread.
Step 403: the set-top box receives a request for establishing connection sent by the mobile phone.
Step 404: and the set-top box establishes communication connection with the mobile phone.
Step 405: the set top box receives a request for acquiring the video and the audio in the multimedia resource A, which is sent by the mobile phone.
Step 406: and the set top box synchronously sends the video and the audio in the multimedia resource A to the mobile phone through a second thread.
At this point, the set-top box stops sending multimedia asset a to the television via the first thread.
Therefore, the multimedia resource A which is originally played in the television can be watched through the mobile phone.
In the present embodiment, the multimedia resource requested by the second terminal (mobile phone) is a multimedia resource provided to the first terminal (television). Referring to fig. 5, the detailed process flow is as follows:
step 501: the set-top box establishes wired connection with the television.
Step 502: the set top box sends the multimedia resource A to the television through the first thread.
Step 503: the set-top box receives a request for establishing connection sent by the mobile phone.
Step 504: and the set-top box establishes communication connection with the mobile phone.
Step 505: the set top box receives a request for acquiring the video and the audio in the multimedia resource A, which is sent by the mobile phone.
Step 506: and the set top box synchronously sends the video and the audio in the multimedia resource A to the mobile phone through a second thread.
Step 507: and the set top box receives the receiving selection returned by the mobile phone.
In this step, the user can choose to receive only video or audio, or to receive both video and audio, via the handset.
Step 508: and the set top box starts a second thread according to the selection to send the audio and/or video in the multimedia resource A to the mobile phone.
The embodiment can select to send the video and/or audio of the multimedia resource according to the receiving returned by the second terminal.
In the embodiment of the present invention, when the second terminal requests the audio in the second multimedia resource, and the second multimedia resource is different from the first multimedia resource provided to the first terminal, the video of the first multimedia resource and the video of the second multimedia resource may be displayed in a split screen manner at the first terminal, and only the audio of the second multimedia resource is sent to the second terminal, referring to fig. 6, the detailed method flow is as follows:
step 601: and in the process that the set top box sends the multimedia resource A to the television through the first thread, the set top box establishes communication connection with the mobile phone.
Step 602: and the set top box receives a request for acquiring the audio in the multimedia resource B, which is sent by the mobile phone.
Step 603: the set-top box judges whether the multimedia resource B requested by the mobile phone is stored in the local, if so, the step 604 is executed; if not, go to step 605.
Step 604: and the set top box starts a second thread to send the locally stored audio of the multimedia resource B to the mobile phone, and sends the video in the multimedia resource B to the television to be displayed in a split screen mode with the video of the multimedia resource A.
Step 605: the set top box searches whether a multimedia resource B exists in a local corresponding resource server, if so, step 606 is executed; if not, go to step 607.
Step 606: and the set top box starts a second thread to send the audio in the multimedia resource B in the resource server to the mobile phone, and sends the video in the multimedia resource B to the television to be displayed in a split screen mode with the video of the multimedia resource A.
Step 607: the set-top box searches for and downloads multimedia resource B through the network and then performs step 608.
Step 608: and the set top box starts a second thread to send the downloaded audio in the multimedia resource B to the mobile phone, and sends the video in the multimedia resource B to the television to be displayed in a split screen mode with the video of the multimedia resource A.
In this embodiment, when the set-top box processes two multimedia resources simultaneously, one decoder may be used to alternatively decode the two multimedia resources, or two decoders may be used to simultaneously decode the two multimedia resources, respectively.
Through the embodiment, the video of the second multimedia resource can be played on the television, and the audio of the second multimedia resource is played in the mobile phone so as to be convenient for a user to listen, so that the playing of the video and the audio has more choices, the use by the user is convenient, and the playing of the video and the audio does not influence each other.
The embodiment of the present invention further provides a method for acquiring an audio and a video, where the method is applicable to a terminal for playing an audio and a video, such as a television, a mobile phone, a computer, and the like, and referring to fig. 7, the method includes:
step 701: and establishing communication connection with the audio and video providing equipment which is sending the first media resource to the first terminal through the first thread.
The audio and video providing device is, for example, an intelligent television, a set-top box, or the like. In this embodiment, a module capable of establishing a communication connection with other devices and performing transmission is disposed in the smart television or the set-top box.
Step 702: a request to retrieve video and/or audio in the second multimedia asset is sent.
Step 703: and receiving the video and/or audio in the second multimedia resource sent by the audio and video providing equipment through the second thread.
Step 704: playing the received video and/or audio.
According to the embodiment, the video and/or audio in the multimedia resource is acquired through the audio and video providing equipment, so that the flexibility of acquiring the multimedia resource is improved, and the use experience of a user is improved.
An embodiment of the present invention further provides an apparatus for providing audio and video, and referring to fig. 8, the apparatus includes:
a first connection module 801, configured to establish a communication connection with a second terminal in a process of sending a first multimedia resource to a first terminal through a first thread;
a first receiving module 802, configured to receive a request sent by a second terminal to obtain video and/or audio in a second multimedia resource;
a first sending module 803, configured to initiate the second thread to send the requested video and/or audio in the second multimedia resource to the second terminal.
Preferably, referring to fig. 9, the apparatus further comprises a second sending module 804;
when the second multimedia resource is the first multimedia resource and the second terminal requests to acquire the video of the second multimedia resource, the second sending module 804 is configured to send the audio in the first multimedia resource to the first terminal through the first thread, and the first sending module 803 synchronously sends the video in the first multimedia resource to the second terminal through the second thread;
when the second multimedia resource is the first multimedia resource and the second terminal requests to acquire the audio of the second multimedia resource, the second sending module 804 is configured to send the video in the first multimedia resource to the first terminal through the first thread, and the first sending module 803 is configured to synchronously send the audio in the first multimedia resource to the second terminal through the second thread;
when the second multimedia resource is the first multimedia resource and the second terminal requests to obtain the video and audio of the second multimedia resource, the first sending module 803 is configured to send the video and audio of the first multimedia resource to the second terminal synchronously through the second thread.
Preferably, referring to fig. 9, the apparatus for providing audio and video further includes:
a second receiving module 805, configured to receive a receiving selection returned by the second terminal;
the first sending module 803 is configured to start the second thread to send the audio and/or video in the second multimedia resource to the second terminal according to the selection.
Referring to fig. 9, the apparatus for providing audio and video further includes:
and a split-screen display module 806, configured to send the video in the second multimedia resource to the first terminal and perform split-screen display on the video in the first multimedia resource when the second thread is started to send the requested audio in the second multimedia resource to the second terminal.
Preferably, referring to fig. 9, the apparatus for providing audio and video further includes:
a first searching module 807, configured to search a multimedia resource in a locally corresponding resource server when a second multimedia resource requested by a second terminal is not stored in the present device;
the first sending module 803 is configured to, when the resource server has a second multimedia resource, start a second thread to send video and/or audio in the second multimedia resource in the resource server to the second terminal;
the second searching module 808 is configured to search and download the second multimedia resource through the network when the resource server does not have the second multimedia resource;
the first sending module 803 is used to start the second thread to send the video and/or audio in the downloaded second multimedia resource to the second terminal.
Preferably, the first sending module 803 is configured to send the compressed packets of video and/or compressed packets of audio in the second multimedia resource requested by the second terminal to the second terminal; alternatively referring to fig. 10, the first transmitting module 803 includes:
a decoding unit 8031, configured to decode a video compression packet and/or an audio compression packet in the second multimedia resource requested by the second terminal;
a transmitting unit 8032, configured to transmit the decoded video and/or audio to the second terminal.
Preferably, referring to fig. 9, the apparatus for providing audio and video further includes an adaptation module 809, configured to perform adaptation processing on the video and/or audio requested by the second terminal according to a configuration attribute of the second terminal before the second thread is started to send the requested video and/or audio in the second multimedia resource to the second terminal.
Preferably, the first connection module 801 is used for establishing a wireless communication connection when the first terminal and/or the second terminal are separable parts of the device and are in a separated state; when the mobile terminal is in a non-separation state, establishing wired communication connection or near field wireless connection; or
And when the first terminal and/or the second terminal are/is an inseparable part of the equipment, establishing wired communication connection or near-field wireless connection.
The audio and video device provided by the embodiment of the invention can realize the purpose of simultaneously providing the same or different multimedia resources for a plurality of terminals by sending the first multimedia resource to the first terminal through the first thread and sending the second multimedia resource to the second terminal through the second thread.
An embodiment of the present invention further provides a device for acquiring an audio and a video, referring to fig. 11, including:
the second connection module 1101 is configured to establish a communication connection with an audio and video providing device that is sending a first media resource to a first terminal through a first thread;
a third sending module 1102, configured to send a request for obtaining video and/or audio in a second multimedia resource;
a third receiving module 1103, configured to receive video and/or audio in the second multimedia resource sent by the audio and video providing device through a second thread;
and a playing module 1104 for playing the received video and/or audio.
Fig. 12 is a schematic structural diagram of a terminal device according to an embodiment of the present invention. Referring to fig. 12, the terminal device may be configured to implement the session processing method based on gesture operation provided in the foregoing embodiment. Wherein, this terminal equipment can be cell-phone, panel, wearing formula mobile device (like intelligent wrist-watch) etc.. Preferentially, the method comprises the following steps:
the terminal device 700 may include components such as a communication unit 110, a memory 120 including one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a WiFi (wireless fidelity) module 170, a processor 180 including one or more processing cores, and a power supply 190. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the communication unit 110 may be used for receiving and transmitting information or signals during a call, and the communication unit 110 may be an RF (Radio Frequency) circuit, a router, a modem, or other network communication devices. In particular, when the communication unit 110 is an RF circuit, downlink information of the base station is received and then processed by the one or more processors 180; in addition, data relating to uplink is transmitted to the base station. Generally, the RF circuit as a communication unit includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the communication unit 110 may also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), and the like. The memory 120 may be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by operating the software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal device 700, and the like. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 120 may further include a memory controller to provide the processor 180 and the input unit 130 with access to the memory 120.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. Preferably, the input unit 130 may include a touch-sensitive surface 131 and other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. Preferably, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphic user interfaces of the terminal device 700, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 5, touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The terminal device 700 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Preferably, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 141 and/or the backlight when the terminal device 700 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor may detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile phone is stationary, and may be used for applications of recognizing gestures of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and tapping), and other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor that are further configured to the terminal device 700, and are not described herein again.
The audio circuitry 160, speaker 161, microphone 162 may provide an audio interface between the user and the terminal device 700. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and outputs the audio data to the processor 180 for processing, and then transmits the audio data to, for example, another terminal device via the RF circuit 110, or outputs the audio data to the memory 120 for further processing. The audio circuit 160 may also include an earbud jack to provide communication of peripheral headphones with the terminal device 700.
To implement wireless communication, a wireless communication unit 170 may be configured on the terminal device, and the wireless communication unit 170 may be a WiFi module. WiFi belongs to a short-range wireless transmission technology, and the terminal device 700 can help a user to send and receive e-mail, browse a web page, access streaming media, and the like through the wireless communication unit 170, which provides the user with wireless broadband internet access. Although fig. 5 shows the wireless communication unit 170, it is understood that it does not belong to the essential constitution of the terminal device 700 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the terminal device 700, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal device 700 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the mobile phone. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The terminal device 700 further includes a power supply 190 (e.g., a battery) for supplying power to the various components, which may preferably be logically connected to the processor 180 via a power management system, so as to manage charging, discharging, and power consumption via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal device 700 may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the display unit of the terminal device is a touch screen display, the terminal device further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
establishing communication connection with a second terminal in the process of sending a first multimedia resource to a first terminal through a first thread;
receiving a request for acquiring video and/or audio in a second multimedia resource sent by the second terminal;
and starting a second thread to send the requested video and/or audio in the second multimedia resource to the second terminal.
Optionally, the memory further includes instructions to: when the second multimedia resource is the first multimedia resource and the second terminal requests to acquire the video of the second multimedia resource, the audio in the first multimedia resource is sent to the first terminal through the first thread, and the video in the first multimedia resource is synchronously sent to the second terminal through the second thread;
when the second multimedia resource is the first multimedia resource and the second terminal requests to acquire the audio of the second multimedia resource, the video in the first multimedia resource is sent to the first terminal through the first thread, and the audio in the first multimedia resource is synchronously sent to the second terminal through the second thread;
and when the second multimedia resource is the first multimedia resource and the second terminal requests to acquire the video and the audio of the second multimedia resource, the video and the audio in the first multimedia resource are synchronously sent to the second terminal through the second thread.
Optionally, the memory further includes instructions to: and after the video and the audio in the first multimedia resource are synchronously sent to the second terminal through the second thread, and after receiving a receiving selection returned by the second terminal, starting the second thread according to the selection to send the audio and/or the video in the second multimedia resource to the second terminal.
Optionally, the memory further includes instructions to: and when the second thread is started to send the requested audio in the second multimedia resource to the second terminal, sending the video in the second multimedia resource to the first terminal and performing split-screen display on the video of the first multimedia resource.
Optionally, the memory further includes instructions to: when a second multimedia resource requested by a second terminal is not stored in the equipment, searching the multimedia resource in the local corresponding resource server;
when the resource server has the second multimedia resource, starting a second thread to send the video and/or audio in the second multimedia resource in the resource server to the second terminal;
and when the resource server does not have the second multimedia resource, searching the second multimedia resource through the network, downloading the second multimedia resource, and starting a second thread to send the video and/or the audio in the second multimedia resource to the second terminal.
Optionally, the memory further includes instructions to: starting a second thread to send the requested video and/or audio in the second multimedia resource to a second terminal, wherein the starting comprises the following steps:
sending the video compression packet and/or the audio compression packet in the second multimedia resource requested by the second terminal to the second terminal; or
And decoding the video compression packet and/or the audio compression packet in the second multimedia resource requested by the second terminal, and sending the decoded video and/or audio to the second terminal.
Optionally, the memory further includes instructions to: before the second thread is started to send the requested video and/or audio in the second multimedia resource to the second terminal, the method further comprises: and performing adaptation processing on the video and/or audio requested by the second terminal according to the configuration attribute of the second terminal.
Optionally, the memory further includes instructions to: the first terminal and/or the second terminal are separable parts of the equipment and are in a separated state, and wireless communication connection is established; when the mobile terminal is in a non-separation state, establishing wired communication connection or near field wireless connection; or
And when the first terminal and/or the second terminal are/is an inseparable part of the equipment, establishing wired communication connection or near-field wireless connection.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, 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, 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, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (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 apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, 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 apparatus 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 apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (15)
1. A method for providing audio and video is applied to a set top box, and comprises the following steps:
establishing communication connection with a second terminal in the process of sending a first multimedia resource to a first terminal through a first thread;
receiving a request for acquiring video and/or audio in a second multimedia resource sent by the second terminal; wherein the first and second multimedia assets are different multimedia assets;
when a second multimedia resource requested by a second terminal is stored in a local corresponding resource server, starting a second thread to send video and/or audio in the second multimedia resource in the resource server to the second terminal;
when the second multimedia resource requested by the second terminal is not stored in the local corresponding resource server, searching the second multimedia resource through the network, downloading the second multimedia resource, and starting a second thread to send the video and/or audio in the requested second multimedia resource to the second terminal.
2. The method of claim 1, wherein after the video and audio in the first multimedia asset are synchronously transmitted to the second terminal through the second thread, the method further comprises:
and after receiving a receiving selection returned by the second terminal, starting a second thread according to the selection to send the audio and/or video in the second multimedia resource to the second terminal.
3. The method of claim 1, further comprising:
and when a second thread is started to send the requested audio in the second multimedia resource to the second terminal, sending the video in the second multimedia resource to the first terminal and performing split-screen display on the video of the first multimedia resource.
4. The method according to any one of claims 1 to 3, wherein initiating a second thread to send the requested video and/or audio in the second multimedia asset to the second terminal comprises:
sending the compressed packets of the video and/or audio in the second multimedia resource requested by the second terminal to the second terminal; or
And decoding the video compression packet and/or the audio compression packet in the second multimedia resource requested by the second terminal, and sending the decoded video and/or audio to the second terminal.
5. The method of claim 1, wherein before initiating the second thread to send the requested video and/or audio in the second multimedia asset to the second terminal, the method further comprises: and carrying out adaptation processing on the video and/or audio requested by the second terminal according to the configuration attribute of the second terminal.
6. The method according to claim 1, wherein the first terminal and/or the second terminal are separable parts of the device and are in a separated state, and a wireless communication connection is established; when the mobile terminal is in a non-separation state, establishing wired communication connection or near field wireless connection; or
And when the first terminal and/or the second terminal are/is an inseparable part of the equipment, establishing wired communication connection or near-field wireless connection.
7. A method for obtaining audio and video is applied to a second terminal and comprises the following steps:
establishing communication connection with audio and video providing equipment which is sending a first multimedia resource to a first terminal through a first thread; the audio and video providing equipment comprises a set top box;
sending a request for acquiring video and/or audio in the second multimedia resource; wherein the first and second multimedia assets are different multimedia assets;
receiving video and/or audio in the second multimedia resource sent by the audio and video providing equipment through a second thread; when a second multimedia resource requested by a second terminal is stored in a local corresponding resource server, the audio and video providing equipment starts a second thread to send video and/or audio in the second multimedia resource in the resource server to the second terminal, searches the second multimedia resource through a network when the second multimedia resource requested by the second terminal is not stored in the local corresponding resource server, and starts the second thread to send the requested video and/or audio in the second multimedia resource to the second terminal after downloading the second multimedia resource;
playing the received video and/or audio.
8. A device for providing audio and video is characterized in that the device is applied to a set top box and comprises:
the first connection module is used for establishing communication connection with a second terminal in the process of sending the first multimedia resource to the first terminal through the first thread;
the first receiving module is used for receiving a request for acquiring video and/or audio in a second multimedia resource, which is sent by the second terminal; wherein the first and second multimedia assets are different multimedia assets;
the first sending module is used for starting a second thread to send the video and/or audio in a second multimedia resource in a resource server to a second terminal when the second multimedia resource requested by the second terminal is stored in a local corresponding resource server; when the second multimedia resource requested by the second terminal is not stored in the local corresponding resource server, searching the second multimedia resource through the network, downloading the second multimedia resource, and starting a second thread to send the video and/or audio in the requested second multimedia resource to the second terminal.
9. The apparatus of claim 8, further comprising:
the second receiving module is used for receiving a receiving selection returned by the second terminal;
and the first sending module is used for starting a second thread according to the selection to send the audio and/or video in the second multimedia resource to the second terminal.
10. The apparatus of claim 8, further comprising:
and the split-screen display module is used for sending the video in the second multimedia resource to the first terminal to perform split-screen display with the video in the first multimedia resource when a second thread is started to send the requested audio in the second multimedia resource to the second terminal.
11. The apparatus according to any of claims 8-10, wherein the first sending module is configured to send compressed packets of video and/or compressed packets of audio in the second multimedia resource requested by the second terminal to the second terminal; alternatively, the first transmitting module comprises:
a decoding unit, configured to decode a video compression packet and/or an audio compression packet in a second multimedia resource requested by the second terminal;
and the sending unit is used for sending the decoded video and/or audio to the second terminal.
12. The apparatus of claim 8, further comprising:
and the adaptation module is used for carrying out adaptation processing on the video and/or audio requested by the second terminal according to the configuration attribute of the second terminal before a second thread is started to send the requested video and/or audio in the second multimedia resource to the second terminal.
13. The apparatus of claim 8, wherein the first connection module is configured to: the first terminal and/or the second terminal are separable parts of the equipment and establish wireless communication connection when the first terminal and/or the second terminal are in a separated state; when the mobile terminal is in a non-separation state, establishing wired communication connection or near field wireless connection; or
And when the first terminal and/or the second terminal are/is an inseparable part of the equipment, establishing wired communication connection or near-field wireless connection.
14. The device for acquiring the audio and video is applied to a second terminal and comprises the following components:
the second connection module is used for establishing communication connection with audio and video providing equipment which is sending the first multimedia resource to the first terminal through the first thread; the audio and video providing equipment comprises a set top box;
a third sending module, configured to send a request for obtaining video and/or audio in a second multimedia resource; wherein the first and second multimedia assets are different multimedia assets;
the third receiving module is used for receiving the video and/or the audio in the second multimedia resource sent by the audio and video providing equipment through a second thread; when a second multimedia resource requested by a second terminal is stored in a local corresponding resource server, the audio and video providing equipment starts a second thread to send video and/or audio in the second multimedia resource in the resource server to the second terminal, searches the second multimedia resource through a network when the second multimedia resource requested by the second terminal is not stored in the local corresponding resource server, and starts the second thread to send the requested video and/or audio in the second multimedia resource to the second terminal after downloading the second multimedia resource;
and the playing module is used for playing the received video and/or audio.
15. A terminal device applied to a set-top box, the terminal device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs configured to be executed by one or more processors comprise instructions for:
establishing communication connection with a second terminal in the process of sending a first multimedia resource to a first terminal through a first thread;
receiving a request for acquiring video and/or audio in a second multimedia resource sent by the second terminal; wherein the first and second multimedia assets are different multimedia assets;
when a second multimedia resource requested by a second terminal is stored in a local corresponding resource server, starting a second thread to send video and/or audio in the second multimedia resource in the resource server to the second terminal;
when the second multimedia resource requested by the second terminal is not stored in the local corresponding resource server, searching the second multimedia resource through the network, downloading the second multimedia resource, and starting a second thread to send the video and/or audio in the requested second multimedia resource to the second terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310293677.4A CN103391473B (en) | 2013-07-12 | 2013-07-12 | Method and device for providing and acquiring audio and video |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310293677.4A CN103391473B (en) | 2013-07-12 | 2013-07-12 | Method and device for providing and acquiring audio and video |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103391473A CN103391473A (en) | 2013-11-13 |
CN103391473B true CN103391473B (en) | 2022-04-08 |
Family
ID=49535615
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310293677.4A Active CN103391473B (en) | 2013-07-12 | 2013-07-12 | Method and device for providing and acquiring audio and video |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103391473B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103648014A (en) * | 2013-11-15 | 2014-03-19 | 乐视致新电子科技(天津)有限公司 | Method and apparatus for pushing resource to mobile communication terminal by intelligent television |
CN103686317B (en) * | 2013-11-26 | 2017-12-12 | 小米科技有限责任公司 | television channel playing method and device |
CN103841462B (en) * | 2013-12-03 | 2018-01-26 | 深圳市九洲电器有限公司 | Top box of digital machine multi-screen plays the method and device of program |
CN104811794A (en) * | 2014-01-27 | 2015-07-29 | 中兴通讯股份有限公司 | Medium data transmitting method, device and set top box |
CN103888811A (en) * | 2014-03-26 | 2014-06-25 | 宇龙计算机通信科技(深圳)有限公司 | Terminal and resource obtaining system and method |
CN105704110B (en) * | 2014-11-27 | 2020-02-14 | 华为终端有限公司 | Media transmission method, media control method and device |
CN105898498A (en) * | 2015-12-15 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Video synchronization method and system |
CN105654973B (en) * | 2015-12-22 | 2019-03-01 | 深圳创维数字技术有限公司 | A kind of audio file processing method and system |
CN107105034B (en) * | 2017-04-21 | 2020-02-28 | 深圳市斑点猫信息技术有限公司 | Method and device for transmitting multimedia data |
CN109600619A (en) * | 2018-12-11 | 2019-04-09 | 晶晨半导体(上海)股份有限公司 | A kind of time-sharing multiplexing method of decoding hardware |
CN111818373A (en) * | 2020-07-16 | 2020-10-23 | 海信视像科技股份有限公司 | Image processing method, device and system |
CN114296667A (en) * | 2021-03-11 | 2022-04-08 | 海信视像科技股份有限公司 | Display device |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102970589A (en) * | 2012-11-26 | 2013-03-13 | 中国联合网络通信集团有限公司 | Control method and device for multi-terminal-based synergetic media stream play |
-
2013
- 2013-07-12 CN CN201310293677.4A patent/CN103391473B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102970589A (en) * | 2012-11-26 | 2013-03-13 | 中国联合网络通信集团有限公司 | Control method and device for multi-terminal-based synergetic media stream play |
Also Published As
Publication number | Publication date |
---|---|
CN103391473A (en) | 2013-11-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103391473B (en) | Method and device for providing and acquiring audio and video | |
CN106791892B (en) | Method, device and system for live broadcasting of wheelhouses | |
TWI565315B (en) | Method of interactions based on video, terminal, server and system thereof | |
CN104883358B (en) | Interactive approach based on recommendation and device | |
CN103488939B (en) | Method, device and terminal for prompting user | |
CN104796743B (en) | Content item display system, method and device | |
CN106792120B (en) | Video picture display method and device and terminal | |
CN106210755B (en) | A kind of methods, devices and systems playing live video | |
CN110784771B (en) | Video sharing method and electronic equipment | |
CN107333162B (en) | Method and device for playing live video | |
CN105828160B (en) | Video broadcasting method and device | |
CN106254903B (en) | A kind of synchronous broadcast method of multi-medium data, apparatus and system | |
CN105208056B (en) | Information interaction method and terminal | |
CN106254910B (en) | Method and device for recording image | |
US20150304701A1 (en) | Play control method and device | |
CN104618794A (en) | Method and device for playing video | |
CN103491240B (en) | A kind of alarm clock ringing method, device and mobile terminal | |
CN103488450A (en) | Method, device and terminal equipment for projecting picture | |
WO2017215661A1 (en) | Scenario-based sound effect control method and electronic device | |
CN103581762A (en) | Method, device and terminal equipment for playing network videos | |
CN106231433A (en) | A kind of methods, devices and systems playing Internet video | |
CN106101764A (en) | A kind of methods, devices and systems showing video data | |
CN106791916B (en) | Method, device and system for recommending audio data | |
CN109495769B (en) | Video communication method, terminal, smart television, server and storage medium | |
WO2018161788A1 (en) | Multimedia data sharing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
C53 | Correction of patent of invention or patent application | ||
CB02 | Change of applicant information |
Address after: 100085 Beijing city Haidian District Qinghe Street No. 68 Huarun colorful city shopping center two floor 13 Applicant after: Xiaomi Technology Co.,Ltd. Address before: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12 Applicant before: BEIJING XIAOMI TECHNOLOGY Co.,Ltd. |
|
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |