WO2024051336A1 - Content collaboration method, apparatus and system, storage medium, and electronic device - Google Patents

Content collaboration method, apparatus and system, storage medium, and electronic device Download PDF

Info

Publication number
WO2024051336A1
WO2024051336A1 PCT/CN2023/106433 CN2023106433W WO2024051336A1 WO 2024051336 A1 WO2024051336 A1 WO 2024051336A1 CN 2023106433 W CN2023106433 W CN 2023106433W WO 2024051336 A1 WO2024051336 A1 WO 2024051336A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
data
collaboration
content
transmission channel
Prior art date
Application number
PCT/CN2023/106433
Other languages
French (fr)
Chinese (zh)
Inventor
张磊
谭伯成
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2024051336A1 publication Critical patent/WO2024051336A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the technical field of electronic equipment, and specifically relates to a content collaboration method, device, system, storage medium and electronic equipment.
  • Embodiments of the present application provide a content collaboration method, device, system, storage medium and electronic equipment.
  • embodiments of the present application provide a content collaboration method applied to a first electronic device.
  • the method includes:
  • the target content is sent to the second electronic device through the data transmission channel.
  • embodiments of the present application provide a content collaboration method applied to a second electronic device.
  • the method includes:
  • embodiments of the present application further provide a content collaboration device, applied to a first electronic device, where the device includes:
  • the first connection unit is used to establish a near-field wireless connection with the second electronic device
  • a first notification unit configured to generate a data transfer notification based on the target content when new target content is detected, and send the data transfer notification to the second electronic device based on the near-field wireless connection;
  • the first connection unit is also configured to: respond to the content collaboration request sent by the second electronic device, establish a data transmission channel between the first electronic device and the second electronic device;
  • a first transmission unit configured to send the target content to the second electronic device through the data transmission channel.
  • embodiments of the present application further provide a content collaboration device, applied to a second electronic device, where the device includes:
  • a second connection unit used to establish a near-field wireless connection with the first electronic device
  • a second notification unit configured to receive and display the data flow notification sent by the first electronic device based on the near-field wireless connection
  • the second connection unit is also configured to: if a data saving instruction triggered based on the data transfer notification is received, initiate a content collaboration request to the first electronic device to establish a data transmission channel with the first electronic device ;
  • the second transmission unit is configured to receive the target content transmitted by the first electronic device based on the data transmission channel.
  • embodiments of the present application also provide a computer-readable storage medium on which a computer program is stored.
  • the computer program is run on a computer, the computer is caused to execute the method provided by any embodiment of the present application.
  • Content collaboration approach When the computer program is run on a computer, the computer is caused to execute the method provided by any embodiment of the present application.
  • embodiments of the present application further provide an electronic device, including a processor and a memory.
  • the memory has a computer program.
  • the processor invokes the computer program to execute as provided in any embodiment of the present application. Content collaboration methods.
  • embodiments of the present application further provide a content collaboration system, the system including a first electronic device and a second electronic device;
  • the first electronic device establishes a near-field wireless connection with the second electronic device
  • the first electronic device When the first electronic device detects that new target content is generated, it generates a data transfer notification based on the target content, and sends the data transfer notification to the second electronic device based on the near-field wireless connection;
  • the second electronic device receives and displays the data transfer notification. If it receives a data saving instruction triggered based on the data transfer notification, it initiates a content collaboration request to the first electronic device to cooperate with the first electronic device.
  • the device establishes a data transmission channel;
  • the first electronic device sends the target content to the second electronic device through the data transmission channel.
  • Figure 1 is a schematic flowchart of a content collaboration method provided by an embodiment of the present application.
  • Figure 2 is a schematic diagram of the application environment of the content collaboration method according to the embodiment of the present application.
  • Figure 3 is a schematic diagram of data flow notification in the content collaboration method provided by the embodiment of the present application.
  • Figure 4 is a schematic diagram of the architecture of the content collaboration service in this embodiment of the present application.
  • FIG. 5 is a schematic diagram of the processing flow of the content collaboration service in the embodiment of the present application.
  • Figure 6 is another schematic diagram of the processing flow of the content collaboration service in the embodiment of the present application.
  • Figure 7 is another schematic flowchart of a content collaboration method provided by an embodiment of the present invention.
  • Figure 8 is a schematic structural diagram of a content collaboration device provided by an embodiment of the present application.
  • Figure 9 is another schematic structural diagram of a content collaboration device provided by an embodiment of the present application.
  • FIG. 10 is a first structural schematic diagram of an electronic device provided by an embodiment of the present application.
  • Figure 11 is a second structural schematic diagram of an electronic device provided by an embodiment of the present application.
  • an embodiment means that a particular feature, structure or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application.
  • the appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those skilled in the art understand, both explicitly and implicitly, that the embodiments described herein may be combined with other embodiments.
  • Embodiments of the present application provide a content collaboration method.
  • the content collaboration method is applied to a first electronic device.
  • the first electronic device may be a smartphone, a tablet computer, a handheld computer, a notebook computer, a desktop computer, a smart TV, a smart phone, or a smart phone. Watches and other equipment.
  • Figure 1 is a schematic flowchart of a content collaboration method provided by an embodiment of the present application.
  • the specific process of the content collaboration method provided by the embodiments of this application can be as follows:
  • the second electronic device may also be a smart phone, a tablet computer, a handheld computer, a notebook computer, a desktop computer, a smart TV, a smart watch and other devices.
  • Figure 2 is a schematic diagram of the application environment of the content collaboration method according to the embodiment of the present application.
  • Both the mobile phone and the tablet computer are provided with communication modules, and a near-field wireless connection between the first electronic device and the second electronic device is established through the communication modules of the two for information transmission.
  • the near-field wireless connection may be a Bluetooth connection, or the first electronic device and the second electronic device may be connected to the same wireless hotspot.
  • the wireless hotspot may be a wifi hotspot, for example, it may be a wireless router or a wireless hotspot provided by a mobile phone. wait.
  • the target content in the embodiment of this application may be image data such as images and videos, or data in other formats, such as document data, audio data, etc.
  • the type of target content can be determined based on specific scenarios.
  • the mobile phone can monitor the image library to detect whether new image data is generated on the mobile phone.
  • the image library can be a photo album on the mobile phone.
  • the user when the user performs shooting operations, video recording operations, screenshot operations, and screen recording operations, new image data will be generated, and the corresponding application will store the generated new image data in the image library. Therefore, when it is monitored that the image database stores new image data, a data transfer notification is generated based on the image data. This data transfer notification is used to notify the tablet that there is new target content on the phone.
  • the mobile phone After the mobile phone generates the data transfer notification, it sends the data transfer notification to the tablet.
  • Figure 3 is a schematic diagram of data flow notification in the content collaboration method provided by the embodiment of the present application. For example, a data transfer notification is displayed in a pop-up window on the display interface of a tablet computer.
  • the tablet computer After receiving the data saving instruction triggered based on the data transfer notification, the tablet computer sends the The device initiates a content collaboration request to establish a data transmission channel with the first electronic device.
  • the mobile phone responds to the content collaboration request sent by the tablet computer and establishes a data transmission channel between the first electronic device and the second electronic device.
  • the mobile phone After completing the establishment of the data transmission channel, the mobile phone sends the new target content to the second electronic device through the data transmission channel. At this point, the rapid flow of data between the two devices is completed. In addition to requiring the user to connect the two devices and click to save, the user is not required to perform other additional operations, which improves the efficiency of data transmission across devices.
  • the present application is not limited by the execution order of each described step. Certain steps may also be performed in other orders or at the same time if no conflict occurs.
  • the content collaboration method establishes a near-field wireless connection with the second electronic device.
  • a data transfer notification is generated based on the target content, and the data is transferred based on the near-field wireless connection.
  • the transfer notification is sent to the second electronic device; in response to the content collaboration request sent by the second electronic device, a data transmission channel is established with the second electronic device, and then the target content is transmitted to the second electronic device through the data transmission channel.
  • the method further includes: disconnecting the data transmission channel after the target content transmission is completed.
  • the established data transmission channel is disconnected to save power consumption. Since there is still a long Bluetooth connection between the mobile phone and the tablet, when the mobile phone generates new target content, it can still send a data transfer notification to the tablet according to the above scheme, and then establish data transmission when the target content needs to be transmitted. aisle.
  • the first electronic device includes a first collaboration module
  • the second electronic device includes a second collaboration module.
  • establishing a data transmission channel between the first electronic device and the second electronic device includes: in response to the content collaboration request sent by the second electronic device, establishing the first collaboration module and the second electronic device. Data transmission channel between two collaborative modules.
  • Figure 4 is a schematic architectural diagram of content collaboration services in an embodiment of the present application.
  • the solution of the embodiment of the present application is based on the existing Android framework and adds a collaboration module to the framework layer.
  • the collaboration module of the first electronic device is recorded as the first collaboration module
  • the collaboration module of the second electronic device is recorded as the first collaboration module.
  • the cooperative module of the electronic device is recorded as the second cooperative module.
  • the first electronic device and the second electronic device implement interconnection between the two devices based on the collaboration module.
  • a data transmission channel is established between the module and the second collaboration module to achieve rapid data flow.
  • the modules related to this application are shown in the figure.
  • other modules in the Android framework are not shown in the figure.
  • the first electronic device establishes a near-field wireless connection with the second electronic device based on the connection management submodule.
  • Figure 5 is a schematic diagram of the processing flow of the content collaboration service in the embodiment of the present application.
  • Figure 6 is another schematic diagram of the processing flow of the content collaboration service in the embodiment of the present application.
  • the network module of the electronic device in the embodiment of the present application may include a Bluetooth module, a WIFI direct connection module, a P2P (Peer-to-Peer, point-to-point) connection module, etc.
  • the first collaboration module and the second collaboration module each have a connection management sub-module, and the connection management sub-module can be implemented based on the network module of the electronic device.
  • the first collaboration module and the second system module can be implemented based on application programs, that is, content collaboration programs are respectively provided in the first electronic device and the second electronic device.
  • application programs that is, content collaboration programs are respectively provided in the first electronic device and the second electronic device.
  • a near-field wireless connection is first established between the mobile phone and the tablet, such as establishing a Bluetooth connection and maintaining a long Bluetooth connection.
  • This connection can be called an inductive connection.
  • the tablet computer receives the data transfer notification sent by the mobile phone through the Bluetooth long connection.
  • a data transmission channel such as a P2P channel, is established to reduce the power consumption of the device.
  • the target content is image data; when it is detected that new target content is generated, before generating a data transfer notification based on the target content, the method further includes: monitoring changes in the image library through the monitoring sub-module, and When changes in the image database are detected, it is determined that new image data is generated.
  • a data transfer notification is generated based on the image data, including: when it is detected that new image data is generated, the information of the image data is encapsulated through the capability interoperability sub-module and a data transfer notification is generated.
  • the first collaboration module also includes a data monitoring sub-module and a capability interoperability sub-module. Both the data monitoring sub-module and the capability interoperability sub-module can be implemented in the form of software (application program).
  • the mobile phone monitors the content changes of the image library through the data monitoring sub-module. When it monitors that new image data is stored in the image library, it pulls up and notifies the capability interoperability sub-module, and performs the information on the image data through the capability interoperability sub-module. Encapsulate and generate the data flow notification, for example, through the DataBus interface, and then send the data flow notification to the second electronic device through a senseless connection.
  • the method before sending the target content to the second electronic device through the data transmission channel, the method further includes The method includes: monitoring changes in the data transmission channel through the screen projection service sub-module; when detecting that the data transmission channel is established, performing the step of sending the target content to the second electronic device through the data transmission channel.
  • Sending the target content to the second electronic device through the data transmission channel includes: sending the target content to the second electronic device based on the screen projection protocol through the screen projection service sub-module.
  • the first collaboration module also includes a screen projection service sub-module.
  • the second collaboration module includes a content collaboration sub-module and a connection management sub-module.
  • the function of the connection management sub-module is the same as that of the connection management sub-module of the second system module.
  • the screen projection service sub-module is provided with a screen projection protocol. Based on the screen projection protocol, the first electronic device can project the display screen of the first electronic device to the second electronic device for display, and control the display screen through the first electronic device.
  • the screen projection protocol can be reused through the screen projection service sub-module to send the target content to the second electronic device. For example, after the tablet computer receives the data transfer notification, it displays the data transfer notification.
  • a save event is triggered.
  • the content collaboration module of the second collaboration module first requests P2P from the connection management sub-module, and the connection management sub-module creates P2P. And the callback is given to the connection management sub-module of the first collaboration module to establish a data transmission channel, that is, a P2P channel.
  • the screen projection service sub-module of the first collaboration module monitors changes in the data transmission channel. After the P2P channel is successfully established, the connection management sub-module of the first collaboration module sends the P2P changes to the screen projection service.
  • Sub-module when the screen projection service sub-module detects that the data transmission channel is established, it multiplexes the screen projection protocol to send the target content to the second electronic device through the data transmission channel. After receiving the target content, the tablet computer displays the target content. For example, if the target content is an image, the image is opened and displayed; if the target content is a video, the video is played.
  • the near-field wireless connection is a classic Bluetooth connection, a low-power Bluetooth connection, or connected to the same wireless access point;
  • the data transmission channel is a point-to-point P2P channel.
  • Embodiments of the present application also provide a content collaboration method, which is applied to a second electronic device.
  • the second electronic device may also be a smart phone, a tablet computer, a handheld computer, a notebook computer, or a desktop computer.
  • FIG. 7 is another schematic flowchart of a content collaboration method provided by an embodiment of the present invention. Methods include:
  • receiving and displaying a data flow notification sent by the first electronic device based on a near-field wireless connection includes: when receiving a data flow notification sent by the first electronic device based on a near-field wireless connection, obtaining according to the data flow notification The identification information of the first electronic device and the thumbnail of the target content; based on the thumbnail and identification information, a data transfer notification is displayed in the notification bar.
  • the data transmission channel is a point-to-point P2P channel; the first electronic device includes a first collaboration module, and the second electronic device includes a second collaboration module; if a data saving instruction triggered based on the data transfer notification is received, send the data to the first collaboration module.
  • the electronic device initiates a content collaboration request to establish a data transmission channel with the first electronic device, including: if a data saving instruction triggered based on the data transfer notification is received, initiating a content collaboration request to the first electronic device through the second collaboration module; responding to The callback information of the P2P channel returned by the first collaboration module establishes the P2P channel between the first collaboration module and the second collaboration module.
  • receiving the target content transmitted by the first electronic device based on the data transmission channel includes: initializing the file service through the second collaboration module; calling the file transmission related interface through the initialized file service, receiving the first The collaboration module is based on the target content transmitted by the data transmission channel.
  • the second electronic device after completing the establishment of the data transmission channel, the second electronic device will initialize the fileService (file service), and then call the createFile() and WriteFile() interfaces of the file according to the fileInfo (file information) to perform the target Transmission of content.
  • fileService file service
  • createFile() and WriteFile() interfaces of the file according to the fileInfo (file information) to perform the target Transmission of content.
  • the method further includes: according to the target content Transfer progress, data saving progress is displayed in the data transfer notification window.
  • the target content is image data; according to the transmission progress of the target content, after displaying the data saving progress in the data transfer notification window, the method further includes: when the image data saving is completed, displaying a pop-up window indicating that the data saving is completed. Notification; when a viewing command triggered based on a pop-up notification is detected, the image data is displayed on the display interface.
  • the second electronic device when the image data is saved, displays a pop-up notification that the data is saved.
  • the user can trigger a viewing command based on the pop-up notification to view the transmitted image data.
  • the second electronic device detects that the viewing When commanded, the image data is displayed on the display interface.
  • the content collaboration method proposed in the embodiment of the present invention establishes a near-field wireless connection with the first electronic device, receives and displays the data flow notification sent by the first electronic device based on the near-field wireless connection. Then, when receiving the The data saving instruction triggered by the data transfer notification initiates a content collaboration request to the first electronic device to establish a data transmission channel with the first electronic device, and receives the target content transmitted by the first electronic device based on the data transmission channel.
  • a content collaboration device is also provided. Please refer to FIG. 8 , which is a schematic structural diagram of a content collaboration device provided by an embodiment of the present application.
  • the content collaboration device 300 is applied to the first electronic device.
  • the content collaboration device 300 includes:
  • the first connection unit 301 is used to establish a near-field wireless connection with a second electronic device
  • the first notification unit 302 is configured to generate a data transfer notification based on the target content when new target content is detected, and send the data transfer notification to the second electronic device based on the near-field wireless connection. ;
  • the first connection unit 301 is also configured to: respond to the content collaboration request sent by the second electronic device, establish a data transmission channel between the first electronic device and the second electronic device;
  • the first transmission unit 303 is configured to send the target content to the second electronic device through the data transmission channel.
  • the first connection unit 301 is also configured to disconnect the data transmission channel after the target content transmission is completed.
  • the first electronic device includes a first collaboration module
  • the second electronic device includes a second collaboration module
  • the first connection unit 301 is further configured to: respond to content sent by the second electronic device Collaboration request: establish a data transmission channel between the first collaboration module and the second collaboration module.
  • the first collaboration module includes a connection management sub-module; the first connection unit 301 is further configured to establish a near-field wireless connection between the connection management sub-module and the second electronic device.
  • the target content is image data
  • the first collaboration module also includes a data monitoring sub-module and a capability interoperability sub-module
  • the first notification unit 302 is also used to: monitor the image library through the monitoring sub-module Monitor changes in the image database, and when changes in the image database are detected, it is determined that new image data is generated; when it is detected that new image data is generated, the information on the image data is processed through the capability interoperability sub-module. Encapsulate and generate data flow notifications.
  • the first collaboration module also includes a screen projection service sub-module; the first transmission unit 303 is also configured to: monitor changes in the data transmission channel through the screen projection service sub-module; when detecting After the data transmission channel is established, the target content is sent to the second electronic device through the screen casting service sub-module based on the screen casting protocol.
  • the near-field wireless connection is a classic Bluetooth connection, a low-power Bluetooth connection, or connected to the same wireless access point;
  • the data transmission channel is a point-to-point P2P channel.
  • the content collaboration device provided by the embodiment of the present application belongs to the same concept as the content collaboration method in the above embodiment. Any method provided in the content collaboration method embodiment can be implemented through the content collaboration device, and its specific implementation Please refer to the content collaboration method embodiment for details of the process, which will not be described again here.
  • the content collaboration device proposed in the embodiment of the present application establishes a near-field wireless connection with the second electronic device.
  • it detects that new target content is generated it generates a data transfer notification based on the target content, and transfers the data based on the near-field wireless connection.
  • the transfer notification is sent to the second electronic device; in response to the content collaboration request sent by the second electronic device, a data transmission channel is established with the second electronic device, and then the target content is transmitted to the second electronic device through the data transmission channel.
  • a content collaboration device is also provided. Please refer to FIG. 9 , which is another schematic structural diagram of a content collaboration device provided by an embodiment of the present application.
  • the content collaboration device 400 is applied to the second electronic device.
  • the content collaboration device 400 includes:
  • the second connection unit 401 is used to establish a near-field wireless connection with the first electronic device
  • the second notification unit 402 is configured to receive and display the data flow notification sent by the first electronic device based on the near-field wireless connection;
  • the second connection unit 401 is also configured to: if a data saving instruction triggered based on the data transfer notification is received, initiate a content collaboration request to the first electronic device to establish a data transmission channel with the first electronic device;
  • the second transmission unit 403 is configured to receive target content transmitted by the first electronic device based on the data transmission channel.
  • the second notification unit 402 is further configured to: when receiving a data flow notification sent by the first electronic device based on the near-field wireless connection, obtain the first electronic device according to the data flow notification.
  • the data transmission channel is a point-to-point P2P channel; the first electronic device includes a first collaboration module, and the second electronic device includes a second collaboration module; the second connection unit 401 is also used to: if Upon receiving the data saving instruction triggered based on the data transfer notification, initiate a content collaboration request to the first electronic device through the second collaboration module; in response to the callback information of the P2P channel returned by the first collaboration module, establish A P2P channel between the first collaboration module and the second collaboration module.
  • the second transmission unit 403 is also configured to: initialize the file service through the second collaboration module; call the file transmission related interface through the initialized file service to receive the first collaboration The module is based on the target content transmitted by the data transmission channel.
  • the second notification unit 402 is also configured to: display the data saving progress in the window of the data transfer notification according to the transmission progress of the target content.
  • the second notification unit 402 is also configured to: when the image data is saved, display a pop-up notification of data saving completion; when a viewing instruction triggered based on the pop-up notification is detected, display the The image data is displayed on the interface.
  • the content collaboration device proposed in the embodiment of the present application establishes a near-field wireless connection with the first electronic device, receives and displays the data transfer notification sent by the first electronic device based on the near-field wireless connection. Then, when the data saving instruction triggered based on the data transfer notification is received, a content collaboration request is initiated to the first electronic device to establish a data transmission channel with the first electronic device, and the target content transmitted by the first electronic device based on the data transmission channel is received. .
  • An embodiment of the present application also provides an electronic device.
  • the electronic device may be a smart phone, tablet computer or other devices.
  • FIG. 10 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device 500 includes a processor 501, a memory 502, and a communication module 503. Among them, the processor 501 is electrically connected to the memory 502.
  • the processor 501 is the control center of the electronic device 500. It uses various interfaces and lines to connect various parts of the entire electronic device, and executes electronic tasks by running or calling computer programs stored in the memory 502 and calling data stored in the memory 502. The various functions of the device and process data to provide overall monitoring of the electronic device.
  • Memory 502 may be used to store computer programs and data.
  • the computer program stored in the memory 502 contains instructions that can be executed in the processor.
  • Computer programs can be composed of various functional modules.
  • the processor 501 executes various functional applications and data processing by calling computer programs stored in the memory 502 .
  • the communication module 503 is used to establish communication connections with other electronic devices, such as classic Bluetooth connection, low-power Bluetooth connection, WIFI connection, WIFI direct connection or P2P connection, etc.
  • the processor 501 in the electronic device 500 will follow the following steps to load instructions corresponding to the processes of one or more computer programs into the memory 502, and the processor 501 will run the instructions stored in the memory 502.
  • a data transfer notification is generated based on the target content, and a data transfer notification is generated based on the recent target content.
  • Field wireless connection sends the data transfer notification to the second electronic device;
  • the target content is sent to the second electronic device through the data transmission channel.
  • FIG. 11 is another schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device 500 also includes: a display screen 504, a control circuit 505, an input unit 506, an audio circuit 507, a sensor 508, a power supply 509, and a radio frequency circuit 510.
  • the processor 501 is electrically connected to the display screen 504, the control circuit 505, the input unit 506, the audio circuit 507, the sensor 508, the power supply 509 and the radio frequency circuit 510 respectively.
  • the display screen 504 can be used to display information input by the user or information provided to the user as well as various graphical user interfaces of the electronic device. These graphical user interfaces can be composed of images, text, icons, videos, and any combination thereof.
  • the control circuit 505 is electrically connected to the display screen 504 and is used to control the display screen 504 to display information.
  • the input unit 506 may be used to receive inputted numbers, character information, or user characteristic information (such as fingerprints), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
  • the input unit 506 may include a fingerprint recognition module.
  • the audio circuit 507 can provide an audio interface between the user and the electronic device through speakers and microphones.
  • the audio circuit 507 includes a microphone.
  • the microphone is electrically connected to the processor 501 .
  • the microphone is used to receive voice information input by the user.
  • the Sensor 508 is used to collect external environment information.
  • the sensor 508 may include one or more sensors such as an ambient brightness sensor, an acceleration sensor, and a gyroscope.
  • the power supply 509 is used to power various components of the electronic device 500 .
  • the power supply 509 can be logically connected to the processor 501 through a power management system, so that functions such as charging, discharging, and power consumption management can be implemented through the power management system.
  • the radio frequency circuit 510 is used to transmit and receive radio frequency signals to communicate with network equipment or other electronic equipment through wireless communication.
  • the electronic device provided by the embodiment of the present application establishes a near-field wireless connection with the second electronic device.
  • a data transfer notification is generated based on the target content
  • a data transfer notification is generated based on the near-field wireless connection.
  • Send the data transfer notification to the second electronic device in response to the content collaboration request sent by the second electronic device, establish a data transmission channel with the second electronic device, and then transmit the target content to the second electronic device through the data transmission channel. sub-device.
  • the processor 501 in the electronic device 500 will follow the following steps to load instructions corresponding to the processes of one or more computer programs into the memory 502, and the processor 501 will run the stored instructions.
  • the electronic device provided by the embodiment of the present application establishes a near-field wireless connection with the first electronic device, receives and displays the data transfer notification sent by the first electronic device based on the near-field wireless connection. Then, when the data saving instruction triggered based on the data transfer notification is received, a content collaboration request is initiated to the first electronic device to establish a data transmission channel with the first electronic device, and the target content transmitted by the first electronic device based on the data transmission channel is received. .
  • Embodiments of the present application also provide a computer-readable storage medium.
  • a computer program is stored in the computer-readable storage medium.
  • the computer program executes the steps described in any of the above embodiments. Content collaboration approach.
  • Embodiments of the present application also provide a content collaboration system, which includes a first electronic device and a second electronic device;
  • the first electronic device establishes a near-field wireless connection with the second electronic device
  • the first electronic device When the first electronic device detects that new target content is generated, it generates a data transfer notification based on the target content, and sends the data transfer notification to the second electronic device based on the near-field wireless connection;
  • the second electronic device receives and displays the data transfer notification. If it receives a data saving instruction triggered based on the data transfer notification, it initiates a content collaboration request to the first electronic device to cooperate with the first electronic device.
  • the device establishes a data transmission channel;
  • the first electronic device sends the target content to the second electronic device through the data transmission channel.
  • the computer-readable storage medium may include but is not limited to: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks, etc.

