CN113596530A - Method and device for transferring data - Google Patents
Method and device for transferring data Download PDFInfo
- Publication number
- CN113596530A CN113596530A CN202110848639.5A CN202110848639A CN113596530A CN 113596530 A CN113596530 A CN 113596530A CN 202110848639 A CN202110848639 A CN 202110848639A CN 113596530 A CN113596530 A CN 113596530A
- Authority
- CN
- China
- Prior art keywords
- terminal
- data
- circulated
- request
- communication 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 66
- 238000004891 communication Methods 0.000 claims abstract description 59
- 238000012546 transfer Methods 0.000 claims abstract description 18
- 230000008569 process Effects 0.000 claims description 21
- 238000004590 computer program Methods 0.000 claims description 10
- 230000001360 synchronised effect Effects 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 15
- 230000006870 function Effects 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 230000006855 networking Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000001419 dependent effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000002245 particle Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/4104—Peripherals receiving signals from specially adapted client devices
- H04N21/4122—Peripherals receiving signals from specially adapted client devices additional display device, e.g. video projector
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/248—Presentation of query results
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0633—Lists, e.g. purchase orders, compilation or processing
- G06Q30/0635—Processing of requisition or of purchase orders
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/4104—Peripherals receiving signals from specially adapted client devices
- H04N21/4126—The peripheral being portable, e.g. PDAs or mobile phones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/4302—Content synchronisation processes, e.g. decoder synchronisation
- H04N21/4307—Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
- H04N21/43076—Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen of the same content streams on multiple devices, e.g. when family members are watching the same movie on different devices
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Computational Linguistics (AREA)
- Computing Systems (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application discloses a method and a device for transferring data. One embodiment of the method comprises: receiving a transfer request aiming at data to be transferred of a first terminal; establishing a communication connection between the first terminal and a second terminal indicated by the circulation request; and sending the associated information of the data to be circulated to the second terminal based on the communication connection so that the second terminal can acquire and display the data to be circulated according to the associated information. The application provides a method for transferring data, so that the transferred data in the second terminal does not need to be synchronous with the transferred data in the first terminal, and the flexibility of data transfer is improved.
Description
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method and a device for transferring data.
Background
The mobile phone screen projection means that the mobile phone is connected with the display, a mobile phone interface is shared through wireless connection, and a mobile phone screen image is projected onto a television in real time so as to improve the viewing comfort level. The display can be a smart television, a smart display and the like. The screen projection method is characterized in that data displayed by the screen projection equipment is a mirror image of the screen projection equipment, and the display data of the screen projection equipment are synchronous.
Disclosure of Invention
The embodiment of the application provides a method and a device for transferring data.
In a first aspect, an embodiment of the present application provides a method for streaming data, including: receiving a transfer request aiming at data to be transferred of a first terminal; establishing a communication connection between the first terminal and a second terminal indicated by the circulation request; and sending the associated information of the data to be circulated to the second terminal based on the communication connection so that the second terminal can acquire and display the data to be circulated according to the associated information.
In some embodiments, the above method further comprises: and controlling the display process of the data to be circulated in the second terminal according to the control request of the first terminal and/or the second terminal.
In some embodiments, a hongmeng system is deployed in the first terminal and the second terminal; and the establishing of the communication connection between the first terminal and the second terminal indicated by the flow request includes: a communication connection between the first terminal and the second terminal indicated by the flow request is established via the hong meng system.
In some embodiments, the establishing, by the hong meng system, a communication connection between the first terminal and the second terminal indicated by the flow request includes: establishing cross-terminal communication between a first terminal and a second terminal based on a distributed soft bus of a Hongmon system; binding a remote service opened in a first terminal to a second terminal.
In some embodiments, the controlling, according to the control request of the first terminal, the display process of the data to be streamed in the second terminal includes: and sending the control request of the first terminal to the second terminal through the remote service, and controlling the display process of the data to be circulated in the second terminal.
In some embodiments, the receiving a streaming request for data to be streamed for the first terminal includes: according to an acquisition request for acquiring the equipment to be circulated by a first terminal, generating and displaying an equipment list to be circulated, which comprises the equipment to be circulated, through the first terminal; and obtaining selection operation through the first terminal, and determining a transfer request of the data to be transferred aiming at the first terminal.
In a second aspect, an embodiment of the present application provides an apparatus for streaming data, including: a receiving unit configured to receive a streaming request for data to be streamed for a first terminal; an establishing unit configured to establish a communication connection between the first terminal and the second terminal indicated by the flow request; and the circulation unit is configured to send the associated information of the data to be circulated to the second terminal based on the communication connection, so that the second terminal acquires and displays the data to be circulated according to the associated information.
In some embodiments, the above apparatus further comprises: and the control unit is configured to control the display process of the data to be circulated in the second terminal according to the control request of the first terminal and/or the second terminal.
In some embodiments, a hongmeng system is deployed in the first terminal and the second terminal; and a setup unit further configured to: a communication connection between the first terminal and the second terminal indicated by the flow request is established via the hong meng system.
In some embodiments, the establishing unit is further configured to: establishing cross-terminal communication between a first terminal and a second terminal based on a distributed soft bus of a Hongmon system; binding a remote service opened in a first terminal to a second terminal.
In some embodiments, the control unit is further configured to: and sending the control request of the first terminal to the second terminal through the remote service, and controlling the display process of the data to be circulated in the second terminal.
In some embodiments, the receiving unit is further configured to: according to an acquisition request for acquiring the equipment to be circulated by a first terminal, generating and displaying an equipment list to be circulated, which comprises the equipment to be circulated, through the first terminal; and obtaining selection operation through the first terminal, and determining a transfer request of the data to be transferred aiming at the first terminal.
In a third aspect, the present application provides a computer-readable medium, on which a computer program is stored, where the program, when executed by a processor, implements the method as described in any implementation manner of the first aspect.
In a fourth aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement a method as described in any implementation of the first aspect.
According to the method and the device for transferring data, a transfer request of data to be transferred for a first terminal is received; establishing a communication connection between the first terminal and a second terminal indicated by the circulation request; based on communication connection, the associated information of the data to be streamed is sent to the second terminal, so that the second terminal obtains and displays the data to be streamed according to the associated information, and therefore a method for streaming the data is provided, the streaming data in the second terminal does not need to be synchronous with the streaming data in the first terminal, and the flexibility of data streaming is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which one embodiment of the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for streaming data according to the present application;
fig. 3 is a schematic diagram of an application scenario of the method for streaming data according to the present embodiment;
FIG. 4 is a flow diagram of yet another embodiment of a method for streaming data according to the present application;
FIG. 5 is a timing diagram of the operation of one embodiment of a method for streaming data according to the present application;
FIG. 6 is a block diagram of one embodiment of an apparatus for streaming data according to the present application;
FIG. 7 is a block diagram of a computer system suitable for use in implementing embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 illustrates an exemplary architecture 100 to which the methods and apparatus for streaming data of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include first terminals 101, 102, 103, a network 104, a server 105, a network 106, and second terminals 107, 108, 109. The communication connection between the first terminals 101, 102, 103 forms a topological network and the network 104 serves to provide a medium for communication links between the second terminals 101, 102, 103 and the server 105. The communication connections between the second terminals 107, 108, 109 form a topological network and the network 106 serves to provide a medium for communication links between the second terminals 107, 108, 109 and the server 105. The networks 104, 106 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The first terminals 101, 102, 103 and the second terminals 107, 108, 109 may be hardware devices or software supporting network connection for data interaction and data processing. When the first terminals 101, 102, 103 and the second terminals 107, 108, 109 are hardware, they may be various electronic devices supporting network connection, information acquisition, interaction, display, processing, and the like, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers, desktop computers, and the like. When the first terminals 101, 102, 103 and the second terminals 107, 108, 109 are software, they can be installed in the electronic devices listed above. It may be implemented, for example, as multiple software or software modules to provide distributed services, or as a single software or software module. And is not particularly limited herein.
The server 105 may be a server providing various services, for example, a background server that transmits the data to be streamed in the first terminals 101, 102, 103 to the second terminals 107, 108, 109 to display the data to be streamed through the second terminals. As an example, the server 105 may be a cloud server.
The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules (e.g., software or software modules used to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be further noted that the method for streaming data provided by the embodiment of the present application may be executed by a server, may also be executed by a terminal device, and may also be executed by the server and the terminal device in cooperation with each other. Accordingly, each part (for example, each unit) included in the apparatus for transferring data may be entirely disposed in the server, may be entirely disposed in the terminal device, and may be disposed in the server and the terminal device, respectively.
It should be understood that the number of first terminals, second terminals, networks and servers in fig. 1 is merely illustrative. There may be any number of first terminals, second terminals, networks, and servers, as desired for an implementation. When the electronic device on which the method for streaming data operates does not need to perform data transmission with other electronic devices, the system architecture may include only the electronic device (e.g., a server or a terminal device) on which the method for streaming data operates.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for streaming data is shown, comprising the steps of:
In this embodiment, an execution main body (for example, a terminal device or a server in fig. 1) of the method for streaming data may receive a streaming request for data to be streamed for a first terminal.
The data to be streamed may be various types of data including, but not limited to, text data, image data, video data. Generally, the data to be streamed is mostly video data, including but not limited to video data such as movies, television shows, live videos, short videos, and the like.
The streaming request comprises the associated information of the data to be streamed and the second terminal information for projecting the data to be streamed. The second terminal can acquire the data to be circulated according to the associated information of the data to be circulated. Taking the live video as an example, the associated information is an ID (Identity document) of a live room corresponding to the live video; taking a television play and a movie locally stored in a first terminal as an example, the associated information is the storage position and the playing progress of the television play and the movie in the first terminal; taking online drama and movie as examples, the associated information is URL (Uniform Resource Locator) information and playing progress of the drama and the movie. The playing progress is used for indicating the playing progress of the data to be circulated in the first terminal.
In the process of displaying data by the first terminal, a user of the first terminal may perform a transfer operation on the data displayed by the first terminal as data to be transferred (for example, click a "transfer" icon in a page where the data is displayed), and the first terminal determines a transfer request based on the transfer operation.
In some optional implementations of this embodiment, the executing main body may execute the step 201 as follows:
firstly, according to an acquisition request for representing that a first terminal acquires equipment to be circulated, generating and displaying an equipment list to be circulated, which comprises the equipment to be circulated, through the first terminal; and then, a transfer request of the data to be transferred aiming at the first terminal is determined through the selection operation acquired by the first terminal.
As an example, the execution main body may use other terminal devices in the same local area network as the first terminal as the second terminal to obtain the to-be-streamed device list.
As another example, the executing entity may determine in advance a corresponding relationship between each first terminal and a second terminal capable of streaming data to be streamed of the first terminal, so as to determine, through the corresponding relationship, a to-be-streamed device list of the second terminal including all data to be streamed of the first terminal capable of streaming.
In this embodiment, the execution body may establish a communication connection between the first terminal and the second terminal indicated by the flow request.
As an example, the execution body may establish cross-terminal communication between the first terminal and the second terminal through a Remote Procedure Call (RPC) to perform data transmission and instruction transmission between the first terminal and the second terminal.
In some optional implementations of this embodiment, a hongmeng system is deployed in both the first terminal and the second terminal. The execution body may establish a communication connection between the first terminal and the second terminal indicated by the flow request through the hong meng system.
Specifically, the executing body first establishes cross-terminal communication between the first terminal and the second terminal based on the distributed soft bus of the hongmeng system. Then, the remote service opened in the first terminal is bound to the second terminal. After the second terminal successfully binds the remote service, an event indicating that the binding is successful can be called back to the first terminal.
In a distributed development mode set by the Hongmon system, the difference of network protocols and a networking mode do not need to be concerned, service development is decoupled with equipment networking, only the on-line and the off-line of the equipment need to be monitored, and the development cost is greatly reduced. The distributed soft bus provides heterogeneous network networking, and a logic full-connection network is automatically constructed so as to solve the problem of interaction of different protocols among devices.
Under the condition that the first terminal and the second terminal are both provided with Hongmon systems, the connection between the first terminal and the second terminal can be in a WiFi, Bluetooth or ad hoc network mode.
In this embodiment, the execution main body may send the association information of the data to be streamed to the second terminal based on the communication connection, so that the second terminal obtains and displays the data to be streamed according to the association information.
Taking the data to be streamed as the live video as an example, the execution main body sends the live room ID corresponding to the live video to the second terminal based on the communication connection between the first terminal and the second terminal. The second terminal can request the live broadcast video from the stream pushing server according to the live broadcast room ID, and then the live broadcast video is displayed on a display screen of the second terminal.
The Application release form in hongmeng system is APP Pack, which is composed of one or more HAPs (harmony os availability packs) and Pack. One HAP corresponds to one Module in the engineering catalog, which is composed of code, resources, third party library and application manifest file.
Ability is an abstraction of the functionality that an application in hong Meng's system can provide, HAP is the deployment package for Abiliity, and application code in hong Meng's system is deployed around the Abiliity component, which is composed of one or more Abilities. Abilitys are divided into two types: FA (Feature availability) and PA (Particle availability). The FA/PA is a basic composition unit of the application and can realize specific service functions. FA has UI interface, and PA has no UI interface. The remote service to which the second terminal is bound is a PA.
In this embodiment, in a conventional application scenario, the second terminal needs to install a complete application that shows the data to be streamed in the first terminal, so that the data to be streamed can be shown. However, in this embodiment, it is not dependent on the second terminal installing the complete application showing the data to be streamed in the first terminal. When the second terminal agrees to the streaming, the second terminal does not manually install the application through the user, and the hongmeng system automatically downloads a part of HAP (Hap) containing a page needing to display data to be streamed in the background through the network.
In this embodiment, the page showing the data to be streamed in the second terminal is configured to be adapted to the second terminal. The hongmeng system can be installed in various types of equipment, such as smart televisions, vehicle-mounted computers, smart watches, smart sounds and the like. On the hongmeng system side, different states of the same control in the layout file can be displayed on different devices so as to adapt to different devices. The traffic side may also be actively adapted for different devices. For example, the display screen of the smart television device is large, and in order to better utilize the screen, a developer may set different layout files for the smart television device.
In some optional implementation manners of this embodiment, both the first terminal and the second terminal may control a display process of the data to be streamed in the second terminal. Specifically, the execution main body controls the display process of the data to be streamed in the second terminal according to the control request of the first terminal and/or the second terminal.
The control request includes, but is not limited to, switching, pausing, fast forwarding, rewinding, volume adjusting, and other control operations.
In some optional implementation manners of this embodiment, the execution main body sends the control request of the first terminal to the second terminal through the remote service, and controls a display process of the data to be streamed in the second terminal.
In some optional implementation manners of the embodiment, a shared shopping cart function between the first terminal and the second terminal can be realized based on a shared database technology of the hongmeng system, so as to realize the order sharing requirement among users of different terminals. Based on the shared database technology, different users can write data into the database. Therefore, in the shared shopping cart realized based on the database sharing technology, the users of different terminal devices establishing connection through the Hongmon system can add orders to the same shared shopping cart and finally place orders in the shared shopping cart. As an example, a terminal device may send a shared shopping request to a terminal device with which a connection is established through the hong meng system, and after an opposite side accepts the shared shopping request, a sender and a receiver of the shared shopping request may add an order to the same shared shopping cart. For example, in some specific scenarios where an e-commerce shopping platform initiates a full-away activity, a sender and a recipient sharing a shopping request may receive an offer based on both orders to reach a full-away condition.
With continued reference to fig. 3, fig. 3 is a schematic diagram 300 of an application scenario of the method for streaming data according to the present embodiment. In the application scenario of fig. 3, a user 301 is watching a live video through a mobile phone terminal 302. To improve the viewing effect, the user 301 decides to screen the live video to the smart tv 303. The user 301 performs a streaming operation to the mobile phone terminal 302, and the mobile phone terminal 302 generates a streaming request. Then, a communication connection between the mobile phone terminal 302 and the smart television 303 indicated by the circulation request is established through the hong meng system. The mobile phone terminal 302 and the smart television 303 are in a wireless network generated by the router 304. Then, based on the communication connection, the associated information of the live video is sent to the smart tv 303, so that the smart tv 303 acquires and displays the live video from the stream pushing server 305 according to the associated information.
In the method provided by the above embodiment of the present application, a flow request for data to be flowed by a first terminal is received; establishing a communication connection between the first terminal and a second terminal indicated by the circulation request; based on communication connection, the associated information of the data to be streamed is sent to the second terminal, so that the second terminal obtains and displays the data to be streamed according to the associated information, and therefore a method for streaming the data is provided, the streaming data in the second terminal does not need to be synchronous with the streaming data in the first terminal, and the flexibility of data streaming is improved.
With continuing reference to FIG. 4, an illustrative flow 400 of one embodiment of a method for streaming data in accordance with the present application is shown comprising the steps of:
And step 403, establishing a communication connection between the first terminal and the second terminal indicated by the circulation request through the hong meng system.
A hongmeng system is deployed in the first terminal and the second terminal.
And step 404, sending the associated information of the data to be circulated to the second terminal based on the communication connection, so that the second terminal acquires and displays the data to be circulated according to the associated information.
As can be seen from this embodiment, compared with the embodiment corresponding to fig. 2, the flow 400 of the method for streaming data in this embodiment specifically illustrates a determination process of a streaming request, and the second terminal further improves flexibility of data streaming for a control process of data to be streamed.
With continued reference to fig. 5, a timing diagram 500 of the operation of one embodiment of a method for streaming data is shown, including a user 501, a first terminal 502, a push streaming service 503, and a second terminal 504. Wherein, a hongmeng system is deployed in both the first terminal and the second terminal. The method specifically comprises the following steps:
1. the user 501 opens a live page in a live application in the first terminal 502.
2. The first terminal 502 establishes a long connection with the push streaming service 503, and requests the push streaming service 503 for live data.
3. The push streaming service terminal 503 feeds back the live broadcast data to the first terminal 502, so that the first terminal plays the live broadcast video.
4. And clicking a 'circulation' icon in the live broadcast page by the user to perform circulation operation. The first terminal determines a list of devices to be circulated, which can circulate data, according to the Hongmon system.
5. And establishing a communication connection between the first terminal 502 and the terminal to be circulated in the device to be circulated list.
6. The terminal to be circulated calls back the event indicating successful connection establishment to the first terminal 502.
7. The user 501 selects a second terminal 504 for data streaming from the terminals to be streamed in the list of the devices to be streamed displayed by the first terminal 502, and generates a streaming request for the data to be streamed of the first terminal 502.
8. Based on the communication connection between the first terminal 502 and the second terminal 504, the first terminal 502 sends a live room ID corresponding to the live video to the second terminal 504.
9. The second terminal 504 establishes a long connection with the push streaming service 503, and requests the push streaming service 503 for live data according to the live broadcast room ID.
10. The push streaming service terminal 503 feeds back the live data to the second terminal 504, so that the second terminal 504 plays the live video.
11. The user 501 issues an operation to the first terminal 502 indicating switching, pausing, volume adjustment, and the like of data to be streamed in the second terminal 504.
12. The first terminal 502 performs operations such as switching, pausing, adjusting volume, etc., to the second terminal 504 via a communication connection between the first terminal 502 and the second terminal 504.
13. When the second terminal 504 receives the switching operation, it requests corresponding live data from the push streaming service 503 again.
14. The stream pushing server 503 feeds back the requested live data to the second terminal 504, so that the second terminal 504 plays the switched live video.
With continuing reference to fig. 6, as an implementation of the methods shown in the above-mentioned figures, the present application provides an embodiment of an apparatus for streaming data, which corresponds to the embodiment of the method shown in fig. 2, and which can be applied to various electronic devices.
As shown in fig. 6, the apparatus for streaming data includes: a receiving unit 601 configured to receive a streaming request of data to be streamed for a first terminal; an establishing unit 602 configured to establish a communication connection between the first terminal and the second terminal indicated by the flow request; the streaming unit 603 is configured to send, based on the communication connection, the association information of the data to be streamed to the second terminal, so that the second terminal obtains and displays the data to be streamed according to the association information.
In some optional implementations of this embodiment, the apparatus further includes: and the control unit (not shown in the figure) is configured to control the display process of the data to be circulated in the second terminal according to the control request of the first terminal and/or the second terminal.
In some optional implementation manners of this embodiment, a hongmeng system is deployed in the first terminal and the second terminal; and a establishing unit 602, further configured to: a communication connection between the first terminal and the second terminal indicated by the flow request is established via the hong meng system.
In some optional implementations of this embodiment, the establishing unit 602 is further configured to: establishing cross-terminal communication between a first terminal and a second terminal based on a distributed soft bus of a Hongmon system; binding a remote service opened in a first terminal to a second terminal.
In some optional implementations of this embodiment, the control unit (not shown in the figure) is further configured to: and sending the control request of the first terminal to the second terminal through the remote service, and controlling the display process of the data to be circulated in the second terminal.
In some optional implementations of this embodiment, the receiving unit 601 is further configured to: according to an acquisition request for acquiring the equipment to be circulated by a first terminal, generating and displaying an equipment list to be circulated, which comprises the equipment to be circulated, through the first terminal; and obtaining selection operation through the first terminal, and determining a transfer request of the data to be transferred aiming at the first terminal.
In this embodiment, a receiving unit in the apparatus for streaming data receives a streaming request for data to be streamed from a first terminal; the establishing unit establishes communication connection between the first terminal and the second terminal indicated by the circulation request; the circulation unit sends the associated information of the data to be circulated to the second terminal based on the communication connection, so that the second terminal obtains and displays the data to be circulated according to the associated information, a device for circulating the data is provided, the circulation data in the second terminal does not need to be synchronous with the circulation data in the first terminal, and the flexibility of data circulation is improved.
Referring now to FIG. 7, shown is a block diagram of a computer system 700 suitable for use in implementing devices of embodiments of the present application (e.g., devices 101, 102, 103, 105, 107, 108, 109 shown in FIG. 1). The apparatus shown in fig. 7 is only an example, and should not bring any limitation to the function and the scope of use of the embodiments of the present application.
As shown in fig. 7, the computer system 700 includes a processor (e.g., CPU, central processing unit) 701, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM703, various programs and data necessary for the operation of the system 700 are also stored. The processor 701, the ROM702, and the RAM703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted into the storage section 708 as necessary.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711. The computer program, when executed by the processor 701, performs the above-described functions defined in the method of the present application.
It should be noted that the computer readable medium of the present application can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the client computer, partly on the client computer, as a stand-alone software package, partly on the client computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the client computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a receiving unit, a creating unit, and a transferring unit. For example, the circulation unit may also be described as a unit that transmits association information of data to be circulated to the second terminal based on the communication connection, so that the second terminal acquires and displays the data to be circulated according to the association information.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the computer device to: receiving a transfer request aiming at data to be transferred of a first terminal; establishing a communication connection between the first terminal and a second terminal indicated by the circulation request; and sending the associated information of the data to be circulated to the second terminal based on the communication connection so that the second terminal can acquire and display the data to be circulated according to the associated information.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.
Claims (14)
1. A method for streaming data, comprising:
receiving a transfer request aiming at data to be transferred of a first terminal;
establishing a communication connection between the first terminal and a second terminal indicated by the circulation request;
and sending the associated information of the data to be circulated to the second terminal based on the communication connection so that the second terminal can acquire and display the data to be circulated according to the associated information.
2. The method of claim 1, further comprising:
and controlling the display process of the data to be circulated in the second terminal according to the control request of the first terminal and/or the second terminal.
3. The method of claim 1 or 2, wherein a hongmeng system is deployed in the first terminal and the second terminal; and
the establishing of the communication connection between the first terminal and the second terminal indicated by the circulation request includes:
and establishing a communication connection between the first terminal and the second terminal indicated by the circulation request through the Hongmon system.
4. The method of claim 3, wherein the establishing, by the Hongmon system, a communication connection between the first terminal and the second terminal indicated by the flow request comprises:
establishing cross-terminal communication between the first terminal and the second terminal based on a distributed soft bus of the Hongmon system;
binding a remote service opened in the first terminal to the second terminal.
5. The method according to claim 4, wherein the controlling the display process of the data to be streamed in the second terminal according to the control request of the first terminal comprises:
and sending the control request of the first terminal to the second terminal through the remote service to control the display process of the data to be circulated in the second terminal.
6. The method of claim 1, wherein the receiving a streaming request for data to be streamed for the first terminal comprises:
according to an acquisition request for representing that the first terminal acquires the equipment to be circulated, generating and displaying an equipment list to be circulated, which comprises the equipment to be circulated, through the first terminal;
and determining a data transfer request aiming at the first terminal to be transferred by the first terminal through the selection operation acquired by the first terminal.
7. An apparatus for streaming data, comprising:
a receiving unit configured to receive a streaming request for data to be streamed for a first terminal;
an establishing unit configured to establish a communication connection between the first terminal and a second terminal indicated by the flow request;
and the circulation unit is configured to send the associated information of the data to be circulated to the second terminal based on the communication connection, so that the second terminal acquires and displays the data to be circulated according to the associated information.
8. The apparatus of claim 7, further comprising:
and the control unit is configured to control the display process of the data to be circulated in the second terminal according to the control request of the first terminal and/or the second terminal.
9. The apparatus of claim 7 or 8, wherein a hongmeng system is deployed in the first terminal and the second terminal; and
the establishing unit is further configured to:
and establishing a communication connection between the first terminal and the second terminal indicated by the circulation request through the Hongmon system.
10. The apparatus of claim 9, wherein the establishing unit is further configured to:
establishing cross-terminal communication between the first terminal and the second terminal based on a distributed soft bus of the Hongmon system; binding a remote service opened in the first terminal to the second terminal.
11. The apparatus of claim 10, wherein the control unit is further configured to:
and sending the control request of the first terminal to the second terminal through the remote service to control the display process of the data to be circulated in the second terminal.
12. The apparatus of claim 7, wherein the receiving unit is further configured to:
according to an acquisition request for representing that the first terminal acquires the equipment to be circulated, generating and displaying an equipment list to be circulated, which comprises the equipment to be circulated, through the first terminal; and determining a data transfer request aiming at the first terminal to be transferred by the first terminal through the selection operation acquired by the first terminal.
13. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-6.
14. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110848639.5A CN113596530A (en) | 2021-07-23 | 2021-07-23 | Method and device for transferring data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110848639.5A CN113596530A (en) | 2021-07-23 | 2021-07-23 | Method and device for transferring data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113596530A true CN113596530A (en) | 2021-11-02 |
Family
ID=78250372
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110848639.5A Pending CN113596530A (en) | 2021-07-23 | 2021-07-23 | Method and device for transferring data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113596530A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114792258A (en) * | 2022-06-27 | 2022-07-26 | 北京京东振世信息技术有限公司 | Information generation method and device, electronic equipment and computer readable medium |
CN116074571A (en) * | 2023-04-06 | 2023-05-05 | 深圳开鸿数字产业发展有限公司 | Control method of audio-video system, computer equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109375888A (en) * | 2018-09-07 | 2019-02-22 | 北京奇艺世纪科技有限公司 | A kind of throwing screen method and device |
CN111629240A (en) * | 2020-05-06 | 2020-09-04 | 上海幻电信息科技有限公司 | Multi-screen interactive display method and device |
CN111901674A (en) * | 2020-07-13 | 2020-11-06 | 腾讯科技(深圳)有限公司 | Video playing control and device |
CN113132194A (en) * | 2021-04-21 | 2021-07-16 | 深圳Tcl新技术有限公司 | Information transfer method, device, equipment, server and storage medium |
-
2021
- 2021-07-23 CN CN202110848639.5A patent/CN113596530A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109375888A (en) * | 2018-09-07 | 2019-02-22 | 北京奇艺世纪科技有限公司 | A kind of throwing screen method and device |
CN111629240A (en) * | 2020-05-06 | 2020-09-04 | 上海幻电信息科技有限公司 | Multi-screen interactive display method and device |
CN111901674A (en) * | 2020-07-13 | 2020-11-06 | 腾讯科技(深圳)有限公司 | Video playing control and device |
CN113132194A (en) * | 2021-04-21 | 2021-07-16 | 深圳Tcl新技术有限公司 | Information transfer method, device, equipment, server and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114792258A (en) * | 2022-06-27 | 2022-07-26 | 北京京东振世信息技术有限公司 | Information generation method and device, electronic equipment and computer readable medium |
CN116074571A (en) * | 2023-04-06 | 2023-05-05 | 深圳开鸿数字产业发展有限公司 | Control method of audio-video system, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220368733A1 (en) | Interaction method and apparatus, and electronic device | |
CN111931962B (en) | Information display method and device and electronic equipment | |
CN113411642A (en) | Screen projection method and device, electronic equipment and storage medium | |
CN111163329B (en) | Live broadcast room gift list configuration method, device, medium and electronic equipment | |
CN113596530A (en) | Method and device for transferring data | |
CN111246228B (en) | Method, device, medium and electronic equipment for updating gift resources of live broadcast room | |
CN112019625A (en) | Websocket-based message pushing method, system, equipment and medium | |
CN109168012B (en) | Information processing method and device for terminal equipment | |
CN108337556B (en) | Method and device for playing audio-video file | |
CN110618768B (en) | Information presentation method and device | |
CN111163324A (en) | Information processing method and device and electronic equipment | |
JP2020004379A (en) | Method and device for releasing information, and method and device for processing information | |
CN111147885B (en) | Live broadcast room interaction method and device, readable medium and electronic equipment | |
CN112965673A (en) | Content printing method, device, equipment and storage medium | |
CN111698574A (en) | Video watermark processing method and device, electronic equipment and storage medium | |
CN115052169A (en) | Interaction method, device, electronic equipment and computer readable medium | |
CN114489891A (en) | Control method, system, device, readable medium and equipment of cloud application program | |
CN112947880A (en) | Screen projection method and device and electronic equipment | |
CN113885976A (en) | Interaction method and device and electronic equipment | |
CN113010821A (en) | Page loading method, device, equipment and storage medium | |
CN112685104A (en) | Application program starting control method and device, electronic equipment and storage medium | |
CN109348298B (en) | Method and equipment for pushing and playing multimedia data stream | |
CN115529485A (en) | Live video processing method, device, equipment and medium | |
CN111212296B (en) | Live broadcast room gift list configuration method, device, medium and electronic equipment | |
CN111367592B (en) | Information processing method and device |
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 |