Abstract

Disclosed are in embodiments of the present application are a content collaboration method, apparatus and system, a storage medium, and an electronic device. The method comprises: upon detecting that new target content is generated, generating a data exchange notification on the basis of the target content, and sending the data exchange notification to a second electronic device on the basis of a near-field wireless connection; in response to a content collaboration request sent by the second electronic device, establishing a data transmission channel with the second electronic device; and sending the target content to the second electronic device by means of the data transmission channel.

Description

内容协同方法、装置、系统、存储介质及电子设备Content collaboration methods, devices, systems, storage media and electronic equipment
本申请要求于2022年9月8日提交中国专利局、申请号为202211097917.9、申请名称为“内容协同方法、装置、系统、存储介质及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application submitted to the China Patent Office on September 8, 2022, with the application number 202211097917.9 and the application name "Content collaboration method, device, system, storage medium and electronic equipment", and its entire content has passed This reference is incorporated into this application.
技术领域Technical field
本申请涉及电子设备技术领域,具体涉及一种内容协同方法、装置、系统、存储介质及电子设备。The present application relates to the technical field of electronic equipment, and specifically relates to a content collaboration method, device, system, storage medium and electronic equipment.
背景技术Background technique
随着电子设备的使用越来越广泛,例如手机、平板电脑、笔记本电脑等设备,当用户在两台电子设备之间传输数据时,往往需要数据线或者需要第三方应用中转才能实现。As electronic devices are used more and more widely, such as mobile phones, tablets, laptops and other devices, when users transfer data between two electronic devices, they often need data cables or third-party application transfers.
发明内容Contents of the invention
本申请实施例提供一种内容协同方法、装置、系统、存储介质及电子设备。Embodiments of the present application provide a content collaboration method, device, system, storage medium and electronic equipment.
第一方面,本申请实施例提供一种内容协同方法,应用于第一电子设备,所述方法包括:In a first aspect, embodiments of the present application provide a content collaboration method applied to a first electronic device. The method includes:
与第二电子设备建立近场无线连接;establishing a near-field wireless connection with a second electronic device;
当检测到产生新的目标内容时,基于所述目标内容生成数据流转通知,并基于所述近场无线连接将所述数据流转通知发送至所述第二电子设备;When it is detected that new target content is generated, generate a data transfer notification based on the target content, and send the data transfer notification to the second electronic device based on the near-field wireless connection;
响应于所述第二电子设备发送的内容协同请求,建立所述第一电子设备与所述第二电子设备之间的数据传输通道;In response to the content collaboration request sent by the second electronic device, establish a data transmission channel between the first electronic device and the second electronic device;
通过所述数据传输通道将所述目标内容发送至所述第二电子设备。The target content is sent to the second electronic device through the data transmission channel.
第二方面,本申请实施例提供一种内容协同方法,应用于第二电子设备,所述方法包括:In a second aspect, embodiments of the present application provide a content collaboration method applied to a second electronic device. The method includes:
与第一电子设备建立近场无线连接;establishing a near-field wireless connection with the first electronic device;
接收并展示所述第一电子设备基于所述近场无线连接发送的数据流转通知;Receive and display the data flow notification sent by the first electronic device based on the near-field wireless connection;
若接收到基于所述数据流转通知触发的数据保存指令,则向所述第一电子设备发起内容协同请求,以与所述第一电子设备建立数据传输通道;If a data saving instruction triggered based on the data transfer notification is received, initiate a content collaboration request to the first electronic device to establish a data transmission channel with the first electronic device;
接收所述第一电子设备基于所述数据传输通道传输的目标内容。Receive target content transmitted by the first electronic device based on the data transmission channel.
第三方面,本申请实施例还提供一种内容协同装置,应用于第一电子设备,所述装置包括: In a third aspect, embodiments of the present application further provide a content collaboration device, applied to a first electronic device, where the device includes:
第一连接单元,用于与第二电子设备建立近场无线连接;The first connection unit is used to establish a near-field wireless connection with the second electronic device;
第一通知单元,用于当检测到产生新的目标内容时,基于所述目标内容生成数据流转通知,并基于所述近场无线连接将所述数据流转通知发送至所述第二电子设备;A first notification unit, configured to generate a data transfer notification based on the target content when new target content is detected, and send the data transfer notification to the second electronic device based on the near-field wireless connection;
所述第一连接单元还用于:响应于所述第二电子设备发送的内容协同请求,建立所述第一电子设备与所述第二电子设备之间的数据传输通道;The first connection unit is also configured to: respond to the content collaboration request sent by the second electronic device, establish a data transmission channel between the first electronic device and the second electronic device;
第一传输单元,用于通过所述数据传输通道将所述目标内容发送至所述第二电子设备。A first transmission unit configured to send the target content to the second electronic device through the data transmission channel.
第四方面,本申请实施例还提供一种内容协同装置,应用于第二电子设备,所述装置包括:In a fourth aspect, embodiments of the present application further provide a content collaboration device, applied to a second electronic device, where the device includes:
第二连接单元,用于与第一电子设备建立近场无线连接;a second connection unit, used to establish a near-field wireless connection with the first electronic device;
第二通知单元,用于接收并展示所述第一电子设备基于所述近场无线连接发送的数据流转通知;a second notification unit configured to receive and display the data flow notification sent by the first electronic device based on the near-field wireless connection;
所述第二连接单元还用于:若接收到基于所述数据流转通知触发的数据保存指令,则向所述第一电子设备发起内容协同请求,以与所述第一电子设备建立数据传输通道;The second connection unit is also configured to: if a data saving instruction triggered based on the data transfer notification is received, initiate a content collaboration request to the first electronic device to establish a data transmission channel with the first electronic device ;
第二传输单元,用于接收所述第一电子设备基于所述数据传输通道传输的目标内容。The second transmission unit is configured to receive the target content transmitted by the first electronic device based on the data transmission channel.
第五方面,本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如本申请任一实施例提供的内容协同方法。In a fifth aspect, embodiments of the present application also provide a computer-readable storage medium on which a computer program is stored. When the computer program is run on a computer, the computer is caused to execute the method provided by any embodiment of the present application. Content collaboration approach.
第六方面,本申请实施例还提供一种电子设备,包括处理器和存储器,所述存储器有计算机程序,所述处理器通过调用所述计算机程序,用于执行如本申请任一实施例提供的内容协同方法。In a sixth aspect, embodiments of the present application further provide an electronic device, including a processor and a memory. The memory has a computer program. The processor invokes the computer program to execute as provided in any embodiment of the present application. Content collaboration methods.
第七方面,本申请实施例还提供一种内容协同系统,所述系统包括第一电子设备和第二电子设备;In a seventh aspect, embodiments of the present application further provide a content collaboration system, the system including a first electronic device and a second electronic device;
所述第一电子设备与所述第二电子设备建立近场无线连接;The first electronic device establishes a near-field wireless connection with the second electronic device;
所述第一电子设备检测到产生新的目标内容时,基于所述目标内容生成数据流转通知,并基于所述近场无线连接将所述数据流转通知发送至所述第二电子设备;When the first electronic device detects that new target content is generated, it generates a data transfer notification based on the target content, and sends the data transfer notification to the second electronic device based on the near-field wireless connection;
所述第二电子设备接收并展示所述数据流转通知,若接收到基于所述数据流转通知触发的数据保存指令,则向所述第一电子设备发起内容协同请求,以与所述第一电子设备建立数据传输通道;The second electronic device receives and displays the data transfer notification. If it receives a data saving instruction triggered based on the data transfer notification, it initiates a content collaboration request to the first electronic device to cooperate with the first electronic device. The device establishes a data transmission channel;
所述第一电子设备通过所述数据传输通道将所述目标内容发送至所述第二电子设备。 The first electronic device sends the target content to the second electronic device through the data transmission channel.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without exerting creative efforts.
图1为本申请实施例提供的内容协同方法的一种流程示意图。Figure 1 is a schematic flowchart of a content collaboration method provided by an embodiment of the present application.
图2为本申请实施例同的内容协同方法的应用环境示意图。Figure 2 is a schematic diagram of the application environment of the content collaboration method according to the embodiment of the present application.
图3为本申请实施例提供的内容协同方法中的数据流转通知的示意图。Figure 3 is a schematic diagram of data flow notification in the content collaboration method provided by the embodiment of the present application.
图4为本申请实施例中内容协同服务的架构示意图。Figure 4 is a schematic diagram of the architecture of the content collaboration service in this embodiment of the present application.
图5为本申请实施例中的内容协同服务的处理流程的一种示意图。Figure 5 is a schematic diagram of the processing flow of the content collaboration service in the embodiment of the present application.
图6为本申请实施例中的内容协同服务的处理流程的另一种示意图。Figure 6 is another schematic diagram of the processing flow of the content collaboration service in the embodiment of the present application.
图7为本发明实施例提供的内容协同方法的另一种流程示意图。Figure 7 is another schematic flowchart of a content collaboration method provided by an embodiment of the present invention.
图8为本申请实施例提供的内容协同装置的一种结构示意图。Figure 8 is a schematic structural diagram of a content collaboration device provided by an embodiment of the present application.
图9为本申请实施例提供的内容协同装置的另一种结构示意图。Figure 9 is another schematic structural diagram of a content collaboration device provided by an embodiment of the present application.
图10为本申请实施例提供的电子设备的第一种结构示意图。FIG. 10 is a first structural schematic diagram of an electronic device provided by an embodiment of the present application.
图11为本申请实施例提供的电子设备的第二种结构示意图。Figure 11 is a second structural schematic diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本申请的保护范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of this application.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those skilled in the art understand, both explicitly and implicitly, that the embodiments described herein may be combined with other embodiments.
随着电子设备的使用越来越广泛,例如手机、平板电脑、笔记本电脑等设备,当用户在两台电子设备之间传输数据时,往往需要数据线或者需要第三方应用中转才能实现,操作过程繁琐,传输效率低下。As electronic devices are used more and more widely, such as mobile phones, tablets, laptops and other devices, when users transfer data between two electronic devices, they often need a data cable or a third-party application to transfer data. The operation process It is cumbersome and the transmission efficiency is low.
本申请实施例提供一种内容协同方法,该内容协同方法应用于第一电子设备,第一电子设备可以是智能手机、平板电脑、掌上电脑、笔记本电脑、台式电脑、智能电视、智能 手表等设备。Embodiments of the present application provide a content collaboration method. The content collaboration method is applied to a first electronic device. The first electronic device may be a smartphone, a tablet computer, a handheld computer, a notebook computer, a desktop computer, a smart TV, a smart phone, or a smart phone. Watches and other equipment.
请参阅图1,图1为本申请实施例提供的内容协同方法的一种流程示意图。本申请实施例提供的内容协同方法的具体流程可以如下:Please refer to Figure 1, which is a schematic flowchart of a content collaboration method provided by an embodiment of the present application. The specific process of the content collaboration method provided by the embodiments of this application can be as follows:
101、与第二电子设备建立近场无线连接。101. Establish a near-field wireless connection with the second electronic device.
其中,第二电子设备也可以是智能手机、平板电脑、掌上电脑、笔记本电脑、台式电脑、智能电视、智能手表等设备。如图2所示,图2为本申请实施例同的内容协同方法的应用环境示意图。接下来,以第一电子设备为手机,第二电子设备为平板电脑为例,对本申请实施例的方案进行详细说明。Among them, the second electronic device may also be a smart phone, a tablet computer, a handheld computer, a notebook computer, a desktop computer, a smart TV, a smart watch and other devices. As shown in Figure 2, Figure 2 is a schematic diagram of the application environment of the content collaboration method according to the embodiment of the present application. Next, taking the first electronic device as a mobile phone and the second electronic device as a tablet computer as an example, the solution of the embodiment of the present application will be described in detail.
手机和平板电脑中均设置有通信模块,通过两者的通信模块建立第一电子设备与第二电子设备之间的近场无线连接,以进行信息传输。其中,近场无线连接可以是蓝牙连接、或者第一电子设备与第二电子设备连接至同一个无线热点,该无线热点可以是wifi热点,例如,可以是无线路由器,或者是手机提供的无线热点等。Both the mobile phone and the tablet computer are provided with communication modules, and a near-field wireless connection between the first electronic device and the second electronic device is established through the communication modules of the two for information transmission. The near-field wireless connection may be a Bluetooth connection, or the first electronic device and the second electronic device may be connected to the same wireless hotspot. The wireless hotspot may be a wifi hotspot, for example, it may be a wireless router or a wireless hotspot provided by a mobile phone. wait.
102、当检测到产生新的目标内容时,基于目标内容生成数据流转通知,并基于近场无线连接将数据流转通知发送至第二电子设备。102. When it is detected that new target content is generated, generate a data transfer notification based on the target content, and send the data transfer notification to the second electronic device based on the near-field wireless connection.
本申请实施例中的目标内容可以是图像、视频等影像数据,也可以是其他格式的数据,如文档数据,音频数据等。在实际应用中,可以根据具体场景确定目标内容的类型。The target content in the embodiment of this application may be image data such as images and videos, or data in other formats, such as document data, audio data, etc. In practical applications, the type of target content can be determined based on specific scenarios.
以目标内容是影像数据为例,手机可以对影像库进行监听,以检测手机上是否有产生新的影像数据,例如,影像库可以是手机上的相册。例如,当用户进行拍摄操作、录像操作、截屏操作、屏幕录制操作时,都会产生新的影像数据,并且对应的应用程序会将产生的新的影像数据存储至影像库。因此,当监听到影像库存储了新的影像数据时,基于该影像数据生成数据流转通知。该数据流转通知用于通知平板电脑:手机上有新的目标内容。Taking the target content as image data as an example, the mobile phone can monitor the image library to detect whether new image data is generated on the mobile phone. For example, the image library can be a photo album on the mobile phone. For example, when the user performs shooting operations, video recording operations, screenshot operations, and screen recording operations, new image data will be generated, and the corresponding application will store the generated new image data in the image library. Therefore, when it is monitored that the image database stores new image data, a data transfer notification is generated based on the image data. This data transfer notification is used to notify the tablet that there is new target content on the phone.
手机在生成数据流转通知后,将该数据流转通知发送至平板电脑。After the mobile phone generates the data transfer notification, it sends the data transfer notification to the tablet.
103、响应于第二电子设备发送的内容协同请求,建立第一电子设备与第二电子设备之间的数据传输通道。103. In response to the content collaboration request sent by the second electronic device, establish a data transmission channel between the first electronic device and the second electronic device.
平板电脑在接收到该数据流转通知后,可以显示该数据流转通知,以提醒用户手机上有新的目标内容可以传输。如图3所示,图3为本申请实施例提供的内容协同方法中的数据流转通知的示意图。例如,在平板电脑的显示界面上以弹窗形式显示数据流转通知。After receiving the data transfer notification, the tablet computer can display the data transfer notification to remind the user that there is new target content available for transmission on the mobile phone. As shown in Figure 3, Figure 3 is a schematic diagram of data flow notification in the content collaboration method provided by the embodiment of the present application. For example, a data transfer notification is displayed in a pop-up window on the display interface of a tablet computer.
用户看到该通知之后,可以通过点击该通知触发保存指令,例如,点击图3中的“点击保存”的文字。平板电脑在接收到基于数据流转通知触发的数据保存指令之后,向第一电子 设备发起内容协同请求,以与第一电子设备建立数据传输通道。After the user sees the notification, he or she can trigger the save instruction by clicking on the notification, for example, clicking on the text "Click to Save" in Figure 3. After receiving the data saving instruction triggered based on the data transfer notification, the tablet computer sends the The device initiates a content collaboration request to establish a data transmission channel with the first electronic device.
手机响应于平板电脑发送的内容协同请求,建立第一电子设备与第二电子设备之间的数据传输通道。The mobile phone responds to the content collaboration request sent by the tablet computer and establishes a data transmission channel between the first electronic device and the second electronic device.
104、通过数据传输通道将目标内容发送至第二电子设备。104. Send the target content to the second electronic device through the data transmission channel.
在完成数据传输通道的建立之后,手机将新的目标内容通过该数据传输通道发送至第二电子设备。至此,完成了数据在两台设备之间的快速流转,除了需要用户连接两台设备,并进行点击保存的操作之外,不需要用户执行其他的额外操作,提高了数据跨设备传输的效率。After completing the establishment of the data transmission channel, the mobile phone sends the new target content to the second electronic device through the data transmission channel. At this point, the rapid flow of data between the two devices is completed. In addition to requiring the user to connect the two devices and click to save, the user is not required to perform other additional operations, which improves the efficiency of data transmission across devices.
具体实施时,本申请不受所描述的各个步骤的执行顺序的限制,在不产生冲突的情况下,某些步骤还可以采用其它顺序进行或者同时进行。During specific implementation, the present application is not limited by the execution order of each described step. Certain steps may also be performed in other orders or at the same time if no conflict occurs.
由上可知,本申请实施例提供的内容协同方法,与第二电子设备建立近场无线连接,检测到产生新的目标内容时,基于目标内容生成数据流转通知,并基于近场无线连接将数据流转通知发送至第二电子设备;响应于第二电子设备发送的内容协同请求,建立与第二电子设备之间的数据传输通道,然后通过该数据传输通道将目标内容传输至第二电子设备。通过本申请实施例的方案,提升了不同设备之间数据流转的效率。It can be seen from the above that the content collaboration method provided by the embodiment of the present application establishes a near-field wireless connection with the second electronic device. When it detects that new target content is generated, a data transfer notification is generated based on the target content, and the data is transferred based on the near-field wireless connection. The transfer notification is sent to the second electronic device; in response to the content collaboration request sent by the second electronic device, a data transmission channel is established with the second electronic device, and then the target content is transmitted to the second electronic device through the data transmission channel. Through the solutions of the embodiments of this application, the efficiency of data transfer between different devices is improved.
在一些实施例中,通过数据传输通道将目标内容发送至第二电子设备之后,该方法还包括:当目标内容传输完成后,断开数据传输通道。In some embodiments, after sending the target content to the second electronic device through the data transmission channel, the method further includes: disconnecting the data transmission channel after the target content transmission is completed.
该实施例的方案中,在完成目标内容,例如影像数据的传输之后,断开建立的数据传输通道,以节约功耗。由于手机与平板之间仍然保持着蓝牙长连接,当手机端产生新的目标内容时,仍然可以按照上文中的方案向平板发送将数据流转通知,并在需要传输目标内容时,再建立数据传输通道。In the solution of this embodiment, after the transmission of the target content, such as image data, is completed, the established data transmission channel is disconnected to save power consumption. Since there is still a long Bluetooth connection between the mobile phone and the tablet, when the mobile phone generates new target content, it can still send a data transfer notification to the tablet according to the above scheme, and then establish data transmission when the target content needs to be transmitted. aisle.
在一实施例中,第一电子设备包括第一协同模块,第二电子设备包括第二协同模块。响应于第二电子设备发送的内容协同请求,建立第一电子设备与第二电子设备之间的数据传输通道,包括:响应于第二电子设备发送的内容协同请求,建立第一协同模块与第二协同模块之间的数据传输通道。In an embodiment, the first electronic device includes a first collaboration module, and the second electronic device includes a second collaboration module. In response to the content collaboration request sent by the second electronic device, establishing a data transmission channel between the first electronic device and the second electronic device includes: in response to the content collaboration request sent by the second electronic device, establishing the first collaboration module and the second electronic device. Data transmission channel between two collaborative modules.
如图4所示,图4为本申请实施例中内容协同服务的架构示意图。本申请实施例的方案在现有的安卓框架的基础上,在其框架层增加了协同模块,为了区分两个不同设备,将第一电子设备的协同模块记为第一协同模块,将第二电子设备的协同模块记为第二协同模块。第一电子设备和第二电子设备基于协同模块实现两台设备之间的互联,在第一协同模 块和第二协同模块之间建立数据传输通道,从而实现数据的快速流转。此外,需要说明的是,图中仅示出了与本申请相关的模块,除此之外,安卓框架中的其他模块在图中未示出。As shown in Figure 4, Figure 4 is a schematic architectural diagram of content collaboration services in an embodiment of the present application. The solution of the embodiment of the present application is based on the existing Android framework and adds a collaboration module to the framework layer. In order to distinguish two different devices, the collaboration module of the first electronic device is recorded as the first collaboration module, and the collaboration module of the second electronic device is recorded as the first collaboration module. The cooperative module of the electronic device is recorded as the second cooperative module. The first electronic device and the second electronic device implement interconnection between the two devices based on the collaboration module. In the first collaboration module, A data transmission channel is established between the module and the second collaboration module to achieve rapid data flow. In addition, it should be noted that only the modules related to this application are shown in the figure. In addition, other modules in the Android framework are not shown in the figure.
在一实施例中,第一电子设备基于连接管理子模块与第二电子设备之间建立近场无线连接。In one embodiment, the first electronic device establishes a near-field wireless connection with the second electronic device based on the connection management submodule.
如图5和图6所示,图5为本申请实施例中的内容协同服务的处理流程的一种示意图。图6为本申请实施例中的内容协同服务的处理流程的另一种示意图。As shown in Figures 5 and 6, Figure 5 is a schematic diagram of the processing flow of the content collaboration service in the embodiment of the present application. Figure 6 is another schematic diagram of the processing flow of the content collaboration service in the embodiment of the present application.
本申请实施例的电子设备的网络模块可以包括蓝牙模块、WIFI直连模块、P2P(Peer-to-Peer,点对点)连接模块等。The network module of the electronic device in the embodiment of the present application may include a Bluetooth module, a WIFI direct connection module, a P2P (Peer-to-Peer, point-to-point) connection module, etc.
该实施例中,第一协同模块和第二协同模块分别具有连接管理子模块,该连接管理子模块可以基于电子设备的网络模块实现。In this embodiment, the first collaboration module and the second collaboration module each have a connection management sub-module, and the connection management sub-module can be implemented based on the network module of the electronic device.
其中,第一协同模块和第二系统模块可以基于应用程序实现,即在第一电子设备和第二电子设备中分别设置有内容协同程序,当用户两台设备的互联开关后,两台设备的中的内容协同程序运行并实现本申请实施例提出的内容协同方法。Among them, the first collaboration module and the second system module can be implemented based on application programs, that is, content collaboration programs are respectively provided in the first electronic device and the second electronic device. When the user switches on the interconnection of the two devices, the two devices The content collaboration program in runs and implements the content collaboration method proposed in the embodiment of this application.
仍然以手机和平板电脑为例,手机与平板电脑之间先建立近场无线连接,如建立蓝牙连接,并保持蓝牙长连接,这种连接可以称为无感连接。平板电脑通过该蓝牙长连接接收手机发送的数据流转通知。当需要传输数据时,再建立数据传输通道,例如P2P通道,以降低设备的功耗。Still taking mobile phones and tablets as an example, a near-field wireless connection is first established between the mobile phone and the tablet, such as establishing a Bluetooth connection and maintaining a long Bluetooth connection. This connection can be called an inductive connection. The tablet computer receives the data transfer notification sent by the mobile phone through the Bluetooth long connection. When data needs to be transmitted, a data transmission channel, such as a P2P channel, is established to reduce the power consumption of the device.
在一实施例中,目标内容为影像数据;当检测到产生新的目标内容时,基于目标内容生成数据流转通知之前,该方法还包括:通过监听子模块对影像库的变化情况进行监测,并在监测到影像库发生变化时,确定有新的影像数据产生。In one embodiment, the target content is image data; when it is detected that new target content is generated, before generating a data transfer notification based on the target content, the method further includes: monitoring changes in the image library through the monitoring sub-module, and When changes in the image database are detected, it is determined that new image data is generated.
当检测到产生新的影像数据时,基于影像数据生成数据流转通知,包括:当检测到产生新的影像数据时,通过能力互通子模块对影像数据的信息进行封装并生成数据流转通知。When it is detected that new image data is generated, a data transfer notification is generated based on the image data, including: when it is detected that new image data is generated, the information of the image data is encapsulated through the capability interoperability sub-module and a data transfer notification is generated.
请继续参阅图5和图6,第一协同模块还包括数据监听子模块和能力互通子模块,其中,数据监听子模块和能力互通子模块都可以通过软件(应用程序)的形式实现。手机通过数据监听子模块对影像库的内容变化情况进行监听,当监听到影像库中存入新的影像数据时,拉起并通知能力互通子模块,通过能力互通子模块对影像数据的信息进行封装并生成数据流转通知,例如,通过DataBus接口进行封装,然后将该数据流转通知通过无感连接发送至第二电子设备。Please continue to refer to Figures 5 and 6. The first collaboration module also includes a data monitoring sub-module and a capability interoperability sub-module. Both the data monitoring sub-module and the capability interoperability sub-module can be implemented in the form of software (application program). The mobile phone monitors the content changes of the image library through the data monitoring sub-module. When it monitors that new image data is stored in the image library, it pulls up and notifies the capability interoperability sub-module, and performs the information on the image data through the capability interoperability sub-module. Encapsulate and generate the data flow notification, for example, through the DataBus interface, and then send the data flow notification to the second electronic device through a senseless connection.
在一实施例中,通过数据传输通道将目标内容发送至第二电子设备之前,该方法还包 括:通过投屏服务子模块对数据传输通道的变化情况进行监听;当检测到数据传输通道建立后,执行通过数据传输通道将目标内容发送至第二电子设备的步骤。In one embodiment, before sending the target content to the second electronic device through the data transmission channel, the method further includes The method includes: monitoring changes in the data transmission channel through the screen projection service sub-module; when detecting that the data transmission channel is established, performing the step of sending the target content to the second electronic device through the data transmission channel.
通过数据传输通道将目标内容发送至第二电子设备,包括:通过投屏服务子模块基于投屏协议将目标内容发送至第二电子设备。Sending the target content to the second electronic device through the data transmission channel includes: sending the target content to the second electronic device based on the screen projection protocol through the screen projection service sub-module.
请继续参阅图5和图6,第一协同模块还包括投屏服务子模块。其中,第二协同模块包括内容协同子模块和连接管理子模块,该连接管理子模块的功能与第二系统模块的连接管理子模块的功能相同。该投屏服务子模块设置有投屏协议,第一电子设备可以基于该投屏协议将第一电子设备的显示画面投至第二电子设备进行显示,并通过第一电子设备控制该显示画面。该实施例中,可以通过投屏服务子模块复用该投屏协议将目标内容发送给第二电子设备。例如,平板电脑接收到数据流转通知后,显示该数据流转通知,用户点击保存后,触发保存事件,第二协同模块的内容协同模块先连接管理子模块请求P2P,该连接管理子模块创建P2P,并将回调给到第一协同模块的连接管理子模块,以建立数据传输通道,即P2P通道。与此同时,第一协同模块的投屏服务子模块对数据传输通道的变化情况进行监听,第一协同模块的连接管理子模块在成功建立P2P通道后,将P2P的变化情况发送给投屏服务子模块,当投屏服务子模块检测到数据传输通道建立后,复用投屏协议将目标内容通过数据传输通道发送至第二电子设备。平板电脑结合接收到目标内容后,展示该目标内容,例如,若目标内容为图像,则打开该图像并显示,若目标内容为视频,则播放该视频。Please continue to refer to Figures 5 and 6. The first collaboration module also includes a screen projection service sub-module. The second collaboration module includes a content collaboration sub-module and a connection management sub-module. The function of the connection management sub-module is the same as that of the connection management sub-module of the second system module. The screen projection service sub-module is provided with a screen projection protocol. Based on the screen projection protocol, the first electronic device can project the display screen of the first electronic device to the second electronic device for display, and control the display screen through the first electronic device. In this embodiment, the screen projection protocol can be reused through the screen projection service sub-module to send the target content to the second electronic device. For example, after the tablet computer receives the data transfer notification, it displays the data transfer notification. After the user clicks save, a save event is triggered. The content collaboration module of the second collaboration module first requests P2P from the connection management sub-module, and the connection management sub-module creates P2P. And the callback is given to the connection management sub-module of the first collaboration module to establish a data transmission channel, that is, a P2P channel. At the same time, the screen projection service sub-module of the first collaboration module monitors changes in the data transmission channel. After the P2P channel is successfully established, the connection management sub-module of the first collaboration module sends the P2P changes to the screen projection service. Sub-module, when the screen projection service sub-module detects that the data transmission channel is established, it multiplexes the screen projection protocol to send the target content to the second electronic device through the data transmission channel. After receiving the target content, the tablet computer displays the target content. For example, if the target content is an image, the image is opened and displayed; if the target content is a video, the video is played.
在一实施例中,近场无线连接为经典蓝牙连接、低功耗蓝牙连接或者连接至同一无线接入点;数据传输通道为点对点P2P通道。In one embodiment, the near-field wireless connection is a classic Bluetooth connection, a low-power Bluetooth connection, or connected to the same wireless access point; the data transmission channel is a point-to-point P2P channel.
通过上述实施例的方案,实现了数据在两台设备之间的快速流转。Through the solution of the above embodiment, rapid data flow between two devices is achieved.
本申请实施例还提供一种内容协同方法,该内容协同方法应用于第二电子设备,第二电子设备也可以是智能手机、平板电脑、掌上电脑、笔记本电脑、或者台式电脑等设备。Embodiments of the present application also provide a content collaboration method, which is applied to a second electronic device. The second electronic device may also be a smart phone, a tablet computer, a handheld computer, a notebook computer, or a desktop computer.
请参阅图7,图7为本发明实施例提供的内容协同方法的另一种流程示意图。方法包括:Please refer to FIG. 7 , which is another schematic flowchart of a content collaboration method provided by an embodiment of the present invention. Methods include:
201、与第一电子设备建立近场无线连接。201. Establish a near-field wireless connection with the first electronic device.
202、接收并展示第一电子设备基于近场无线连接发送的数据流转通知。202. Receive and display the data transfer notification sent by the first electronic device based on the near-field wireless connection.
203、若接收到基于数据流转通知触发的数据保存指令,则向第一电子设备发起内容协同请求,以与第一电子设备建立数据传输通道。 203. If a data saving instruction triggered based on the data transfer notification is received, initiate a content collaboration request to the first electronic device to establish a data transmission channel with the first electronic device.
204、接收第一电子设备基于数据传输通道传输的目标内容。204. Receive the target content transmitted by the first electronic device based on the data transmission channel.
该实施例中各步骤的实现请参见上述实施例,在此不再赘述。For the implementation of each step in this embodiment, please refer to the above embodiment and will not be described again here.
在一些实施例中,接收并展示第一电子设备基于近场无线连接发送的数据流转通知,包括:当接收到第一电子设备基于近场无线连接发送的数据流转通知时,根据数据流转通知获取第一电子设备的标识信息和目标内容的缩略图;基于缩略图和标识信息,在通知栏展示数据流转通知。In some embodiments, receiving and displaying a data flow notification sent by the first electronic device based on a near-field wireless connection includes: when receiving a data flow notification sent by the first electronic device based on a near-field wireless connection, obtaining according to the data flow notification The identification information of the first electronic device and the thumbnail of the target content; based on the thumbnail and identification information, a data transfer notification is displayed in the notification bar.
在一些实施例中,数据传输通道为点对点P2P通道;第一电子设备包括第一协同模块,第二电子设备包括第二协同模块;若接收到基于数据流转通知触发的数据保存指令,向第一电子设备发起内容协同请求,以与第一电子设备建立数据传输通道,包括:若接收到基于数据流转通知触发的数据保存指令,通过第二协同模块向第一电子设备发起内容协同请求;响应于第一协同模块返回的P2P通道的回调信息,建立第一协同模块与第二协同模块之间的P2P通道。In some embodiments, the data transmission channel is a point-to-point P2P channel; the first electronic device includes a first collaboration module, and the second electronic device includes a second collaboration module; if a data saving instruction triggered based on the data transfer notification is received, send the data to the first collaboration module. The electronic device initiates a content collaboration request to establish a data transmission channel with the first electronic device, including: if a data saving instruction triggered based on the data transfer notification is received, initiating a content collaboration request to the first electronic device through the second collaboration module; responding to The callback information of the P2P channel returned by the first collaboration module establishes the P2P channel between the first collaboration module and the second collaboration module.
在一些实施例中,接收第一电子设备基于数据传输通道传输的目标内容,包括:通过第二协同模块对文件服务进行初始化处理;通过初始化处理后的文件服务调用文件传输相关接口,接收第一协同模块基于数据传输通道传输的目标内容。In some embodiments, receiving the target content transmitted by the first electronic device based on the data transmission channel includes: initializing the file service through the second collaboration module; calling the file transmission related interface through the initialized file service, receiving the first The collaboration module is based on the target content transmitted by the data transmission channel.
该实施例中,在完成数据传输通道的建立之后,第二电子设备会进行fileService(文件服务)的初始化,然后根据fileInfo(文件信息)调用文件的createFile()和WriteFile()接口,以进行目标内容的传输。In this embodiment, after completing the establishment of the data transmission channel, the second electronic device will initialize the fileService (file service), and then call the createFile() and WriteFile() interfaces of the file according to the fileInfo (file information) to perform the target Transmission of content.
在一些实施例中,若接收到基于数据流转通知触发的数据保存指令,则向第一电子设备发起内容协同请求,以与第一电子设备建立数据传输通道之后,方法还包括:根据目标内容的传输进度,在数据流转通知的窗口中显示数据保存进度。In some embodiments, after receiving the data saving instruction triggered based on the data transfer notification, and then initiating a content collaboration request to the first electronic device to establish a data transmission channel with the first electronic device, the method further includes: according to the target content Transfer progress, data saving progress is displayed in the data transfer notification window.
在一些实施例中,目标内容为影像数据;根据目标内容的传输进度,在数据流转通知的窗口中显示数据保存进度之后,方法还包括:当影像数据保存完成后,显示数据保存完成的弹窗通知;当检测到基于弹窗通知触发的查看指令时,在显示界面上展示影像数据。In some embodiments, the target content is image data; according to the transmission progress of the target content, after displaying the data saving progress in the data transfer notification window, the method further includes: when the image data saving is completed, displaying a pop-up window indicating that the data saving is completed. Notification; when a viewing command triggered based on a pop-up notification is detected, the image data is displayed on the display interface.
该实施例中,当影像数据保存完成后,第二电子设备显示数据保存完成的弹窗通知,用户可以基于该弹窗通知触发查看指令以查看传输的影像数据,当第二电子设备检测到查看指令时,在显示界面上展示影像数据。In this embodiment, when the image data is saved, the second electronic device displays a pop-up notification that the data is saved. The user can trigger a viewing command based on the pop-up notification to view the transmitted image data. When the second electronic device detects that the viewing When commanded, the image data is displayed on the display interface.
由上可知,本发明实施例提出的内容协同方法,与第一电子设备建立近场无线连接,接收并展示第一电子设备基于近场无线连接发送的数据流转通知。然后,当接收到基于该 数据流转通知触发的数据保存指令,则向第一电子设备发起内容协同请求以与第一电子设备建立数据传输通道,接收第一电子设备基于数据传输通道传输的目标内容。通过本申请实施例的方案,提升了不同设备之间数据流转的效率。It can be seen from the above that the content collaboration method proposed in the embodiment of the present invention establishes a near-field wireless connection with the first electronic device, receives and displays the data flow notification sent by the first electronic device based on the near-field wireless connection. Then, when receiving the The data saving instruction triggered by the data transfer notification initiates a content collaboration request to the first electronic device to establish a data transmission channel with the first electronic device, and receives the target content transmitted by the first electronic device based on the data transmission channel. Through the solutions of the embodiments of this application, the efficiency of data transfer between different devices is improved.
在一实施例中还提供一种内容协同装置。请参阅图8,图8为本申请实施例提供的内容协同装置的一种结构示意图。其中该内容协同装置300应用于第一电子设备,该内容协同装置300包括:In one embodiment, a content collaboration device is also provided. Please refer to FIG. 8 , which is a schematic structural diagram of a content collaboration device provided by an embodiment of the present application. The content collaboration device 300 is applied to the first electronic device. The content collaboration device 300 includes:
第一连接单元301,用于与第二电子设备建立近场无线连接;The first connection unit 301 is used to establish a near-field wireless connection with a second electronic device;
第一通知单元302,用于当检测到产生新的目标内容时,基于所述目标内容生成数据流转通知,并基于所述近场无线连接将所述数据流转通知发送至所述第二电子设备;The first notification unit 302 is configured to generate a data transfer notification based on the target content when new target content is detected, and send the data transfer notification to the second electronic device based on the near-field wireless connection. ;
第一连接单元301还用于:响应于所述第二电子设备发送的内容协同请求,建立所述第一电子设备与所述第二电子设备之间的数据传输通道;The first connection unit 301 is also configured to: respond to the content collaboration request sent by the second electronic device, establish a data transmission channel between the first electronic device and the second electronic device;
第一传输单元303,用于通过所述数据传输通道将所述目标内容发送至所述第二电子设备。The first transmission unit 303 is configured to send the target content to the second electronic device through the data transmission channel.
在一些实施例中,第一连接单元301还用于:当所述目标内容传输完成后,断开所述数据传输通道。In some embodiments, the first connection unit 301 is also configured to disconnect the data transmission channel after the target content transmission is completed.
在一些实施例中,所述第一电子设备包括第一协同模块,所述第二电子设备包括第二协同模块;第一连接单元301还用于:响应于所述第二电子设备发送的内容协同请求,建立所述第一协同模块与所述第二协同模块之间的数据传输通道。In some embodiments, the first electronic device includes a first collaboration module, and the second electronic device includes a second collaboration module; the first connection unit 301 is further configured to: respond to content sent by the second electronic device Collaboration request: establish a data transmission channel between the first collaboration module and the second collaboration module.
在一些实施例中,所述第一协同模块包括连接管理子模块;第一连接单元301还用于:基于所述连接管理子模块与所述第二电子设备之间建立近场无线连接。In some embodiments, the first collaboration module includes a connection management sub-module; the first connection unit 301 is further configured to establish a near-field wireless connection between the connection management sub-module and the second electronic device.
在一些实施例中,所述目标内容为影像数据;所述第一协同模块还包括数据监听子模块和能力互通子模块;第一通知单元302还用于:通过所述监听子模块对影像库的变化情况进行监测,并在监测到所述影像库发生变化时,确定有新的影像数据产生;当检测到产生新的影像数据时,通过所述能力互通子模块对所述影像数据的信息进行封装并生成数据流转通知。In some embodiments, the target content is image data; the first collaboration module also includes a data monitoring sub-module and a capability interoperability sub-module; the first notification unit 302 is also used to: monitor the image library through the monitoring sub-module Monitor changes in the image database, and when changes in the image database are detected, it is determined that new image data is generated; when it is detected that new image data is generated, the information on the image data is processed through the capability interoperability sub-module. Encapsulate and generate data flow notifications.
在一些实施例中,所述第一协同模块还包括投屏服务子模块;第一传输单元303还用于:通过所述投屏服务子模块对数据传输通道的变化情况进行监听;当检测到数据传输通道建立后,通过所述投屏服务子模块基于投屏协议将所述目标内容发送至所述第二电子设备。 In some embodiments, the first collaboration module also includes a screen projection service sub-module; the first transmission unit 303 is also configured to: monitor changes in the data transmission channel through the screen projection service sub-module; when detecting After the data transmission channel is established, the target content is sent to the second electronic device through the screen casting service sub-module based on the screen casting protocol.
在一些实施例中,所述近场无线连接为经典蓝牙连接、低功耗蓝牙连接或者连接至同一无线接入点;所述数据传输通道为点对点P2P通道。In some embodiments, the near-field wireless connection is a classic Bluetooth connection, a low-power Bluetooth connection, or connected to the same wireless access point; the data transmission channel is a point-to-point P2P channel.
应当说明的是,本申请实施例提供的内容协同装置与上文实施例中的内容协同方法属于同一构思,通过该内容协同装置可以实现内容协同方法实施例中提供的任一方法,其具体实现过程详见内容协同方法实施例,此处不再赘述。It should be noted that the content collaboration device provided by the embodiment of the present application belongs to the same concept as the content collaboration method in the above embodiment. Any method provided in the content collaboration method embodiment can be implemented through the content collaboration device, and its specific implementation Please refer to the content collaboration method embodiment for details of the process, which will not be described again here.
由上可知,本申请实施例提出的内容协同装置,与第二电子设备建立近场无线连接,检测到产生新的目标内容时,基于目标内容生成数据流转通知,并基于近场无线连接将数据流转通知发送至第二电子设备;响应于第二电子设备发送的内容协同请求,建立与第二电子设备之间的数据传输通道,然后通过该数据传输通道将目标内容传输至第二电子设备。通过本申请实施例的方案,提升了不同设备之间数据流转的效率。It can be seen from the above that the content collaboration device proposed in the embodiment of the present application establishes a near-field wireless connection with the second electronic device. When it detects that new target content is generated, it generates a data transfer notification based on the target content, and transfers the data based on the near-field wireless connection. The transfer notification is sent to the second electronic device; in response to the content collaboration request sent by the second electronic device, a data transmission channel is established with the second electronic device, and then the target content is transmitted to the second electronic device through the data transmission channel. Through the solutions of the embodiments of this application, the efficiency of data transfer between different devices is improved.
在一实施例中还提供一种内容协同装置。请参阅图9,图9为本申请实施例提供的内容协同装置的另一种结构示意图。其中该内容协同装置400应用于第二电子设备,该内容协同装置400包括:In one embodiment, a content collaboration device is also provided. Please refer to FIG. 9 , which is another schematic structural diagram of a content collaboration device provided by an embodiment of the present application. The content collaboration device 400 is applied to the second electronic device. The content collaboration device 400 includes:
第二连接单元401,用于与第一电子设备建立近场无线连接;The second connection unit 401 is used to establish a near-field wireless connection with the first electronic device;
第二通知单元402,用于接收并展示所述第一电子设备基于所述近场无线连接发送的数据流转通知;The second notification unit 402 is configured to receive and display the data flow notification sent by the first electronic device based on the near-field wireless connection;
第二连接单元401还用于:若接收到基于所述数据流转通知触发的数据保存指令,则向所述第一电子设备发起内容协同请求,以与所述第一电子设备建立数据传输通道;The second connection unit 401 is also configured to: if a data saving instruction triggered based on the data transfer notification is received, initiate a content collaboration request to the first electronic device to establish a data transmission channel with the first electronic device;
第二传输单元403,用于接收所述第一电子设备基于所述数据传输通道传输的目标内容。The second transmission unit 403 is configured to receive target content transmitted by the first electronic device based on the data transmission channel.
在一些实施例中,第二通知单元402还用于:当接收到所述第一电子设备基于所述近场无线连接发送的数据流转通知时,根据所述数据流转通知获取所述第一电子设备的标识信息和所述目标内容的缩略图;基于所述缩略图和所述标识信息,在通知栏展示所述数据流转通知。In some embodiments, the second notification unit 402 is further configured to: when receiving a data flow notification sent by the first electronic device based on the near-field wireless connection, obtain the first electronic device according to the data flow notification. The identification information of the device and the thumbnail of the target content; based on the thumbnail and the identification information, the data transfer notification is displayed in the notification bar.
在一些实施例中,所述数据传输通道为点对点P2P通道;所述第一电子设备包括第一协同模块,所述第二电子设备包括第二协同模块;第二连接单元401还用于:若接收到基于所述数据流转通知触发的数据保存指令,通过所述第二协同模块向所述第一电子设备发起内容协同请求;响应于所述第一协同模块返回的P2P通道的回调信息,建立所述第一协同模块与所述第二协同模块之间的P2P通道。 In some embodiments, the data transmission channel is a point-to-point P2P channel; the first electronic device includes a first collaboration module, and the second electronic device includes a second collaboration module; the second connection unit 401 is also used to: if Upon receiving the data saving instruction triggered based on the data transfer notification, initiate a content collaboration request to the first electronic device through the second collaboration module; in response to the callback information of the P2P channel returned by the first collaboration module, establish A P2P channel between the first collaboration module and the second collaboration module.
在一些实施例中,第二传输单元403还用于:通过所述第二协同模块对文件服务进行初始化处理;通过初始化处理后的所述文件服务调用文件传输相关接口,接收所述第一协同模块基于所述数据传输通道传输的目标内容。In some embodiments, the second transmission unit 403 is also configured to: initialize the file service through the second collaboration module; call the file transmission related interface through the initialized file service to receive the first collaboration The module is based on the target content transmitted by the data transmission channel.
在一些实施例中,第二通知单元402还用于:根据所述目标内容的传输进度,在所述数据流转通知的窗口中显示数据保存进度。In some embodiments, the second notification unit 402 is also configured to: display the data saving progress in the window of the data transfer notification according to the transmission progress of the target content.
在一些实施例中,第二通知单元402还用于:当所述影像数据保存完成后,显示数据保存完成的弹窗通知;当检测到基于所述弹窗通知触发的查看指令时,在显示界面上展示所述影像数据。In some embodiments, the second notification unit 402 is also configured to: when the image data is saved, display a pop-up notification of data saving completion; when a viewing instruction triggered based on the pop-up notification is detected, display the The image data is displayed on the interface.
由上可知,本申请实施例提出的内容协同装置,与第一电子设备建立近场无线连接,接收并展示第一电子设备基于近场无线连接发送的数据流转通知。然后,当接收到基于该数据流转通知触发的数据保存指令,则向第一电子设备发起内容协同请求以与第一电子设备建立数据传输通道,接收第一电子设备基于数据传输通道传输的目标内容。通过本申请实施例的方案,提升了不同设备之间数据流转的效率。It can be seen from the above that the content collaboration device proposed in the embodiment of the present application establishes a near-field wireless connection with the first electronic device, receives and displays the data transfer notification sent by the first electronic device based on the near-field wireless connection. Then, when the data saving instruction triggered based on the data transfer notification is received, a content collaboration request is initiated to the first electronic device to establish a data transmission channel with the first electronic device, and the target content transmitted by the first electronic device based on the data transmission channel is received. . Through the solutions of the embodiments of this application, the efficiency of data transfer between different devices is improved.
本申请实施例还提供一种电子设备。所述电子设备可以是智能手机、平板电脑等设备。请参阅图10,图10为本申请实施例提供的电子设备的一种结构示意图。电子设备500包括处理器501、存储器502和通信模块503。其中,处理器501与存储器502电性连接。An embodiment of the present application also provides an electronic device. The electronic device may be a smart phone, tablet computer or other devices. Please refer to FIG. 10 , which is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device 500 includes a processor 501, a memory 502, and a communication module 503. Among them, the processor 501 is electrically connected to the memory 502.
处理器501是电子设备500的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或调用存储在存储器502内的计算机程序,以及调用存储在存储器502内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。The processor 501 is the control center of the electronic device 500. It uses various interfaces and lines to connect various parts of the entire electronic device, and executes electronic tasks by running or calling computer programs stored in the memory 502 and calling data stored in the memory 502. The various functions of the device and process data to provide overall monitoring of the electronic device.
存储器502可用于存储计算机程序和数据。存储器502存储的计算机程序中包含有可在处理器中执行的指令。计算机程序可以组成各种功能模块。处理器501通过调用存储在存储器502的计算机程序,从而执行各种功能应用以及数据处理。Memory 502 may be used to store computer programs and data. The computer program stored in the memory 502 contains instructions that can be executed in the processor. Computer programs can be composed of various functional modules. The processor 501 executes various functional applications and data processing by calling computer programs stored in the memory 502 .
通信模块503用于与其他电子设备建立通信连接,例如经典蓝牙连接、低功耗蓝牙连接、WIFI连接、WIFI直连或者P2P连接等。The communication module 503 is used to establish communication connections with other electronic devices, such as classic Bluetooth connection, low-power Bluetooth connection, WIFI connection, WIFI direct connection or P2P connection, etc.
在本实施例中,电子设备500中的处理器501会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器502中,并由处理器501来运行存储在存储器502中的计算机程序,以执行下步骤:In this embodiment, the processor 501 in the electronic device 500 will follow the following steps to load instructions corresponding to the processes of one or more computer programs into the memory 502, and the processor 501 will run the instructions stored in the memory 502. A computer program in to perform the following steps:
与第二电子设备建立近场无线连接;establishing a near-field wireless connection with a second electronic device;
当检测到产生新的目标内容时,基于所述目标内容生成数据流转通知,并基于所述近 场无线连接将所述数据流转通知发送至所述第二电子设备;When it is detected that new target content is generated, a data transfer notification is generated based on the target content, and a data transfer notification is generated based on the recent target content. Field wireless connection sends the data transfer notification to the second electronic device;
响应于所述第二电子设备发送的内容协同请求,建立所述第一电子设备与所述第二电子设备之间的数据传输通道;In response to the content collaboration request sent by the second electronic device, establish a data transmission channel between the first electronic device and the second electronic device;
通过所述数据传输通道将所述目标内容发送至所述第二电子设备。The target content is sent to the second electronic device through the data transmission channel.
在一些实施例中,请参阅图11,图11为本申请实施例提供的电子设备的另一种结构示意图。电子设备500还包括:显示屏504、控制电路505、输入单元506、音频电路507、传感器508、电源509以及射频电路510、。其中,处理器501分别与显示屏504、控制电路505、输入单元506、音频电路507、传感器508、电源509以及射频电路510、电性连接。In some embodiments, please refer to FIG. 11 , which is another schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device 500 also includes: a display screen 504, a control circuit 505, an input unit 506, an audio circuit 507, a sensor 508, a power supply 509, and a radio frequency circuit 510. Among them, the processor 501 is electrically connected to the display screen 504, the control circuit 505, the input unit 506, the audio circuit 507, the sensor 508, the power supply 509 and the radio frequency circuit 510 respectively.
显示屏504可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种图形用户接口,这些图形用户接口可以由图像、文本、图标、视频和其任意组合来构成。The display screen 504 can be used to display information input by the user or information provided to the user as well as various graphical user interfaces of the electronic device. These graphical user interfaces can be composed of images, text, icons, videos, and any combination thereof.
控制电路505与显示屏504电性连接,用于控制显示屏504显示信息。The control circuit 505 is electrically connected to the display screen 504 and is used to control the display screen 504 to display information.
输入单元506可用于接收输入的数字、字符信息或用户特征信息(例如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。其中,输入单元506可以包括指纹识别模组。The input unit 506 may be used to receive inputted numbers, character information, or user characteristic information (such as fingerprints), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. Wherein, the input unit 506 may include a fingerprint recognition module.
音频电路507可通过扬声器、传声器提供用户与电子设备之间的音频接口。其中,音频电路507包括麦克风。所述麦克风与所述处理器501电性连接。所述麦克风用于接收用户输入的语音信息。The audio circuit 507 can provide an audio interface between the user and the electronic device through speakers and microphones. Among them, the audio circuit 507 includes a microphone. The microphone is electrically connected to the processor 501 . The microphone is used to receive voice information input by the user.
传感器508用于采集外部环境信息。传感器508可以包括环境亮度传感器、加速度传感器、陀螺仪等传感器中的一种或多种。Sensor 508 is used to collect external environment information. The sensor 508 may include one or more sensors such as an ambient brightness sensor, an acceleration sensor, and a gyroscope.
电源509用于给电子设备500的各个部件供电。在一些实施例中,电源509可以通过电源管理系统与处理器501逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The power supply 509 is used to power various components of the electronic device 500 . In some embodiments, the power supply 509 can be logically connected to the processor 501 through a power management system, so that functions such as charging, discharging, and power consumption management can be implemented through the power management system.
射频电路510用于收发射频信号,以通过无线通信与网络设备或其他电子设备进行通信。The radio frequency circuit 510 is used to transmit and receive radio frequency signals to communicate with network equipment or other electronic equipment through wireless communication.
由上可知,本申请实施例提供的电子设备,该电子设备与第二电子设备建立近场无线连接,检测到产生新的目标内容时,基于目标内容生成数据流转通知,并基于近场无线连接将数据流转通知发送至第二电子设备;响应于第二电子设备发送的内容协同请求,建立与第二电子设备之间的数据传输通道,然后通过该数据传输通道将目标内容传输至第二电 子设备。通过本申请实施例的方案,提升了不同设备之间数据流转的效率。It can be seen from the above that the electronic device provided by the embodiment of the present application establishes a near-field wireless connection with the second electronic device. When detecting that new target content is generated, a data transfer notification is generated based on the target content, and a data transfer notification is generated based on the near-field wireless connection. Send the data transfer notification to the second electronic device; in response to the content collaboration request sent by the second electronic device, establish a data transmission channel with the second electronic device, and then transmit the target content to the second electronic device through the data transmission channel. sub-device. Through the solutions of the embodiments of this application, the efficiency of data transfer between different devices is improved.
或者,在另一实施例中,电子设备500中的处理器501会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器502中,并由处理器501来运行存储在存储器502中的计算机程序,以执行下步骤:Or, in another embodiment, the processor 501 in the electronic device 500 will follow the following steps to load instructions corresponding to the processes of one or more computer programs into the memory 502, and the processor 501 will run the stored instructions. A computer program in memory 502 to perform the following steps:
与第一电子设备建立近场无线连接;establishing a near-field wireless connection with the first electronic device;
接收并展示所述第一电子设备基于所述近场无线连接发送的数据流转通知;Receive and display the data flow notification sent by the first electronic device based on the near-field wireless connection;
若接收到基于所述数据流转通知触发的数据保存指令,则向所述第一电子设备发起内容协同请求,以与所述第一电子设备建立数据传输通道;If a data saving instruction triggered based on the data transfer notification is received, initiate a content collaboration request to the first electronic device to establish a data transmission channel with the first electronic device;
接收所述第一电子设备基于所述数据传输通道传输的目标内容。Receive target content transmitted by the first electronic device based on the data transmission channel.
由上可知,本申请实施例提供的电子设备,该电子设备与第一电子设备建立近场无线连接,接收并展示第一电子设备基于近场无线连接发送的数据流转通知。然后,当接收到基于该数据流转通知触发的数据保存指令,则向第一电子设备发起内容协同请求以与第一电子设备建立数据传输通道,接收第一电子设备基于数据传输通道传输的目标内容。通过本申请实施例的方案,提升了不同设备之间数据流转的效率。It can be seen from the above that the electronic device provided by the embodiment of the present application establishes a near-field wireless connection with the first electronic device, receives and displays the data transfer notification sent by the first electronic device based on the near-field wireless connection. Then, when the data saving instruction triggered based on the data transfer notification is received, a content collaboration request is initiated to the first electronic device to establish a data transmission channel with the first electronic device, and the target content transmitted by the first electronic device based on the data transmission channel is received. . Through the solutions of the embodiments of this application, the efficiency of data transfer between different devices is improved.
本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,所述计算机执行上述任一实施例所述的内容协同方法。Embodiments of the present application also provide a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is run on a computer, the computer executes the steps described in any of the above embodiments. Content collaboration approach.
本申请实施例还提供一种内容协同系统,所述系统包括第一电子设备和第二电子设备;Embodiments of the present application also provide a content collaboration system, which includes a first electronic device and a second electronic device;
所述第一电子设备与所述第二电子设备建立近场无线连接;The first electronic device establishes a near-field wireless connection with the second electronic device;
所述第一电子设备检测到产生新的目标内容时,基于所述目标内容生成数据流转通知,并基于所述近场无线连接将所述数据流转通知发送至所述第二电子设备;When the first electronic device detects that new target content is generated, it generates a data transfer notification based on the target content, and sends the data transfer notification to the second electronic device based on the near-field wireless connection;
所述第二电子设备接收并展示所述数据流转通知,若接收到基于所述数据流转通知触发的数据保存指令,则向所述第一电子设备发起内容协同请求,以与所述第一电子设备建立数据传输通道;The second electronic device receives and displays the data transfer notification. If it receives a data saving instruction triggered based on the data transfer notification, it initiates a content collaboration request to the first electronic device to cooperate with the first electronic device. The device establishes a data transmission channel;
所述第一电子设备通过所述数据传输通道将所述目标内容发送至所述第二电子设备。The first electronic device sends the target content to the second electronic device through the data transmission channel.
需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过计算机程序来指令相关的硬件来完成,所述计算机程序可以存储于计算机可读存储介质中,所述计算机可读存储介质可以包括但不限于:只读存储器(ROM,Read Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁盘或光盘等。 It should be noted that those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. , the computer-readable storage medium may include but is not limited to: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks, etc.
此外,本申请中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或模块的过程、方法、系统、产品或设备没有限定于已列出的步骤或模块,而是某些实施例还包括没有列出的步骤或模块,或某些实施例还包括对于这些过程、方法、产品或设备固有的其它步骤或模块。In addition, the terms “first”, “second”, “third”, etc. in this application are used to distinguish different objects, rather than describing a specific sequence. Furthermore, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or modules is not limited to the listed steps or modules, but some embodiments also include unlisted steps or modules, or some embodiments Other steps or modules inherent to such processes, methods, products or devices are also included.
以上对本申请实施例所提供的内容协同方法、装置、系统、存储介质及电子设备进行了详细介绍。本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。 The content collaboration methods, devices, systems, storage media and electronic devices provided by the embodiments of the present application have been introduced in detail above. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core ideas; at the same time, for those skilled in the art, based on the application of Thoughts, there may be changes in the specific implementation and scope of application. In summary, the contents of this specification should not be understood as limiting the present application.

Claims (20)

  1. 一种内容协同方法,其中,应用于第一电子设备,所述方法包括:A content collaboration method, applied to a first electronic device, the method includes:
    与第二电子设备建立近场无线连接;establishing a near-field wireless connection with a second electronic device;
    当检测到产生新的目标内容时,基于所述目标内容生成数据流转通知,并基于所述近场无线连接将所述数据流转通知发送至所述第二电子设备;When it is detected that new target content is generated, generate a data transfer notification based on the target content, and send the data transfer notification to the second electronic device based on the near-field wireless connection;
    响应于所述第二电子设备发送的内容协同请求,建立所述第一电子设备与所述第二电子设备之间的数据传输通道;In response to the content collaboration request sent by the second electronic device, establish a data transmission channel between the first electronic device and the second electronic device;
    通过所述数据传输通道将所述目标内容发送至所述第二电子设备。The target content is sent to the second electronic device through the data transmission channel.
  2. 如权利要求1所述的方法,其中,所述通过所述数据传输通道将所述目标内容发送至所述第二电子设备之后,所述方法还包括:The method of claim 1, wherein after sending the target content to the second electronic device through the data transmission channel, the method further includes:
    当所述目标内容传输完成后,断开所述数据传输通道。After the transmission of the target content is completed, the data transmission channel is disconnected.
  3. 如权利要求1所述的方法,其中,所述第一电子设备包括第一协同模块,所述第二电子设备包括第二协同模块;The method of claim 1, wherein the first electronic device includes a first collaboration module, and the second electronic device includes a second collaboration module;
    所述响应于所述第二电子设备发送的内容协同请求,建立所述第一电子设备与所述第二电子设备之间的数据传输通道,包括:The step of establishing a data transmission channel between the first electronic device and the second electronic device in response to the content collaboration request sent by the second electronic device includes:
    响应于所述第二电子设备发送的内容协同请求,建立所述第一协同模块与所述第二协同模块之间的数据传输通道。In response to the content collaboration request sent by the second electronic device, a data transmission channel between the first collaboration module and the second collaboration module is established.
  4. 如权利要求3所述的方法,其中,所述第一协同模块包括连接管理子模块;所述与第二电子设备建立近场无线连接,包括:The method of claim 3, wherein the first collaboration module includes a connection management submodule; and establishing a near-field wireless connection with the second electronic device includes:
    基于所述连接管理子模块与所述第二电子设备之间建立近场无线连接。A near-field wireless connection is established between the connection management submodule and the second electronic device.
  5. 如权利要求3所述的方法,其中,所述目标内容为影像数据;所述第一协同模块还包括数据监听子模块和能力互通子模块;所述当检测到产生新的目标内容时,基于所述目标内容生成数据流转通知之前,所述方法还包括:The method of claim 3, wherein the target content is image data; the first collaboration module further includes a data monitoring sub-module and a capability interoperability sub-module; when it is detected that new target content is generated, based on Before the target content generates a data transfer notification, the method further includes:
    通过所述监听子模块对影像库的变化情况进行监测,并在监测到所述影像库发生变化时,确定有新的影像数据产生;Monitor changes in the image database through the monitoring sub-module, and determine that new image data is generated when changes in the image database are detected;
    所述当检测到产生新的影像数据时,基于所述影像数据生成数据流转通知,包括:When it is detected that new image data is generated, generating a data transfer notification based on the image data includes:
    当检测到产生新的影像数据时,通过所述能力互通子模块对所述影像数据的信息进行封装并生成数据流转通知。When it is detected that new image data is generated, the information of the image data is encapsulated through the capability interoperability sub-module and a data transfer notification is generated.
  6. 如权利要求5所述的方法,其中,所述第一协同模块还包括;所述通过所述数据 传输通道将所述目标内容发送至所述第二电子设备之前,所述方法还包括:The method of claim 5, wherein the first collaboration module further includes: passing the data Before the transmission channel sends the target content to the second electronic device, the method further includes:
    通过所述投屏服务子模块对数据传输通道的变化情况进行监听;Monitor changes in the data transmission channel through the screen projection service sub-module;
    当检测到数据传输通道建立后,执行所述通过所述数据传输通道将所述目标内容发送至所述第二电子设备的步骤;After detecting that the data transmission channel is established, perform the step of sending the target content to the second electronic device through the data transmission channel;
    所述通过所述数据传输通道将所述目标内容发送至所述第二电子设备,包括:The sending the target content to the second electronic device through the data transmission channel includes:
    通过所述投屏服务子模块基于投屏协议将所述目标内容发送至所述第二电子设备。The target content is sent to the second electronic device based on the screen casting protocol through the screen casting service sub-module.
  7. 如权利要求1至6任一项所述的方法,其中,所述近场无线连接为经典蓝牙连接、低功耗蓝牙连接或者连接至同一无线接入点;所述数据传输通道为点对点P2P通道。The method according to any one of claims 1 to 6, wherein the near-field wireless connection is a classic Bluetooth connection, a low-power Bluetooth connection or connected to the same wireless access point; the data transmission channel is a point-to-point P2P channel .
  8. 一种内容协同方法,其中,应用于第二电子设备,所述方法包括:A content collaboration method, applied to a second electronic device, the method includes:
    与第一电子设备建立近场无线连接;establishing a near-field wireless connection with the first electronic device;
    接收并展示所述第一电子设备基于所述近场无线连接发送的数据流转通知;Receive and display the data flow notification sent by the first electronic device based on the near-field wireless connection;
    若接收到基于所述数据流转通知触发的数据保存指令,则向所述第一电子设备发起内容协同请求,以与所述第一电子设备建立数据传输通道;If a data saving instruction triggered based on the data transfer notification is received, initiate a content collaboration request to the first electronic device to establish a data transmission channel with the first electronic device;
    接收所述第一电子设备基于所述数据传输通道传输的目标内容。Receive target content transmitted by the first electronic device based on the data transmission channel.
  9. 如权利要求8所述的方法,其中,所述接收并展示所述第一电子设备基于所述近场无线连接发送的数据流转通知,包括:The method of claim 8, wherein the receiving and displaying the data flow notification sent by the first electronic device based on the near-field wireless connection includes:
    当接收到所述第一电子设备基于所述近场无线连接发送的数据流转通知时,根据所述数据流转通知获取所述第一电子设备的标识信息和所述目标内容的缩略图;When receiving a data transfer notification sent by the first electronic device based on the near-field wireless connection, obtain the identification information of the first electronic device and the thumbnail of the target content according to the data transfer notification;
    基于所述缩略图和所述标识信息,在通知栏展示所述数据流转通知。Based on the thumbnail and the identification information, the data transfer notification is displayed in the notification bar.
  10. 如权利要求8所述的方法,其中,所述数据传输通道为点对点P2P通道;所述第一电子设备包括第一协同模块,所述第二电子设备包括第二协同模块;The method of claim 8, wherein the data transmission channel is a point-to-point P2P channel; the first electronic device includes a first collaboration module, and the second electronic device includes a second collaboration module;
    所述若接收到基于所述数据流转通知触发的数据保存指令,向所述第一电子设备发起内容协同请求,以与所述第一电子设备建立数据传输通道,包括:If a data saving instruction triggered based on the data transfer notification is received, initiating a content collaboration request to the first electronic device to establish a data transmission channel with the first electronic device, including:
    若接收到基于所述数据流转通知触发的数据保存指令,通过所述第二协同模块向所述第一电子设备发起内容协同请求;If a data saving instruction triggered based on the data transfer notification is received, initiate a content collaboration request to the first electronic device through the second collaboration module;
    响应于所述第一协同模块返回的P2P通道的回调信息,建立所述第一协同模块与所述第二协同模块之间的P2P通道。In response to the callback information of the P2P channel returned by the first collaboration module, a P2P channel between the first collaboration module and the second collaboration module is established.
  11. 如权利要求10所述的方法,其中,所述接收所述第一电子设备基于所述数据传输通道传输的目标内容,包括: The method of claim 10, wherein receiving the target content transmitted by the first electronic device based on the data transmission channel includes:
    通过所述第二协同模块对文件服务进行初始化处理;Initialize the file service through the second collaboration module;
    通过初始化处理后的所述文件服务调用文件传输相关接口,接收所述第一协同模块基于所述数据传输通道传输的目标内容。The file service after the initialization process calls the file transmission related interface to receive the target content transmitted by the first collaboration module based on the data transmission channel.
  12. 如权利要求8至11任一项所述的方法,其中,所述若接收到基于所述数据流转通知触发的数据保存指令,则向所述第一电子设备发起内容协同请求,以与所述第一电子设备建立数据传输通道之后,所述方法还包括:The method according to any one of claims 8 to 11, wherein if the data saving instruction triggered based on the data transfer notification is received, a content collaboration request is initiated to the first electronic device to cooperate with the first electronic device. After the first electronic device establishes the data transmission channel, the method further includes:
    根据所述目标内容的传输进度,在所述数据流转通知的窗口中显示数据保存进度。According to the transmission progress of the target content, the data saving progress is displayed in the window of the data transfer notification.
  13. 如权利要求12所述的方法,其中,所述目标内容为影像数据;所述根据所述目标内容的传输进度,在所述数据流转通知的窗口中显示数据保存进度之后,所述方法还包括:The method of claim 12, wherein the target content is image data; after displaying the data saving progress in the window of the data transfer notification according to the transmission progress of the target content, the method further includes :
    当所述影像数据保存完成后,显示数据保存完成的弹窗通知;When the image data is saved, a pop-up window notification that the data is saved is displayed;
    当检测到基于所述弹窗通知触发的查看指令时,在显示界面上展示所述影像数据。When a viewing instruction triggered based on the pop-up notification is detected, the image data is displayed on the display interface.
  14. 一种内容协同装置,其中,应用于第一电子设备,所述装置包括:A content collaboration device, applied to a first electronic device, the device includes:
    第一连接单元,用于与第二电子设备建立近场无线连接;The first connection unit is used to establish a near-field wireless connection with the second electronic device;
    第一通知单元,用于当检测到产生新的目标内容时,基于所述目标内容生成数据流转通知,并基于所述近场无线连接将所述数据流转通知发送至所述第二电子设备;A first notification unit, configured to generate a data transfer notification based on the target content when new target content is detected, and send the data transfer notification to the second electronic device based on the near-field wireless connection;
    所述第一连接单元还用于:响应于所述第二电子设备发送的内容协同请求,建立所述第一电子设备与所述第二电子设备之间的数据传输通道;The first connection unit is also configured to: respond to the content collaboration request sent by the second electronic device, establish a data transmission channel between the first electronic device and the second electronic device;
    第一传输单元,用于通过所述数据传输通道将所述目标内容发送至所述第二电子设备。A first transmission unit configured to send the target content to the second electronic device through the data transmission channel.
  15. 如权利要求14所述的装置,其中,所述第一电子设备包括第一协同模块,所述第二电子设备包括第二协同模块;所述第一连接单元还用于:The device of claim 14, wherein the first electronic device includes a first collaboration module, the second electronic device includes a second collaboration module; the first connection unit is also used for:
    响应于所述第二电子设备发送的内容协同请求,建立所述第一协同模块与所述第二协同模块之间的数据传输通道。In response to the content collaboration request sent by the second electronic device, a data transmission channel between the first collaboration module and the second collaboration module is established.
  16. 一种内容协同装置,其中,应用于第二电子设备,所述装置包括:A content collaboration device, applied to a second electronic device, the device includes:
    第二连接单元,用于与第一电子设备建立近场无线连接;a second connection unit, used to establish a near-field wireless connection with the first electronic device;
    第二通知单元,用于接收并展示所述第一电子设备基于所述近场无线连接发送的数据流转通知;a second notification unit configured to receive and display the data flow notification sent by the first electronic device based on the near-field wireless connection;
    所述第二连接单元还用于:若接收到基于所述数据流转通知触发的数据保存指令,则 向所述第一电子设备发起内容协同请求,以与所述第一电子设备建立数据传输通道;The second connection unit is also configured to: if a data saving instruction triggered based on the data transfer notification is received, Initiate a content collaboration request to the first electronic device to establish a data transmission channel with the first electronic device;
    第二传输单元,用于接收所述第一电子设备基于所述数据传输通道传输的目标内容。The second transmission unit is configured to receive the target content transmitted by the first electronic device based on the data transmission channel.
  17. 如权利要求16所述的装置,其中,所述第二通知单元还用于:The device of claim 16, wherein the second notification unit is also used for:
    当接收到所述第一电子设备基于所述近场无线连接发送的数据流转通知时,根据所述数据流转通知获取所述第一电子设备的标识信息和所述目标内容的缩略图;When receiving a data transfer notification sent by the first electronic device based on the near-field wireless connection, obtain the identification information of the first electronic device and the thumbnail of the target content according to the data transfer notification;
    基于所述缩略图和所述标识信息,在通知栏展示所述数据流转通知。Based on the thumbnail and the identification information, the data transfer notification is displayed in the notification bar.
  18. 一种计算机可读存储介质,其上存储有计算机程序,其中,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1至7任一项所述的内容协同方法,或者执行如权利要求8至13任一项所述的内容协同方法。A computer-readable storage medium with a computer program stored thereon, wherein when the computer program is run on a computer, the computer is caused to execute the content collaboration method as described in any one of claims 1 to 7, or Execute the content collaboration method according to any one of claims 8 to 13.
  19. 一种电子设备,包括处理器和存储器,所述存储器存储有计算机程序,其中,所述处理器通过调用所述计算机程序,用于执行如权利要求1至7任一项所述的内容协同方法,或者执行如权利要求8至13任一项所述的内容协同方法。An electronic device, including a processor and a memory, the memory storing a computer program, wherein the processor is used to execute the content collaboration method according to any one of claims 1 to 7 by calling the computer program , or perform the content collaboration method as described in any one of claims 8 to 13.
  20. 一种内容协同系统,其中,所述系统包括第一电子设备和第二电子设备;A content collaboration system, wherein the system includes a first electronic device and a second electronic device;
    所述第一电子设备与所述第二电子设备建立近场无线连接;The first electronic device establishes a near-field wireless connection with the second electronic device;
    所述第一电子设备检测到产生新的目标内容时,基于所述目标内容生成数据流转通知,并基于所述近场无线连接将所述数据流转通知发送至所述第二电子设备;When the first electronic device detects that new target content is generated, it generates a data transfer notification based on the target content, and sends the data transfer notification to the second electronic device based on the near-field wireless connection;
    所述第二电子设备接收并展示所述数据流转通知,若接收到基于所述数据流转通知触发的数据保存指令,则向所述第一电子设备发起内容协同请求,以与所述第一电子设备建立数据传输通道;The second electronic device receives and displays the data transfer notification. If it receives a data saving instruction triggered based on the data transfer notification, it initiates a content collaboration request to the first electronic device to cooperate with the first electronic device. The device establishes a data transmission channel;
    所述第一电子设备通过所述数据传输通道将所述目标内容发送至所述第二电子设备。 The first electronic device sends the target content to the second electronic device through the data transmission channel.
PCT/CN2023/106433 2022-09-08 2023-07-07 Content collaboration method, apparatus and system, storage medium, and electronic device WO2024051336A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211097917.9 2022-09-08
CN202211097917.9A CN117676481A (en) 2022-09-08 2022-09-08 Content collaboration method, device, system, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
WO2024051336A1 true WO2024051336A1 (en) 2024-03-14

Family

ID=90079637

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/106433 WO2024051336A1 (en) 2022-09-08 2023-07-07 Content collaboration method, apparatus and system, storage medium, and electronic device

Country Status (2)

Country Link
CN (1) CN117676481A (en)
WO (1) WO2024051336A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019128179A1 (en) * 2017-12-27 2019-07-04 北京安云世纪科技有限公司 Method and apparatus for data transmission between mobile terminals, and mobile terminal
CN111316598A (en) * 2018-07-17 2020-06-19 华为技术有限公司 Multi-screen interaction method and equipment
CN113286191A (en) * 2021-05-20 2021-08-20 Oppo广东移动通信有限公司 Content collaboration method, device, electronic equipment and storage medium
CN114035973A (en) * 2021-10-08 2022-02-11 阿波罗智联(北京)科技有限公司 Screen projection method and device of application program, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019128179A1 (en) * 2017-12-27 2019-07-04 北京安云世纪科技有限公司 Method and apparatus for data transmission between mobile terminals, and mobile terminal
CN111316598A (en) * 2018-07-17 2020-06-19 华为技术有限公司 Multi-screen interaction method and equipment
CN113286191A (en) * 2021-05-20 2021-08-20 Oppo广东移动通信有限公司 Content collaboration method, device, electronic equipment and storage medium
CN114035973A (en) * 2021-10-08 2022-02-11 阿波罗智联(北京)科技有限公司 Screen projection method and device of application program, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN117676481A (en) 2024-03-08

Similar Documents

Publication Publication Date Title
US11243653B2 (en) Method for display control and mobile terminal
JP5743174B2 (en) Thin client server system and USB device driver management method
WO2021027610A1 (en) Communication protocol switching method, apparatus and system
EP3547715B1 (en) Method and apparatus for reducing continuous-wakeup delay of bluetooth loudspeaker, and bluetooth loudspeaker
KR101901720B1 (en) Method for interworing with dummy device and an electronic device thereof
US20220318038A1 (en) Interface sharing method and electronic device
CN111913628A (en) Sharing method and device and electronic equipment
WO2021109925A1 (en) Method for sharing application, electronic apparatus, and computer readable storage medium
WO2022105425A1 (en) Display method, electronic device, and readable storage medium
WO2023010940A1 (en) Split-screen display method and apparatus
WO2021104230A1 (en) Synchronization method and electronic device
WO2021057290A1 (en) Information control method and electronic device
WO2021121180A1 (en) Information processing method and electronic device
WO2020192322A1 (en) Display method and terminal device
WO2023030099A1 (en) Cross-device interaction method and apparatus, and screen projection system and terminal
WO2021031717A1 (en) Screen capturing method and terminal device
WO2020259669A1 (en) View display method and electronic device
CN113766305A (en) Display device and mirror image screen projection audio output control method
CN109672845B (en) Video call method and device and mobile terminal
WO2020173281A1 (en) Interface display method and terminal device
CN111367444A (en) Application function execution method and device, electronic equipment and storage medium
US20240095335A1 (en) Processing method, device, and storage medium
CN112351507B (en) Interaction control method, interaction control device, electronic equipment and readable storage medium
WO2021190353A1 (en) Interaction method and display device
WO2021129700A1 (en) Picture processing method and electronic device