WO2023131051A1 - 一种分享内容的方法及电子设备 - Google Patents

一种分享内容的方法及电子设备 Download PDF

Info

Publication number
WO2023131051A1
WO2023131051A1 PCT/CN2022/143552 CN2022143552W WO2023131051A1 WO 2023131051 A1 WO2023131051 A1 WO 2023131051A1 CN 2022143552 W CN2022143552 W CN 2022143552W WO 2023131051 A1 WO2023131051 A1 WO 2023131051A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
information
display screen
sharing
content
Prior art date
Application number
PCT/CN2022/143552
Other languages
English (en)
French (fr)
Inventor
刘成
周星辰
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023131051A1 publication Critical patent/WO2023131051A1/zh

Links

Images

Classifications

    • 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
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4122Peripherals receiving signals from specially adapted client devices additional display device, e.g. video projector
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • H04N21/41407Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • H04N21/41422Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance located in transportation means, e.g. personal vehicle
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network
    • H04N21/43637Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network involving a wireless protocol, e.g. Bluetooth, RF or wireless LAN [IEEE 802.11]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
    • H04N21/8586Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/48Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for in-vehicle communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Definitions

  • the present application relates to the technical field of electronic equipment, in particular to a method for sharing content and electronic equipment.
  • the cockpit refers to the interior space of vehicles such as automobiles, airplanes, and ships.
  • the smart cockpit refers to the cockpit equipped with intelligent and networked airborne products, so as to have intelligent interactive functions. At present, the smart cockpit has become an indispensable part of smart cars and is a manifestation of high intelligence.
  • the mobile device can only share the audio service to the smart cockpit, so the service content that the mobile device can share is limited, and it is difficult to meet the sharing needs of various types of services.
  • the display screen of the smart cockpit needs to be adapted to the mobile device, and the service provider in the mobile device also needs to be adapted.
  • the mobile device also needs to install special software to control and implement the mobile device and the smart cockpit.
  • the present application provides a content sharing method and an electronic device, so as to realize simple and rapid content sharing between different electronic devices, thereby improving sharing efficiency and user experience.
  • the embodiment of the present application provides a method for sharing content, which is applied to a first electronic device, wherein the first electronic device includes a first application, and the method includes: the first electronic device responds to receiving The first operation is to obtain the first sharing information; wherein, the first operation is used to instruct to share the target content in the first application to at least one display screen of the second electronic device, and the first sharing information is used To indicate the first application and the target content; the first electronic device sends the first sharing information and target display information to the second electronic device; wherein the target display information is used to indicate The at least one display screen.
  • the first electronic device when the first electronic device shares the target content in the first application to the second electronic device, it may send sharing information indicating the first application and the target content to the second electronic device, so that the second electronic device
  • the device can acquire and display the target content in the first application by itself according to the shared information. Based on this, the first electronic device does not need to make any modification to the first application, and can quickly share the target content of the first application to the second electronic device without additional control software. Therefore, the method can realize simple and rapid content sharing between different electronic devices, thereby improving sharing efficiency and user experience.
  • obtaining the first sharing information by the first electronic device includes: obtaining the second sharing information by the first electronic device; wherein the second sharing information is used to indicate that the first application The generated sharing link of the target content; the first electronic device determines the first sharing information according to the second sharing information.
  • the sharing link generated by the current application generally only indicates brief information about the content to be shared, and can be used to indirectly open the application in other applications and display the content in the application, but cannot directly call the application to display the content, and cannot completely restore the display shared content.
  • the first electronic device can analyze the sharing link to obtain the real sharing address and sharing parameters of the target content, so as to obtain the first sharing information, so that according to the A shared information may directly call the first application to display the target content. Therefore, the second electronic device that accepts sharing can directly call the first application to display the target content according to the first sharing information, and can completely restore and display the content shared by the first electronic device, thereby realizing the transfer of the shared content from the first electronic device to the second.
  • the seamless flow of electronic devices improves the efficiency and experience of sharing content.
  • the first electronic device determining the first shared information according to the second shared information includes: performing character string matching on the second shared information by the first electronic device, Obtain content indication information and first address information of the target content; wherein, the content indication information is used to indicate the target content, and the first address information is used to determine an address for obtaining the target content; the second An electronic device determines the first sharing information according to the content indication information and the first address information.
  • the address of the target content can be determined according to the first address information, and the detailed content of the target content can be determined according to the content indication information, therefore, the target content can be obtained according to the first address information and the content indication information.
  • the first electronic device determines the first shared information according to the address information and content indication information and sends it to the second electronic device, it can ensure that the second electronic device can obtain the target content according to the first shared information, so as to display the target content, In order to achieve the sharing of the target content.
  • the first address information is a uniform resource locator; the first electronic device determines the first shared information according to the content indication information and the first address information, including: The first electronic device uses the content indication information and the first address information as the first shared information; or, the first electronic device redirects the first address information to obtain a second address information; wherein, the second address information is used to indicate an address for obtaining the target content; the first electronic device uses the content indication information and the second address information as the first sharing information.
  • the real source address that can obtain the target content that is, the second address information
  • the address information acquires the target content, so that the target content can be acquired and displayed more quickly, and the speed and efficiency of content sharing can be accelerated.
  • the method before the first electronic device acquires the first shared information in response to the received first operation, the method further includes: the first electronic device receives the After receiving the first instruction information of the device, the first operation is received; wherein, the first instruction information is used to indicate multiple display screens of the second electronic device.
  • the first electronic device can determine the multiple display screens of the second electronic device, and then can further select the display screen to share the target content among the multiple display screens of the second electronic device, so as to carry out targeted The sharing of target content can improve the flexibility of content sharing.
  • the first operation includes a second operation and a third operation, where the second operation is used to instruct to share the target content, and the third operation is used to share the target content among the multiple Selecting the at least one display screen in the display screen;
  • the first electronic device receiving the first operation includes: the first electronic device receiving the second operation; the first electronic device responding to the first operation The second operation is to display second indication information; wherein, the second indication information is used to indicate the plurality of display screens; and the first electronic device receives the third operation.
  • the first electronic device determines to share the target content, it displays indication information for indicating the multiple display screens of the second electronic device, so that the user can select the target content to be shared among the multiple display screens of the second electronic device display screen of the second electronic device, and then share the target content to the specific display screen of the second electronic device, thereby improving the flexibility and user experience of content sharing.
  • the first indication information is also used to indicate the states of the plurality of display screens, and the states include unlocked or unlocked; when the first electronic device responds to the second Operation, before displaying the second indication information, the method further includes: the first electronic device determines that the states of the plurality of display screens are all unlocked according to the first indication information.
  • the user when the display screen of the second electronic device is in an unlocked state, the user can directly use the display screen. Therefore, when the first electronic device shares the target content with the second electronic device, by determining that the display screen of the second electronic device is in an unlocked state, it can indicate to the user the display screen of the second electronic device that can be used, so as to select The available displays share content and enhance the user experience.
  • the method before the first electronic device acquires the first shared information in response to the received first operation, the method further includes: the first electronic device invokes the first application , displaying the target content; after the first electronic device sends the first sharing information and target display information to the second electronic device, the method further includes: the first electronic device responds to receiving To the fourth operation, update the target content.
  • the second electronic device can obtain and display the target content of the first application according to the first sharing information, without affecting the first electronic device
  • the subsequent processing on the side of the first electronic device will not be affected by the subsequent processing on the side of the first electronic device. Therefore, after the first electronic device sends the first shared information to the second electronic device, it can continue to execute the subsequent processing of the first electronic device itself. The process improves the processing efficiency and user experience of the first electronic device.
  • the embodiment of the present application provides a method for sharing content, which is applied to a second electronic device, wherein the second electronic device includes a first application, and the method includes: the second electronic device receives the content from the first application.
  • the first shared information and target display screen information of the electronic device wherein, the first shared information is used to indicate the first application and the target content in the first application, and the target display screen information is used to indicate the at least one display screen of the second electronic device;
  • the second electronic device determines the first application and acquires the target content according to the first shared information, and determines the target content according to the target display screen information
  • the at least one display screen; the second electronic device respectively displays the target content on the at least one display screen by invoking the first application.
  • the second electronic device after the second electronic device receives the sharing information from the first electronic device for indicating the first application and the target content, it can acquire and display the target content in the first application by itself according to the sharing information, and can The effect of the first electronic device sharing the target content to the second electronic device is realized. Moreover, the second electronic device can receive and display the shared content without any modification to the first application and without additional control software. Therefore, the method can realize simple and rapid content sharing between different electronic devices, thereby improving sharing efficiency and user experience.
  • the first sharing information includes content indication information and first address information; or, the first sharing information includes the content indication information and second address information; wherein, the content indication The information is used to indicate the target content, the first address information is used to determine an address for obtaining the target content, and the second address information is used for indicating an address for obtaining the target content.
  • the address of the target content can be determined according to the address information, and the detailed content of the target content can be determined according to the content indication information. Therefore, the target content can be obtained according to the address information and the content indication information. Then, the second electronic device can obtain the target content according to the first sharing information, thereby displaying the target content, and further realizing sharing of the target content.
  • the method before the second electronic device receives the first sharing information and target display information from the first electronic device, the method further includes: the second electronic device sending The electronic device sends first indication information; wherein, the first indication information is used to indicate multiple display screens of the second electronic device, and the at least one display screen is included in the multiple display screens.
  • the second electronic device indicates the information of its multiple display screens to the first electronic device, so that the first electronic device can select a display screen to share the target content among the multiple display screens of the second electronic device , so as to share the target content in a targeted manner, which can improve the flexibility of content sharing.
  • the first indication information is further used to indicate states of the multiple display screens, the states include unlocked or unlocked; the states of the multiple display screens are all unlocked.
  • the second electronic device indicates multiple display screens in the unlocked state to the first electronic device, enabling the first electronic device to indicate to the user the available display screens of the second electronic device, thereby selecting an available display screen Sharing content improves user experience.
  • the method further includes: the second electronic device In response to the received fifth operation, the device updates the target content displayed on the target display screen; wherein the target display screen is any one of the at least one display screen.
  • the second electronic device can obtain and display the target content of the first application according to the first sharing information, without affecting the first electronic device
  • the subsequent processing on the side of the first electronic device will not be affected by the subsequent processing on the side of the first electronic device. Therefore, after the second electronic device displays the target content of the first application according to the first shared information, it can independently continue the subsequent processing. , improving the processing efficiency and use experience of the second electronic device.
  • the embodiment of the present application provides a method for sharing content, which is applied to a system composed of a first electronic device and a second electronic device, wherein the first electronic device and the second electronic device include a first application , the method includes: the first electronic device acquires first sharing information in response to the received first operation; wherein the first operation is used to instruct to share the target content in the first application to the At least one display screen of a second electronic device, the first sharing information is used to indicate the first application and the target content; the first electronic device sends the first sharing information to the second electronic device and target display screen information; wherein, the target display screen information is used to indicate the at least one display screen; the second electronic device receives the first shared information and the target display screen information; the second electronic device The device determines the first application and acquires the target content according to the first sharing information, and determines the at least one display screen according to the target display screen information; the second electronic device calls the A first application, respectively displaying the target content on the at least one display screen.
  • obtaining the first sharing information by the first electronic device includes: obtaining the second sharing information by the first electronic device; wherein the second sharing information is used to indicate that the first application The generated sharing link of the target content; the first electronic device determines the first sharing information according to the second sharing information.
  • the first electronic device determining the first shared information according to the second shared information includes: performing character string matching on the second shared information by the first electronic device, Obtain content indication information and first address information of the target content; wherein, the content indication information is used to indicate the target content, and the first address information is used to determine an address for obtaining the target content; the second An electronic device determines the first sharing information according to the content indication information and the first address information.
  • the first address information is a uniform resource locator; the first electronic device determines the first shared information according to the content indication information and the first address information, including: The first electronic device uses the content indication information and the first address information as the first shared information; or, the first electronic device redirects the first address information to obtain a second address information; wherein, the second address information is used to indicate an address for obtaining the target content; the first electronic device uses the content indication information and the second address information as the first sharing information.
  • the method before the first electronic device acquires the first shared information in response to the received first operation, the method further includes: the second electronic device sending the first electronic device Sending first indication information; wherein, the first indication information is used to indicate multiple display screens of the second electronic device; after receiving the first indication information, the first electronic device receives the first operation .
  • the first operation includes a second operation and a third operation, where the second operation is used to instruct to share the target content, and the third operation is used to share the target content among the multiple Selecting the at least one display screen in the display screen;
  • the first electronic device receiving the first operation includes: the first electronic device receiving the second operation; the first electronic device responding to the first operation The second operation is to display second indication information; wherein, the second indication information is used to indicate the plurality of display screens; and the first electronic device receives the third operation.
  • the first indication information is also used to indicate the states of the plurality of display screens, and the states include unlocked or unlocked; when the first electronic device responds to the second Operation, before displaying the second indication information, the method further includes: the first electronic device determines that the states of the plurality of display screens are all unlocked according to the first indication information.
  • the method before the first electronic device acquires the first shared information in response to the received first operation, the method further includes: the first electronic device invokes the first application , displaying the target content; after the first electronic device sends the first sharing information and target display information to the second electronic device, the method further includes: the first electronic device responds to receiving To the fourth operation, update the target content.
  • the method further includes: the second electronic device In response to the received fifth operation, the device updates the target content displayed on the target display screen; wherein the target display screen is any one of the at least one display screen.
  • an embodiment of the present application provides an electronic device, wherein the electronic device includes a first application, and the electronic device includes: a processing unit configured to acquire first shared information in response to a received first operation ; Wherein, the first operation is used to instruct to share the target content in the first application to at least one display screen of the second electronic device, and the first sharing information is used to indicate that the first application and the Target content; a transceiving unit, configured to send the first sharing information and target display screen information to the second electronic device; wherein, the target display screen information is used to indicate the at least one display screen.
  • the obtaining of the first sharing information by the processing unit includes: obtaining second sharing information; wherein the second sharing information is used to indicate the sharing of the target content generated by the first application Linking: determining the first shared information according to the second shared information.
  • the processing unit determines the first shared information according to the second shared information, including: performing string matching on the second shared information to obtain a content indication of the target content information and first address information; wherein, the content indication information is used to indicate the target content, and the first address information is used to determine the address for obtaining the target content; according to the content indication information and the first The address information is used to determine the first shared information.
  • the first address information is a Uniform Resource Locator; the processing unit determines the first shared information according to the content indication information and the first address information, including: The content indication information and the first address information are used as the first shared information; or, the first address information is redirected to obtain second address information; wherein, the second address information is used to instruct acquisition of The address of the target content; using the content indication information and the second address information as the first sharing information.
  • the method before the processing unit acquires the first shared information in response to the received first operation, the method further includes: the transceiver unit receives the first shared information from the second electronic device After the indication information, the first operation is received; wherein, the first indication information is used to indicate multiple display screens of the second electronic device.
  • the first operation includes a second operation and a third operation, where the second operation is used to instruct to share the target content, and the third operation is used to share the target content among the multiple Selecting the at least one display screen from the display screen;
  • receiving the first operation by the transceiver unit includes: receiving the second operation; in response to the second operation, displaying second indication information through the processing unit; Wherein, the second indication information is used to indicate the plurality of display screens; receiving the third operation.
  • the first indication information is also used to indicate the states of the plurality of display screens, and the states include unlocked or unlocked; when the transceiver unit responds to the second operation, Before the processing unit displays the second indication information, the method further includes: the processing unit determines that the states of the plurality of display screens are all unlocked according to the first indication information.
  • the method before the processing unit acquires the first shared information in response to the received first operation, the method further includes: the processing unit calls the first application to display the target content; after the transceiving unit sends the first sharing information and target display information to the second electronic device, the method further includes: the processing unit responds to the received fourth operation, updating the Describe the target content.
  • an embodiment of the present application provides an electronic device, wherein the electronic device includes a first application, and the electronic device includes: a transceiver unit configured to receive the first shared information and target display from the first electronic device screen information; wherein, the first sharing information is used to indicate the first application and the target content in the first application, and the target display screen information is used to indicate at least one display screen of the second electronic device a processing unit, configured to determine the first application and acquire the target content according to the first sharing information, and determine the at least one display screen according to the target display screen information; by calling the first application An application, respectively displaying the target content on the at least one display screen.
  • the first sharing information includes content indication information and first address information; or, the first sharing information includes the content indication information and second address information; wherein, the content indication The information is used to indicate the target content, the first address information is used to determine an address for obtaining the target content, and the second address information is used for indicating an address for obtaining the target content.
  • the method before the second electronic device receives the first sharing information and target display information from the first electronic device, the method further includes: the second electronic device sending The electronic device sends first indication information; wherein, the first indication information is used to indicate multiple display screens of the second electronic device, and the at least one display screen is included in the multiple display screens.
  • the first indication information is further used to indicate states of the multiple display screens, the states include unlocked or unlocked; the states of the multiple display screens are all unlocked.
  • the method further includes: the second electronic device In response to the received fifth operation, the device updates the target content displayed on the target display screen; wherein the target display screen is any one of the at least one display screen.
  • an embodiment of the present application provides an electronic device, the electronic device includes a display screen, a memory, and one or more processors; wherein, the memory is used to store computer program code, and the computer program code includes a computer Instructions; when the computer instructions are executed by the one or more processors, the electronic device is made to execute the method described in the above-mentioned first aspect or any possible design of the first aspect, or execute the above-mentioned second aspect Or any possible design of the second aspect of the described method.
  • the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program runs on a computer, the computer executes the above-mentioned first aspect or the first The method described in any possible design of the second aspect, or execute the method described in the second aspect or any possible design of the second aspect.
  • the present application provides a computer program product, the computer program product includes a computer program or an instruction, and when the computer program or instruction is run on a computer, the computer executes the above first aspect or the first aspect
  • the computer program product includes a computer program or an instruction
  • the computer executes the above first aspect or the first aspect
  • FIG. 1 is a schematic diagram of a hardware architecture of an electronic device provided in an embodiment of the present application
  • FIG. 2 is a schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a multi-screen sharing service of a first electronic device provided in an embodiment of the present application
  • FIG. 4 is a schematic structural diagram of a multi-screen sharing service of a second electronic device provided in an embodiment of the present application
  • Fig. 5 is a schematic diagram of a sharing method provided by the embodiment of the present application.
  • FIG. 6 is a schematic diagram of a sharing link provided by the embodiment of the present application.
  • FIG. 7 is a schematic flowchart of a method for analyzing and obtaining detailed configuration information of application services provided by an embodiment of the present application
  • FIG. 8 is a schematic diagram of a display screen in a vehicle cockpit provided by an embodiment of the present application.
  • Fig. 9a is a schematic diagram of a control interface for sharing services to a vehicle cockpit provided by an embodiment of the present application.
  • Fig. 9b is a schematic diagram of another sharing service to the control interface of the vehicle cockpit provided by the embodiment of the present application.
  • Fig. 10a is a schematic diagram of a prompt interface of a sharing service provided by an embodiment of the present application.
  • Fig. 10b is a schematic diagram of an effect interface of another sharing service provided by the embodiment of the present application.
  • FIG. 11 is a schematic diagram of a possible execution flow of the method for sharing content provided by the embodiment of the present application.
  • FIG. 12 is a schematic diagram of a control interface for sharing services to a vehicle cockpit provided by an embodiment of the present application.
  • FIG. 13 is a schematic diagram of a prompt interface of a sharing service provided by an embodiment of the present application.
  • FIG. 14 is a schematic diagram of another sharing service effect interface provided by the embodiment of the present application.
  • FIG. 15 is a schematic diagram of a method for sharing content provided by an embodiment of the present application.
  • FIG. 16 is a schematic diagram of a method for sharing content provided by an embodiment of the present application.
  • FIG. 17 is a schematic diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 18 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device may be a device with a wireless connection function.
  • the electronic device may be a device with one or more display screens.
  • the electronic device may be a portable device, such as a mobile phone, a tablet computer, a wearable device with a wireless communication function (for example, a watch, a bracelet, a helmet, a headset, etc.), a vehicle terminal device, an augmented reality (augmented reality , AR)/virtual reality (virtual reality, VR) equipment, notebook computer, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook, personal digital assistant (personal digital assistant, PDA), etc.
  • Electronic devices can also be smart home devices (such as smart TVs, smart speakers, etc.), smart cars, smart robots, workshop equipment, wireless terminals in self driving (Self Driving), wireless devices in remote surgery (Remote Medical Surgery), etc. Terminals, wireless terminals in Smart Grid, wireless terminals in Transportation Safety, wireless terminals in Smart City, or wireless terminals in Smart Home, flight equipment ( For example, intelligent robots, hot air balloons, drones, airplanes), etc.
  • the electronic device may also be a portable terminal device that further includes other functions such as personal digital assistant and/or music player functions.
  • portable terminal devices include, but are not limited to Or portable terminal equipment with other operating systems.
  • the above-mentioned portable terminal device may also be other portable terminal devices, such as a laptop computer (Laptop) with a touch-sensitive surface (such as a touch panel).
  • the above-mentioned electronic device may not be a portable terminal device, but a desktop computer with a touch-sensitive surface (such as a touch panel).
  • Point of interest which originally refers to point data in Internet electronic maps, basically includes four attributes: name, address, coordinates, and category. Currently, it also generally refers to points that can be abstracted into points for management, analysis, and calculation. information about the object. As an information data structure, POI can package various information of an object and provide it to the user, so that the user can quickly find and use the object according to the POI.
  • Jump protocol address (schema), which is a jump protocol within a page, through which various pages in an application (APP) can be jumped very conveniently.
  • the scheme protocol can also be customized to instruct the application to jump to a specified page, or to customize the jump page through the notification bar message.
  • String matching also known as the positioning operation of the string, refers to matching the character string to be detected with a string of a given pattern (also known as a pattern string) to determine whether there is a given character string in the character string to be detected.
  • a substring (substring) of a given pattern and locate the substring when it is determined that there is a substring of a given pattern in the character string to be detected.
  • Uniform resource locator (uniform resource locator, URL), which is a representation method used to specify the location of information on the World Wide Web service program of the Internet.
  • a URL locates a resource by providing an abstract identifier of the resource location, and generally consists of a string of characters, which can be letters, numbers, and special symbols. After the system locates a resource, it may perform various operations on it. These operations can be abstracted as access, update, replacement, attribute discovery, etc. In the process of performing these operations, the resource needs to be located according to the URL.
  • Redirection also known as URL forwarding
  • HTTP hypertext transfer protocol
  • Serialization refers to the process of converting the state, content and other information of an object into a form that can be stored, transmitted or accessed.
  • the object can be shared between different devices, applications, programs, and services.
  • An object's information can be written to temporary or permanent storage during serialization, and the object can be recreated after serialization by reading or deserializing the object's information from storage.
  • Request which is a method of HTTP data request, is used to obtain a network process or network resource, and specific data under the address can be obtained through the URL address of the server.
  • the request object is used to obtain the HTTP request
  • the response object is used to provide data according to the HTTP request.
  • An HTTP request generally includes a request header and a request body.
  • the request header (request header) is a kind of HTTP header, which is the message header part of the HTTP request, and can be used to describe the HTTP response, and has nothing to do with the request body.
  • the request body is the data used to request the data.
  • An HTTP response generally includes a response header and a response body.
  • the response header (response header) is the message header part of the HTTP response, which can be used to describe the HTTP response.
  • the response body is the data provided by the server.
  • Intent is a process service used to solve the communication between various components in the application.
  • Intent is responsible for describing the action of an operation in the application, the data involved in the action, additional data, etc., so that the system can find the corresponding component according to this description, and pass the intent to the component, so that the component can complete the action of an operation in the application.
  • Intent can achieve decoupling between the caller and the callee by providing relevant information about components calling each other.
  • At least one in the embodiments of the present application refers to one or more, and “multiple” refers to two or more.
  • “And/or” describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the contextual objects are an “or” relationship.
  • At least one (item) of the following” or similar expressions refer to any combination of these items, including any combination of single item(s) or plural item(s).
  • At least one item (unit) of a, b or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, wherein a, b, c Can be single or multiple.
  • the Bluetooth sharing method or the software sharing method can be used.
  • the bluetooth sharing method is currently the most widely used mobile terminal service sharing scheme in the smart car terminal, but this method is limited to the sharing of audio streaming services such as music and listening books.
  • the specific sharing process is mainly as follows: the decoder on the mobile terminal encodes the audio stream of the current audio channel, and transmits the encoded audio stream to the vehicle terminal through Bluetooth; after the vehicle terminal receives the audio stream from the mobile terminal, it The audio stream is decoded and played.
  • the mobile terminal can share the audio service to the car terminal, but this solution is only applicable to the sharing scenario of the audio service, and is not applicable to the sharing scenario of other types of services (such as video services). Therefore, the application of this solution Scenes are limited.
  • the transmission bandwidth of the Bluetooth transmission method is small and the rate is low.
  • the mobile terminal can only establish a Bluetooth connection with the central control device on the vehicle terminal and share the service to the vehicle terminal, but cannot establish associations with multiple display screens in the cockpit of the vehicle terminal and provide targeted services. Sharing services to the display screen, therefore, the flexibility and convenience of sharing services between the mobile terminal and the vehicle terminal is poor.
  • the software sharing method relies on the joint adaptation of the car and mobile terminals.
  • the sharing process mainly includes the following four steps:
  • the mobile terminal provides a service-oriented platform for access by third-party vendors that provide application services.
  • the mobile terminal generates a virtual screen, and adds the service interface that needs to be displayed on the vehicle terminal to the virtual screen for operation.
  • the mobile terminal encodes the video stream on the virtual screen and sends it to the vehicle terminal, and the vehicle terminal decodes the video stream and displays the corresponding service interface on the display screen.
  • the vehicle terminal sends the click event back to the mobile terminal, and the mobile terminal performs corresponding processing before controlling the vehicle terminal to display.
  • the mobile terminal needs to be adapted to the car terminal and the application service provider, and corresponding software needs to be installed for control, so the sharing process is relatively complicated.
  • the mobile terminal and the car-machine terminal transmit the service content based on the video stream, and the stability is low.
  • the software and application services of the mobile terminal are still running on the mobile terminal device, which will occupy the bandwidth of the mobile terminal device and increase the power consumption of the mobile terminal device.
  • the mobile terminal transmits shared content to the car terminal, its software needs to be run in the foreground, which will also affect the use of the mobile terminal itself.
  • an embodiment of the present application provides a method for sharing content and an electronic device, and the solution can be applied to a system composed of a first electronic device and a second electronic device. Specifically, it can be applied to the scene where the first electronic device shares content with the second electronic device, and can realize the effect of simply and quickly sharing the content of the first electronic device to any display screen of the second electronic device.
  • the first electronic device and the second electronic device are devices with a wireless connection function. Communication between the first electronic device and the second electronic device may be based on a wireless communication manner.
  • the first electronic device and the second electronic device may be connected to the same local area network, or may be connected to different local area networks.
  • the first electronic device and the second electronic device are connected to the same local area network, specifically, the first electronic device and the second electronic device establish a wireless connection with the same wireless access point.
  • the first electronic device and the second electronic device can access the same Wireless Fidelity (Wi-Fi) hotspot.
  • Wi-Fi Wireless Fidelity
  • the first electronic device and the second electronic device may also be connected to the same Bluetooth beacon (Beacon) through the Bluetooth protocol.
  • the first electronic device and the second electronic device may also trigger a communication connection through a near field communication (Near Field Communication, NFC) tag, and transmit encrypted information through a Bluetooth module for identity authentication. After the authentication is successful, the data transmission is carried out in a point-to-point (P2P) manner.
  • NFC Near Field Communication
  • both the first electronic device and the second electronic device have at least one display screen, and the first electronic device can share the content in any display screen of itself to one or more displays of the second electronic device screen to display.
  • the first electronic device may be a terminal device such as a mobile phone or a tablet
  • the second electronic device may be a cockpit or an electronic device installed in the cockpit.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a USB interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, and a mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and SIM card interface 195 wait.
  • a processor 110 an external memory interface 120, an internal memory 121, a USB interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, and a mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and SIM card interface 195 wait.
  • the sensor module 180 may include a gyroscope sensor, an acceleration sensor, a proximity light sensor, a fingerprint sensor, a touch sensor, a temperature sensor, a pressure sensor, a distance sensor, a magnetic sensor, an ambient light sensor, an air pressure sensor, a bone conduction sensor, and the like.
  • the electronic device 100 shown in FIG. 1 is only an example and does not constitute a limitation to the electronic device, and the electronic device may have more or fewer components than those shown in the figure, and may be combined two or more components, or may have different component configurations.
  • the various components shown in FIG. 1 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (Neural-network Processing Unit, NPU) wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors. Wherein, the controller may be the nerve center and command center of the electronic device 100 . The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
  • the execution of the method for sharing content provided by the embodiment of the present application may be completed by controlling the processor 110 or calling other components, such as calling the processing program of the embodiment of the present application stored in the internal memory 121, or calling the second part through the external memory interface 120.
  • the processing program of the embodiment of the present application stored in the third-party device is used to control the wireless communication module 160 to perform data communication with other devices, so as to improve the intelligence and convenience of the electronic device 100 and improve user experience.
  • the processor 110 may include different devices. For example, when a CPU and a GPU are integrated, the CPU and the GPU may cooperate to execute the method for sharing content provided by the embodiment of the present application. For example, in the method for sharing content, part of the algorithm is executed by the CPU, and the other part of the algorithm is executed by the GPU. Execute to get faster processing efficiency.
  • the display screen 194 is used to display images, videos and the like.
  • the display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
  • the display screen 194 can be used to display information input by the user or information provided to the user and various graphical user interfaces (graphical user interface, GUI). For example, the display screen 194 can display photos, videos, web pages, or files, etc.
  • the display screen 194 may be an integral flexible display screen, or a spliced display screen composed of two rigid screens and a flexible screen between the two rigid screens.
  • a camera 193 (either a front camera or a rear camera, or a camera that can function as both a front camera and a rear camera) is used to capture still images or video.
  • the camera 193 may include a photosensitive element such as a lens group and an image sensor, wherein the lens group includes a plurality of lenses (convex lens or concave lens), which are used to collect light signals reflected by objects to be photographed, and transmit the collected light signals to the image sensor .
  • the image sensor generates an original image of the object to be photographed according to the light signal.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 .
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the storage program area can store codes of operating systems and application programs (such as the function of sharing content, etc.).
  • the storage data area can store data created during the use of the electronic device 100 and the like.
  • the internal memory 121 may also store one or more computer programs corresponding to the content sharing algorithm provided by the embodiment of the present application.
  • the one or more computer programs are stored in the above-mentioned internal memory 121 and are configured to be executed by the one or more processors 110, the one or more computer programs include instructions, and the above-mentioned instructions can be used to execute the following embodiments various steps.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • a non-volatile memory such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the code of the content sharing algorithm provided in the embodiment of the present application may also be stored in an external memory.
  • the processor 110 may run the code of the content sharing algorithm stored in the external memory through the external memory interface 120 .
  • the sensor module 180 may include a gyro sensor, an acceleration sensor, a proximity light sensor, a fingerprint sensor, a touch sensor, and the like.
  • Touch sensor also known as "touch panel”.
  • the touch sensor can be arranged on the display screen 194, and the touch sensor and the display screen 194 form a touch display screen, also called “touch screen”.
  • the touch sensor is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194 .
  • the touch sensor can also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
  • the display screen 194 of the electronic device 100 displays a main interface, and the main interface includes icons of multiple applications (such as a camera application, a WeChat application, etc.).
  • the display screen 194 displays an interface of the camera application, such as a viewfinder interface.
  • the wireless communication function of the electronic device 100 can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves and radiate them through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device. In the embodiment of the present application, the mobile communication module 150 may also be used for information interaction with other devices.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
  • the application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100.
  • System global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • near field communication technology near field communication, NFC
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the wireless communication module 160 is configured to establish a connection with other electronic devices for data interaction.
  • the wireless communication module 160 can be used to access the access point device, send control instructions to other electronic devices, or receive data sent from other electronic devices.
  • the electronic device 100 may implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the electronic device 100 may receive an input of the key 190 and generate a key signal input related to user setting and function control of the electronic device 100 .
  • the electronic device 100 can use the motor 191 to generate a vibration prompt (such as a vibration prompt for an incoming call).
  • the indicator 192 in the electronic device 100 can be an indicator light, which can be used to indicate the charging status, the change of the battery capacity, and can also be used to indicate messages, missed calls, notifications and the like.
  • the SIM card interface 195 in the electronic device 100 is used for connecting a SIM card.
  • the SIM card can be connected and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
  • the electronic device 100 may include more or fewer components than those shown in FIG. 1 , which is not limited in this embodiment of the present application.
  • the illustrated electronic device 100 is only one example, and the electronic device 100 may have more or fewer components than shown in the figure, may combine two or more components, or may have a different configuration of components.
  • the various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
  • the Android system with layered architecture is taken as an example to illustrate the software structure of the electronic device.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. As shown in Figure 2, the software architecture can be divided into four layers, from top to bottom are the application program layer, the application program framework layer (framework, FWK), Android runtime and system library, and the Linux kernel layer.
  • the application program layer the application program framework layer (framework, FWK)
  • Android runtime and system library the Linux kernel layer.
  • the application layer is the top layer of the operating system, including native applications of the operating system, such as camera, gallery, calendar, Bluetooth, music, video, information, and so on.
  • the application program involved in the embodiment of the present application is referred to as application for short, and is a software program capable of realizing one or more specific functions.
  • multiple applications can be installed in an electronic device.
  • the application mentioned below may be a system application installed on the electronic device when it leaves the factory, or a third-party application downloaded from the Internet or obtained from other electronic devices by the user during the use of the electronic device.
  • the application program can be developed using the Java language by calling the application programming interface (Application Programming Interface, API) provided by the application program framework layer, and the developer can communicate with the operating system through the application program framework layer.
  • API Application Programming Interface
  • the bottom layer (such as the kernel layer, etc.) to interact and develop your own applications.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer can include some predefined functions.
  • Application framework layers can include window managers, content providers, view systems, telephony managers, resource managers, notification managers, and more.
  • a window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make it accessible to applications.
  • the data may include files (such as documents, videos, images, audios), texts and other information.
  • the view system includes visual controls, such as controls that display text, pictures, documents, etc.
  • the view system can be used to build applications.
  • the interface displayed in the window can be composed of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide communication functions of electronic devices.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction.
  • the Android runtime includes core libraries and a virtual machine.
  • the Android runtime is responsible for the scheduling and management of the Android system.
  • the core library of the Android system includes two parts: one part is the function function that the Java language needs to call, and the other part is the core library of the Android system.
  • the application layer and the application framework layer run in virtual machines. Taking Java as an example, the virtual machine executes the Java files of the application program layer and the application program framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • a system library can include multiple function modules. For example: surface manager, media library, 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.564, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel (Kernel) layer provides the core system services of the operating system, such as security, memory management, process management, network protocol stack and driver model, etc. are all implemented based on the kernel layer.
  • the kernel layer also acts as an abstraction layer between the hardware and software stacks. There are many drivers related to electronic devices in this layer. The main drivers are: display driver; keyboard driver as an input device; Flash driver based on memory technology devices; camera driver; audio driver; Bluetooth driver; WiFi driver, etc.
  • both the first electronic device and the second electronic device may be implemented by using the above hardware architecture and software architecture.
  • the solution provided by the embodiment of the present application may be completed by one process service of the first electronic device and one process service of the second electronic device.
  • the first electronic device may include a multi-screen sharing service to implement the functions performed by the first electronic device in the solution provided in this application.
  • the second electronic device may also include a multi-screen sharing service to realize the functions performed by the second electronic device in the solution provided in this application.
  • the multi-screen sharing service in the first electronic device may consist of four modules. As shown in Figure 3, the four modules are:
  • the POI information monitoring module is used to monitor and obtain the initial POI information of the content to be shared, and send the initial POI information to the POI information analysis module.
  • the POI information listening module may further include a system sharing listening (ListenSystemShare) module and a clipboard listening (listenClipboard) module.
  • the POI information analysis module is used to analyze the initial POI information from the POI information monitoring module, obtain detailed configuration information of the content to be shared, and send the detailed configuration information to the POI information reorganization module.
  • the POI information parsing module may further include a POI information filtering (FilterPoiInfo) module, a URL redirection (RedirectPoiUrl) module and a real URL parsing and reconstruction (ResetRealUriParams) module.
  • a POI information filtering FinterPoiInfo
  • a URL redirection RedirectPoiUrl
  • ResetRealUriParams RealUriParams
  • the display screen information obtaining module is used to obtain the display screen information of the second electronic device from the second electronic device, and send the display screen information to the POI information reorganization module.
  • the display screen information obtaining module may include a current display screen information (obtainCurrentDisplayInfos) module.
  • the POI information reorganization module is used to reorganize the information from the POI information analysis module and the display screen information acquisition module to obtain the sharing instruction information, and send the sharing instruction information to the second electronic device, so as to share the content to be shared to the second electronic device.
  • the POI information restructuring module may further include an information receiving (receiveInfo) module, a POI information reconstruction (restructPoiInfo) module, and a POI information sending (sendPoiInfo) module.
  • the multi-screen sharing service in the second electronic device may consist of two modules. As shown in Figure 4, the two modules are:
  • the display screen information providing module is used to obtain the display screen information of the second electronic device, so that the display screen information obtaining module of the first electronic device can obtain the display screen information of the second electronic device from the display screen information providing module, or the display screen information providing module and send it to the display screen information acquiring module of the first electronic device.
  • the display screen information providing module may further include a display screen information acquisition (getDisplays) module and a display screen information sending (sendDisplayInfos) module.
  • the display screen information providing module may also include a seat status information acquisition (getSeatStatus) module.
  • the POI command execution module is used to receive sharing instruction information from the POI information reorganization module of the first electronic device, and display the content shared by the first electronic device on the display screen according to the sharing instruction information.
  • the POI command execution module may further include a share service notification (notifyServiceShare) module and a share service execution (exeServiceShare) module.
  • module composition shown in FIG. 3 and FIG. 4 is only an implementation manner of the process service of the first electronic device and the second electronic device in the embodiment of the present application.
  • the composition of the process services of the first electronic device and the second electronic device may also adopt other implementation manners, such as including more or fewer modules, etc., which are not specifically limited in this embodiment of the present application.
  • the implementation process of the solution provided by the embodiment of the present application can be mainly divided into three stages, respectively, the first electronic device obtains the detailed configuration information of the content to be shared, the first electronic device obtains the display screen information of the second electronic device, and the first electronic device obtains the display information of the second electronic device.
  • the device integrates the detailed configuration information and the display screen information and then shares them with the second electronic device. Each stage is described in detail below.
  • the content shared by the first electronic device to the second electronic device may be any service content in the first electronic device, such as the application service or application content of the first electronic device, that is, the content installed in the first electronic device
  • the service or content provided by the application (APP) may be any service content in the first electronic device, such as the application service or application content of the first electronic device, that is, the content installed in the first electronic device
  • the first electronic device shares the application service to the second electronic device as an example for description.
  • the user can share the application service of the first electronic device to any display screen of the second electronic device for display by controlling the first electronic device, and the second electronic device can continue to provide the service.
  • the application to which the application service shared by the first electronic device belongs is installed in the second electronic device.
  • the sharing operation in the first electronic device may be implemented in the following two ways:
  • the first electronic device can directly display icons of other applications for the user to select the target application to be shared. .
  • the first electronic device may generate a shared application service link and send it to the target application. Wherein, the link is used to open the shared application service in the target application or other applications.
  • the display screen of the first electronic device displays a video playback interface, and when the user needs to share the current video service,
  • the sharing control icon can be selected to trigger the sharing process, and the first electronic device can display an interface as shown in (b) schematic diagram in FIG. Application B) icon control from which the user can select a target application. After the user selects the target application, the first electronic device may send a link of the current video service in the target application.
  • the user when the user chooses to share a certain application service, he can choose to copy the link of the application service, and the first electronic device responds to the user's operation of copying the link, obtains the link corresponding to the application service and caches it in the clipboard, then After opening other applications, the user can choose to paste the link to share the application service.
  • the link is used to open the shared application service in the target application or other applications.
  • the first electronic device when the user needs to share the current video, he can select the shared control icon to trigger the sharing process, then the first electronic device can display the video shown in the schematic diagram of (b) in Figure 5.
  • the interface shown includes the option control of "copy link”, and the user can select the option control of "copy link”, so that the first electronic device obtains the link of the video service generated by the video application and caches it in the clipboard.
  • the link of the application service shared by the first electronic device may be in any of the following formats: picture format, text format, image-text format, and card format.
  • the link of the video service generated by the first electronic device may be the link 1 in card format as shown in FIG. 6 .
  • the link of the video service generated by the first electronic device may be the link 2 in text format as shown in FIG. 6 .
  • the first electronic device can monitor the user's operation of controlling the first electronic device to share, and obtain the initial POI information of the application service to be shared.
  • the initial POI information may be a link of the application service generated by the application to which the application service to be shared belongs, for example, the link shown in FIG. 6 .
  • the application in the first electronic device has registered the system sharing function, the application has the right to use the system sharing method described in the above-mentioned method 1; otherwise, the application has no permission to use the system sharing method described in the above-mentioned method 1. Only the sharing method described in method 2 above can be used. If the application in the first electronic device has registered the system sharing function, the first electronic device can obtain the initial POI information of the application service shared by the application by monitoring the content shared by the system. If the application in the first electronic device is not registered for system sharing, the first electronic device can obtain the initial POI information of the application service shared from the application by monitoring the contents of the clipboard.
  • the above-mentioned process of obtaining the initial POI information of the application service may be completed by the system sharing monitoring module or the clipboard monitoring module in the POI information monitoring module shown in FIG. 3 .
  • the POI information monitoring module After obtaining the initial POI information of the application service, the POI information monitoring module sends the POI information to the POI information analysis module for analysis.
  • the first electronic device may analyze and obtain detailed configuration information of the application service according to the initial POI information. Based on the detailed configuration information, the receiving end of the application service can determine the source, type, format, service progress and other related configurations of the application service, and then can obtain the content of the application service and continue to display and run the application service. Based on this, the receiver of the application service can directly jump to the application to which the application service belongs to open and run the application service.
  • the detailed configuration information of the application service includes address indication information and sharing parameter information of the application service.
  • the address indication information is the real schema address of the application service, that is, the real jump address of the application service. Compared with POI information, you can directly jump to the corresponding interface of the application service according to the real schema address, which can avoid multiple jumps based on POI information.
  • the shared parameter information is used to indicate characteristic information of the application service, and the characteristic information may include information such as source, type, format, and content of the application service, for example.
  • the process for the first electronic device to parse and obtain the detailed configuration information of the application service may include:
  • S701 The first electronic device acquires initial POI information of an application service.
  • the first electronic device performs character string pattern matching on the initial POI information, and acquires service information and a service URL of the application service.
  • the first electronic device may match the initial POI information with a set of character strings in various patterns, so as to identify the meaning of each field in the initial POI information.
  • the matched initial POI information can be divided into two parts: service information and service URL.
  • the service information is used to indicate the specific content of the application service, such as the source, type, and simple parameter information of the application service
  • the service URL indicates the address provided by the application service that can be opened by a browser.
  • this step can be completed by the POI information filtering module shown in FIG. 3 , and the POI information filtering module can send the service URL of the matched initial POI information to the URL redirection module for processing.
  • step S703 The first electronic device determines whether to perform URL redirection on the service URL; if yes, perform step S704, otherwise, perform step S708.
  • the first electronic device After the first electronic device obtains the above service URL, if it is determined that the address indicated by the service URL is the real and original address of the application service, and URL redirection cannot be performed, then it is determined not to perform URL redirection; otherwise, it is determined to perform URL redirection. orientation.
  • S704 The first electronic device acquires the real schema address and at least one request parameter of the application service by redirecting the service URL.
  • the first electronic device may perform redirection processing on the service URL, and stop until no further redirection can be performed. Then simulate the network connection to obtain the fetch request object, then obtain the request header (header) information from the request body of the fetch request object, and obtain the source schema address of the application service from the request header information; and, obtain it from the request body of the fetch request object At least one request parameter.
  • the request parameter is an indeterminate parameter, and there are one or more request parameters used to indicate the unique identification (ID) corresponding to the service information in the at least one request parameter, and the unique identification corresponding to the service information can be used to open the service information corresponding application services.
  • the above steps S703-S704 can be completed by the URL redirection module shown in FIG.
  • the request parameters are sent to the real URL parsing and reconstruction module for processing.
  • the first electronic device determines whether the at least one request parameter is URL-encoded; if yes, execute step S706; otherwise, execute step S708.
  • step S706 The first electronic device decodes the URL-encoded request parameter in the at least one request parameter to obtain the decoded request parameter. And execute step S707.
  • the first electronic device encodes and concatenates all request parameters to obtain target request parameters. And execute step S708.
  • the first electronic device may decode the request parameters that need to be decoded. After obtaining all the decoded request parameters, perform unified encoding and splicing to obtain the target request parameters.
  • steps S706 to S707 can be completed by the real URL analysis and reconstruction module shown in FIG. 3 .
  • the real URL analysis and reconstruction module After the real URL analysis and reconstruction module obtains the target request parameters, it sends the target request parameters to the POI information reconstruction module for processing.
  • S708 The first electronic device obtains detailed configuration information of the application service.
  • the detailed configuration information includes the real schema address of the application service and shared parameter information
  • the shared parameter information may include service information and target request parameters.
  • the first electronic device can obtain the detailed configuration information that can be used to directly jump to the application service interface, and when sharing the application service with the second electronic device, the detailed configuration information of the application service can be sent to the second electronic device.
  • the electronic device enables the second electronic device to easily and quickly open and display the application service, thereby improving the efficiency and experience of sharing content.
  • the first electronic device obtains the display screen information of the second electronic device
  • the second electronic device can monitor the status of each display screen of the second electronic device in real time, and can report the information of each display screen to the first electronic device.
  • Electronic equipment After the first electronic device and the second electronic device establish a communication connection, the second electronic device can monitor the status of each display screen of the second electronic device in real time, and can report the information of each display screen to the first electronic device. Electronic equipment.
  • the display screen information providing module of the second electronic device may interact with the display screen information obtaining module of the first electronic device, so that the first electronic device obtains the display screen information of the second electronic device.
  • the display screen information providing module of the second electronic device may actively send the display screen information to the display screen information obtaining module of the first electronic device after obtaining the display screen information.
  • the display screen information providing module of the second electronic device may also send the obtained display screen information to the display screen information of the first electronic device after receiving the information reporting instruction from the display screen information obtaining module of the first electronic device. Get the module.
  • the display screen information acquisition module may send an information reporting instruction to the display screen information providing module of the second electronic device, so that the display screen of the second electronic device The information providing module reports the display screen information of the second electronic device.
  • the display screen information of the second electronic device includes information of at least one display screen of the second electronic device.
  • the information of each display screen includes at least identification information (displayID) of the display screen, and may also include status information (displaystatus) of the display screen.
  • the identification information of the display screen may be a preset identification, position information of the display screen, and the like.
  • the status information of the display is used to indicate whether the display is available or not.
  • the second electronic device may determine whether the display screen is available according to whether the display screen is unlocked, so as to determine the status information of the display screen. When the second electronic device determines that the display screen is unlocked, it may determine that the display screen is available, otherwise it may determine that the display screen is not available. Alternatively, the second electronic device may determine whether the display screen is available according to whether the display screen is on or not. When it is determined that the display screen is in a bright screen state, it may determine that the display screen is available, otherwise it may determine that the display screen is not available.
  • the second electronic device may further determine whether the display screen is available in combination with whether the display screen is unlocked and whether the display screen is on. When it is determined that the display screen is unlocked and in a bright screen state, it may be determined that the display screen is not available.
  • the first electronic device may choose to share content to the display screen; otherwise, the first electronic device may not choose to share content to the display screen.
  • the acquisition process of the display screen information above can be completed by the display screen information acquisition module shown in FIG. 4 .
  • the display screen information acquisition module acquires the display screen information, it sends the display screen information to the display screen information sending module.
  • the second electronic device when reporting the display screen information, may also simultaneously report information indicating whether there is a user who may use the display screen.
  • the display screens of the second electronic device may be installed corresponding to different seats in the cockpit of the vehicle.
  • the second electronic device may also report the seat state information corresponding to each display screen to the first electronic device.
  • the seat status information corresponding to each display screen is used to indicate whether there are passengers on the seat corresponding to the display screen. If there are passengers on the seat corresponding to the display screen, there are users who may use the display screen. Based on this, the first electronic device side can choose to share content to the display screen with passengers on the corresponding seat.
  • the second electronic device has two display screens
  • the two display screens can be respectively arranged in front of the left seat in the rear row and in front of the right seat in the rear row, as shown in the display screen 1 and display screen 2 in Figure 8 .
  • the display screen 1 and the display screen 2 can be used by passengers on the left seat of the rear row and passengers on the right seat of the rear row respectively.
  • the second electronic device When there is a passenger on the left seat of the rear row and no passenger on the right seat of the rear row, when the second electronic device reports the information on the display screen 1, it simultaneously reports the seat status information corresponding to the display screen 1. If there is a passenger on the seat, report to the display screen When the information of 2 is reported, the seat status information corresponding to display screen 2 is reported as no passenger on the seat.
  • the second electronic device can use the seat sensor in the cockpit to determine whether there is a passenger on the seat, and generate corresponding seat state information.
  • the second electronic device may report information of all display screens and seat state information corresponding to the display screens to the first electronic device.
  • the second electronic device may, after monitoring the status of each display screen and seat, select the information of the display screen corresponding to the seat with the passenger and report the information of the seat status to the first electronic device.
  • this method can be executed when the user has set "only display the information of the display screens with passengers on the seats".
  • the acquisition process of the above-mentioned seat state information can be completed by the seat state information acquisition module shown in FIG. send module.
  • the display screen information sending module can send the display screen information from the display screen information acquisition module to the first electronic device, or after integrating the display screen information from the display screen information acquisition module and the information from the seat state information acquisition module, Then send to the first electronic device.
  • the second electronic device may report the monitored display screen information and seat status information to the first electronic device in real time, and may also display a changed display after the information corresponding to any display screen changes. Report the information corresponding to the screen to the first electronic device, or report the information corresponding to the latest multiple display screens to the first electronic device, and report the monitored display screen information and seat status information at intervals or periodically to the first electronic device. Alternatively, the second electronic device may also report the current display screen information to the first electronic device after receiving the instruction from the first electronic device. screen information.
  • the first electronic device After the first electronic device acquires the display screen information and/or seat status information from the second electronic device, when the user chooses to share content, the acquired display screen information of the second electronic device can be visualized in the application foreground for The user further selects a display screen that needs to share content.
  • the first electronic device may obtain the display screen information and/or seat status information from the second electronic device through the above process, and then transfer the obtained second electronic device The display information of the device is visualized in the foreground of the application, so that the user can further select the display to share content.
  • the first electronic device when the second electronic device is applied to the vehicle cockpit, the first electronic device can add Displaying the display screen information of the second electronic device, when the user triggers the process of sharing content, the first electronic device may display the interface as shown in FIG. 9a or FIG. 9b.
  • the interface shown in FIG. 9a directly shows the option control of the seat corresponding to each display screen in the vehicle cockpit, and the user can directly select the option control of the seat to instruct to share the application service to the display corresponding to the seat. Screen.
  • the interface shown in (a) schematic diagram in FIG. 9b includes an option control of "vehicle cockpit", and the user can select the option control of "vehicle cockpit” to choose to share the application service to the display screen in the vehicle cockpit.
  • the first electronic device can further display the secondary interface shown in the schematic diagram of (b) in Figure 9b, which includes the information of each display screen in the vehicle cockpit, so that The user further chooses to share the display screen of the application service.
  • the secondary interface includes information on four display screens in the cockpit of the vehicle, namely the central control screen, the copilot screen, the rear left screen and the rear right screen.
  • the central control panel is used to control the cockpit of the vehicle, which can be used by the passengers in the driver's seat.
  • the co-pilot screen can be used by passengers in the co-pilot seat
  • the rear left screen can be used by passengers in the rear left seat
  • the rear right screen can be used by passengers in the rear right seat.
  • the user can choose to share the application service to the display screen in the vehicle cockpit by selecting the option control of the seat corresponding to the display screen.
  • the first electronic device when the first electronic device displays the information on the display screen of the second electronic device, it may display the operation options corresponding to all the display screens of the second electronic device, as shown in (b) schematic diagram in Figure 9b, for example display mode.
  • the first electronic device when some display screens are unavailable, the first electronic device may set the operation options corresponding to these display screens as non-selectable modes, and only set the operation options corresponding to available display screens as selectable modes.
  • the first electronic device when the central control screen and the passenger screen are unavailable, and the rear left screen and rear right screen are available, the first electronic device can display the rear left screen and the rear right screen. It is displayed in a different mode from the central control screen and the co-pilot screen, so that users can distinguish.
  • the first electronic device may only display operation options corresponding to available display screens of the second electronic device.
  • the first electronic device may only display the operation options of the rear row left screen and the rear row right screen shown in (b) schematic diagram in FIG. 9b on the display interface.
  • the first electronic device can obtain the detailed configuration information of the application service, and can determine which display screens of the second electronic device the application service needs to be shared with according to the user's instructions, and then the application service can be shared.
  • the service is shared to the corresponding display screen.
  • the implementation process of some methods in the first part and the second part of the content does not have strict timing restrictions, such as the process of obtaining the detailed configuration information of the application service and the process of obtaining the display screen information of the second electronic device It may be executed in parallel, or any process may be executed first, which is not specifically limited in this embodiment of the present application.
  • the first electronic device may generate corresponding target display screen information to indicate the display screen selected by the user. And reorganize the target display screen information and the detailed configuration information of the application service to be shared to obtain the sharing instruction information.
  • the first electronic device may splicing the real schema address in the detailed configuration information and the target request parameters twice to construct a real application service jump address, and encapsulate the address, target display screen information and service information and serialization to obtain the sharing instruction information.
  • the above-mentioned process of generating sharing instruction information can be completed by the POI information reconstruction module shown in FIG. 3 , and the information receiving module can be used to receive information such as target display screen information and detailed configuration information of application services from other modules, And send these information to the POI information reconstruction module.
  • the POI information reconstruction module After the POI information reconstruction module generates the sharing instruction information, it can send the sharing instruction information to the POI information sending module, and the POI information sending module sends the sharing instruction information to the second electronic device.
  • the first electronic device After the first electronic device generates the sharing instruction information, it sends the sharing instruction information to the second electronic device. After the second electronic device receives the sharing instruction information, it can display the shared information of the first electronic device on the corresponding display screen according to the sharing instruction information. Shared content, so that the application service of the first electronic device is connected to run on the display screen of the second electronic device.
  • the first electronic device may continue to execute the steps before sharing the application service. process. For example, after the first electronic device displays the interface described in FIG. 9a or FIG. 9b and determines the display screen selected by the user according to the user operation, it can continue to display the interface shown in (a) schematic diagram in FIG. 5 and continue to play the video. . At the same time, the first electronic device generates the sharing indication information and sends it to the second electronic device.
  • the second electronic device after receiving the sharing instruction information from the first electronic device, determines the target display screen information according to the sharing instruction information, and then determines that the user expects to share the application service of the first electronic device to which displays. After the second electronic device determines the target display screen indicated by the target display screen information, as an optional implementation manner, the second electronic device may directly display the application service shared by the first electronic device on the target display screen. After the second electronic device displays the application service shared by the first electronic device on the target display screen, it can also close the application service according to the user operation, then the second electronic device can continue to display the originally displayed content or other content on the target display screen .
  • the second electronic device may display prompt information on the target display screen, where the prompt information is used to prompt users using the target display screen to share content to the display screen with the first electronic device, and It is used to inquire whether the user using the target display screen accepts the application service shared by the first electronic device.
  • the second electronic device displays the application service shared by the first electronic device on the target display screen.
  • the above prompting process may be completed by the sharing service notification module shown in FIG. 4 .
  • the second electronic device can determine the detailed configuration information of the application service according to the sharing instruction information, obtain the application service according to the detailed configuration information of the application service, and display the application service on the target display screen service, and continue to run the application service.
  • the above process can be completed by the sharing service execution module shown in FIG. 4 .
  • the management method of at least one display screen of the second electronic device may adopt a multi-user mechanism. That is, each display screen of the second electronic device corresponds to a user, and each display screen is controlled by the corresponding user. Based on this, after the first electronic device shares the application service to one or more display screens, each display screen can perform different processing and display different content according to the control of the corresponding user, thereby realizing independent application services between different display screens. Share and control.
  • the second electronic device may bind the real schema address of the application service contained in the sharing instruction information to the intent, and start the connection service through the intent.
  • the management method of at least one display screen of the second electronic device may adopt a multi-screen mechanism. That is, at least one display screen of the second electronic device may correspond to a user and be controlled by the user. Wherein, one of the at least one display screen may be used as the main screen.
  • the main screen may be a target display screen indicated by the target display screen information contained in the sharing instruction information, and the sharing instruction information only controls the display of the shared content on the main screen.
  • the second electronic device may bind the real schema address of the application service contained in the sharing instruction information to the intent, and at the same time add the identification information of the main screen to the intent, and then start the connection service through the intent.
  • Other display screens except the main screen may not display content, or may display the same content as the main screen, or may display content different from the main screen, which is not specifically limited in this embodiment of the present application.
  • the display screen of the second electronic device can The display interface (any interface that is being displayed, such as the desktop interface shown in Figure 10a) displays the notification information as shown in Figure 10a, and the user who uses the display screen has been prompted to determine whether to accept the video shared by the first electronic device Serve.
  • the second electronic device may continue to display the current interface without performing additional processing.
  • the second electronic device may directly display the video service interface shown in FIG.
  • the content of the shared video service is the same, that is, the same as the content in the interface shown in (a) schematic diagram in FIG.
  • the second electronic device may also directly display the video service shown in Figure 10b after obtaining the video service interface.
  • the video service interface shown in FIG. 10b The devices do not interfere with each other and perform corresponding processing independently.
  • the first electronic device and the second electronic device respectively play videos through video services corresponding to their own video applications.
  • the second electronic device can adjust the playback speed of the video in response to the operation performed by the user, while the first electronic device side still Play the video at normal speed.
  • the first electronic device is a mobile phone and the second electronic device is a smart cockpit equipped with multiple display screens as an example, and the solution is introduced in combination with the scenario where the mobile phone shares the application services of third-party applications to the display screens in the smart cockpit.
  • the same third-party application is installed in both the first electronic device and the second electronic device.
  • the multi-screen sharing service used to complete the solution provided by the embodiment of the present application in the first electronic device can be divided into a sharing listening service (SystemShare/Clipboard Listen Service) and a mobile terminal sharing service (MobileShare Service), wherein the sharing listening service is used for Get the detailed configuration information of the application service and obtain the information of the display screen in the cockpit from the smart cockpit.
  • the mobile terminal sharing service is used to share the application service to the display screen of the smart cockpit according to the information obtained from the monitoring service.
  • the multi-screen sharing service used in the smart cockpit to complete the solution provided by the embodiment of the present application can be divided into a display monitoring service (Displays Get Service) and a cockpit end sharing service (CockpitShare Service), wherein the display monitoring service is used to monitor the smart The state of the display screen in the cockpit, the sharing service user in the cockpit receives, displays and continues to run the application service shared by the mobile phone.
  • the smart cockpit mentioned above may be the cockpit shown in FIG. 8 , in which the rear left seat and the rear right seat are respectively equipped with corresponding display screens, that is, display screen 1 and display screen 2 .
  • the above-mentioned mobile phone can be a mobile phone carried and used by a passenger in the copilot seat in the smart cockpit.
  • the method provided by the embodiment of this application can be used to share the application service to Display on the display screen 1 and display screen 2, then the passengers on the left seat in the rear row and the right seat in the rear row can conveniently and quickly view and use the application services shared by the passengers in the driver's seat through the display screen in front of them.
  • the flow of the method for sharing content provided by the embodiment of the present application may include:
  • S1101 The third-party application provides an application service.
  • the third-party application After the user opens the third-party application in the first electronic device, the third-party application provides application services for the user.
  • the mobile phone can display the first interface as shown in Figure 12, which is the interface of the application service. Specific information for Restaurant A.
  • the passenger in the driver's seat wants to share the current application service (interface) with the passengers in the rear seat, he can click the "sharing control" in the first interface shown in Figure 12 to trigger the sharing process.
  • the sharing monitoring service of the mobile phone obtains the initial POI information of the application service by monitoring the content shared by the system or the clipboard content.
  • the sharing monitoring service acquires detailed configuration information of the application service according to the initial POI information.
  • S1104 The sharing monitoring service instructs the display screen monitoring service to report the display screen information of the smart cockpit.
  • the sharing monitoring service of the mobile phone may instruct the display screen monitoring service of the smart cockpit to report the display screen information of the smart cockpit.
  • S1105 The display screen monitoring service reports the display screen information of the smart cockpit to the sharing monitoring service.
  • the display monitoring service of the smart cockpit sends the monitored display information of the smart cockpit to the sharing monitoring service of the mobile phone according to the instructions of the sharing monitoring service of the mobile phone.
  • the sharing monitoring service displays the display screen information of the smart cockpit to the user.
  • the sharing monitoring service displays the option space corresponding to the display screen of the smart cockpit to the user, so that the user can select the display screen that needs to share the application service.
  • the mobile phone can display the second interface shown in Figure 12, which includes the option control of "Copy Link", and the user By operating the option control, the mobile phone can be triggered to display the third interface shown in FIG. Indicates to share the application service to the corresponding display screen.
  • the sharing monitoring service determines a target display screen for sharing the application service according to the user's feedback.
  • the sharing monitoring service sends the detailed configuration information of the application service and the information of the target display screen to the mobile terminal sharing service.
  • the mobile terminal sharing service generates sharing instruction information according to the detailed configuration information of the application service and the information of the target display screen.
  • the sharing instruction information is used to instruct the smart cockpit to display and run the application service on the target display screen after obtaining the application service according to the detailed configuration information of the application service.
  • the mobile terminal sharing service sends the sharing instruction information to the cockpit terminal sharing service.
  • S1111 The cockpit sharing service displays a prompt message on the target display screen to prompt the user to confirm whether to accept the mobile phone sharing application service.
  • the cockpit sharing service can add prompt information in the current display interface of the target display screen as shown in Figure 13.
  • the prompt information is used to prompt the user using the display screen to determine whether to accept the information shared by the first electronic device. application services.
  • the cockpit sharing service starts a third-party application on the target display screen, and controls the third-party application to display and run the application service.
  • S1114 The third-party application displays and runs the application service.
  • the content in the target display screen is updated with the tasks in the interface corresponding to the application service.
  • the third-party application can control and display the interface shown in FIG. 14 , which is an interface of the application service shared by the mobile phone, and contains the same content as the first interface shown in FIG. 12 .
  • the content displayed on the target display screen jumps directly from the interface shown in Figure 13 to the interface shown in Figure 14, so the content in the mobile phone can be seamlessly transferred to the display screen of the cockpit for display, Improved interactive experience.
  • the user can seamlessly share the services of the third-party application on the mobile device to the display screen in the smart cockpit in the smart cockpit, enabling other users in the smart cockpit to share service content easily and quickly.
  • the service sharing process does not require adaptation and modification of third-party applications and the cockpit, and will not affect the original framework of mobile devices, cockpit devices, and third-party applications. Therefore, the solution is highly practicable , can get a good experience.
  • the embodiment of the present application also provides a method for sharing content, which is applied to the first electronic device, as shown in FIG. 15 , the method includes:
  • the first electronic device acquires first sharing information in response to the received first operation; wherein, the first electronic device includes a first application, and the first operation is used to instruct the The target content is shared to at least one display screen of the second electronic device, and the first sharing information is used to indicate the first application and the target content.
  • the first electronic device can call the first application to display the target content, and can share the target content to the second electronic device according to the user's operation after establishing a communication connection with the second electronic device.
  • the first electronic device before the first electronic device receives the first operation, it may first determine the information on the display screen of the second electronic device, and display it to the user during the process of receiving the first operation; or, the first electronic device The information on the display screen of the second electronic device may be determined during the process of receiving the first operation, and displayed to the user. For example, in the process of receiving the first operation, the first electronic device may acquire information on the display screen of the second electronic device from the second electronic device after receiving a sub-operation triggered by the user to share the target content, and then display the information to the user, Then, the at least one display screen is determined based on the sub-operation of selecting the display screen by the user, so as to complete the receiving of the first operation and the acquisition of corresponding sharing information.
  • the first electronic device may determine the information of the display screen of the second electronic device according to the first indication information from the second electronic device, where the first indication information is used to indicate multiple display screens of the second electronic device.
  • the first indication information may be an option control of multiple display screens shown in the schematic diagram of (b) in FIG. 9a or FIG. 9b.
  • the first indication information is also used to indicate the states of the multiple display screens of the second electronic device, where the states of the display screens include unlocked and unlocked, and may also include the bright screen and off screen.
  • the first operation received by the first electronic device includes a second operation and a third operation, wherein the second operation is used to instruct to share the target content, and the third operation is used to share the target content on the second electronic device. Selecting the at least one display screen from among the multiple display screens of the device. Then, the process of the first electronic device receiving the first operation may include: the first electronic device receiving the second operation; the first electronic device responding to the second operation, displaying the second indication information, and then receiving the third operation. Wherein, the second indication information is used to indicate the plurality of display screens.
  • the first electronic device may first determine that multiple display screens of the second electronic device are in an unlocked state or a screen-on state, so as to ensure that the user selects the display screen to be shared among the available display screens. content display.
  • the target content in the first application may serve the application described in the above embodiments, that is, the target content is the application service provided by the first application.
  • the second operation may be the operation of sharing the target content by the user in the above embodiment using the system sharing method or the copy and paste sharing method
  • the third operation may be that the user selects at least one of the multiple display screens of the second electronic device to display screen operation.
  • the second operation may be an operation in which the user clicks the shared control icon shown in (a) in FIG. 5 .
  • the first electronic device may display the interface shown in FIG.
  • the option controls corresponding to the multiple display screens in the interface shown are the second indication information
  • the third operation is an operation for the user to select at least one display screen from the multiple display screens shown in FIG. 9 a .
  • the first electronic device may first obtain the second shared information, and then obtain the first shared information according to the second shared information.
  • the second sharing information is used to indicate a sharing link of the target content generated by the first application.
  • the second shared information may be the initial POI information described in the above embodiments, that is, the link of the application service generated by the first application.
  • the second shared information may be link 1 or link 2 shown in FIG. 6 .
  • the first shared information may be the detailed configuration information described in the foregoing embodiments, and the target content can be directly located according to the information, so as to invoke the first application to display the target content.
  • the first electronic device may first perform character string matching on the second shared information to obtain the content indication information and the first address information of the target content; and then according to the content indication information and the first address information to determine the first shared information.
  • the content indication information is used to indicate the target content
  • the first address information is used to determine an address for obtaining the target content.
  • the first address information is a Uniform Resource Locator.
  • the content indication information may be the sharing parameter information in the above embodiment, and the specific content of the target content may be determined according to the information.
  • the first address information may be the service URL in the foregoing embodiments.
  • the first electronic device may use the content indication information and the first address information as the first sharing information.
  • the first address information is the above-mentioned service URL
  • the URL cannot be further redirected, it can be determined that the URL is the real source address of the target content, and the content indication information and the first The address information is used as the first shared information.
  • the first electronic device may redirect the first address information to obtain second address information, and use the content indication information and the second address information as the second address information.
  • the second address information is used to indicate an address for obtaining the target content. For example, when the first address information is the above-mentioned service URL, if the URL can be further redirected, then the URL can be redirected to obtain the real source address of the target content, that is, the real schema address, and then The content indication information and the second address information obtained after redirection are used as the first sharing information.
  • the first electronic device sends the first sharing information and target display screen information to the second electronic device; wherein the target display screen information is used to indicate the at least one display screen.
  • the second electronic device After the first electronic device sends the first sharing information and the target display screen information to the second electronic device, the second electronic device can display the target content according to the first sharing information and the target display screen information.
  • the first electronic device may send the information to the second electronic device after integrating the first shared information and the information on the target display screen.
  • the target display screen information may be the display screen information described in the foregoing embodiments.
  • the information obtained after integrating the first sharing information and the target display screen information may be the sharing instruction information described in the above-mentioned embodiments.
  • the first electronic device may continue to execute the process before sharing the target content, for example, continue to display the target content.
  • the first electronic device may execute a corresponding process according to the user's operation. For example, when the user controls to update the target content, the first electronic device may update the target content in response to the fourth operation performed by the user.
  • the embodiment of the present application also provides a method for sharing content, which is applied to the second electronic device, as shown in FIG. 16 , the method includes:
  • the second electronic device receives the first shared information and target display screen information from the first electronic device; wherein, the second electronic device includes a first application, and the first shared information is used to indicate the first application As for the target content in the first application, the target display screen information is used to indicate at least one display screen of the second electronic device.
  • the second electronic device may accept and display the target content shared by the first electronic device.
  • the second electronic device has multiple display screens, and before accepting the target content shared by the first electronic device, the second electronic device may send the first instruction information to the first electronic device to display the second The information of the multiple display screens of the electronic device is indicated to the first electronic device, so that the first electronic device side selects at least one display screen that needs to share the target content from the multiple display screens.
  • the second electronic device determines the first application and acquires the target content according to the first sharing information, and determines the at least one display screen according to the target display screen information.
  • the first shared information includes address information (the first address information or the second address information) and content indication information
  • the second electronic device can locate the address of the target content according to the address information, and according to the content indication information
  • the detailed content of the target content is obtained from the address, so as to call the first application to display the target content.
  • the target display screen information the second electronic device can determine which display screens to display the target content on. Therefore, based on the first sharing information and the target display screen information, the second electronic device can acquire and display the target content by itself, realizing the content sharing effect from the first electronic device to the second electronic device.
  • the second electronic device respectively displays the target content on the at least one display screen by invoking the first application.
  • the second electronic device can independently perform various subsequent processing procedures, such as continuing to display the target content and updating the target content , to display other content, etc.
  • the second electronic device may update the target content displayed on the target display screen in response to the fifth operation performed by the user; wherein the target display screen is any one of the at least one display screen.
  • the fifth operation may be the operation of controlling the playing speed of the video described in the above embodiment, and the second electronic device may adjust the playing speed of the video according to the operation.
  • the above-mentioned steps S1601-S1603 can be performed after the above-mentioned step S1503. Based on this, the first electronic device and the second electronic device can cooperate to complete the process of sharing and displaying the target content, and realize the sharing and display process between the two electronic devices. The effect of sharing content easily and efficiently.
  • the embodiment of the present application also provides an electronic device, as shown in FIG. 1702 Collaborate, for implementing the method performed by the first electronic device or the second electronic device in the content sharing method provided in the embodiment of the present application.
  • the embodiment of the present application further provides an electronic device, which is used to implement the method performed by the first electronic device or the second electronic device in the method for sharing content provided in the embodiment of the present application.
  • the electronic device 1800 may include: a display screen 1801 , a memory 1802 , one or more processors 1803 , and one or more computer programs (not shown in the figure).
  • the various components described above may be coupled by one or more communication buses 1804 .
  • the display screen 1801 is used to display relevant user interfaces such as images, videos, and application interfaces.
  • One or more computer programs are stored in the memory 1802, and the one or more computer programs include computer instructions; one or more processors 1803 call the computer instructions stored in the memory 1802, so that the electronic device 1800 executes The content sharing method provided by the embodiment of this application.
  • the memory 1802 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices or other non-volatile solid-state storage devices.
  • the memory 1802 can store an operating system (hereinafter referred to as the system), such as embedded operating systems such as ANDROID, IOS, WINDOWS, or LINUX.
  • the memory 1802 can be used to store the implementation program of the embodiment of the present application.
  • the memory 1802 can also store a network communication program, which can be used to communicate with one or more additional devices, one or more user devices, and one or more network devices.
  • the one or more processors 1803 can be a general-purpose central processing unit (Central Processing Unit, CPU), a microprocessor, a specific application integrated circuit (Application-Specific Integrated Circuit, ASIC), or one or more for controlling This application programs the implementation of integrated circuits.
  • CPU Central Processing Unit
  • ASIC Application-Specific Integrated Circuit
  • FIG. 18 is only an implementation manner of the electronic device 1800 provided in the embodiment of the present application. In practical applications, the electronic device 1800 may include more or fewer components, which is not limited here.
  • the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program runs on a computer, the computer executes The method for sharing content provided by the above embodiments.
  • the embodiment of the present application also provides a computer program product, the computer program product includes a computer program or an instruction, when the computer program or instruction is run on a computer, it causes the computer to execute the above-mentioned The method for sharing content provided by the embodiment.
  • the methods provided in the embodiments of the present application may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, all or part of the processes or functions according to the embodiments of the present invention will be generated.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, network equipment, user equipment or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL) or wireless (such as infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media.
  • the available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), optical media (for example, digital video disc (digital video disc, DVD for short), or semiconductor media (for example, SSD), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请提供一种分享内容的方法及电子设备,应用于第一电子设备,其中,所述第一电子设备包含第一应用,所述方法包括:所述第一电子设备响应于接收到的第一操作,获取第一分享信息;其中,所述第一操作用于指示将所述第一应用中的目标内容分享至第二电子设备的至少一个显示屏,所述第一分享信息用于指示所述第一应用及所述目标内容;所述第一电子设备向所述第二电子设备发送所述第一分享信息和目标显示屏信息;其中,所述目标显示屏信息用于指示所述至少一个显示屏。本申请提供的方案,能够实现不同电子设备之间简便快速的内容分享,进而提高分享效率和使用体验。

Description

一种分享内容的方法及电子设备
相关申请的交叉引用
本申请要求在2022年01月07日提交中华人民共和国知识产权局、申请号为202210016575.7、申请名称为“一种分享内容的方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子设备技术领域,尤其涉及一种分享内容的方法及电子设备。
背景技术
座舱指汽车、飞机、轮船等交通工具的内部空间。智能座舱是指配备了智能化和网联化的机载产品,从而具备智能交互功能的座舱。目前智能座舱已经成为智能汽车不可或缺的一部分,是高度智能化的体现。
大部分智能座舱都配备有多个显示屏,当前用户将移动设备(例如手机)上的服务分享到智能座舱的多个显示屏时,可以采用蓝牙分享方式或软件分享的方式。
其中,在采用蓝牙分享方式时,移动设备只能将音频服务分享到智能座舱,因此移动设备能够分享的服务内容有限,难以满足多种类型服务的分享需求。基于软件分享的方式中,智能座舱的显示屏需要与移动设备进行适配,移动设备中服务的提供方也需要进行适配,移动设备还需要安装专用的软件来控制和实现移动设备与智能座舱之间的服务分享,虽然可以实现多种类型服务的分享,但是分享过程较为复杂,效率和使用体验均较低。此外,分享过程中软件需前台运行,会影响移动设备自身其它功能的执行。
发明内容
本申请提供一种分享内容的方法及电子设备,用以实现不同电子设备之间简便快速的内容分享,进而提高分享效率和使用体验。
第一方面,本申请实施例提供一种分享内容的方法,应用于第一电子设备,其中,所述第一电子设备包含第一应用,该方法包括:所述第一电子设备响应于接收到的第一操作,获取第一分享信息;其中,所述第一操作用于指示将所述第一应用中的目标内容分享至第二电子设备的至少一个显示屏,所述第一分享信息用于指示所述第一应用及所述目标内容;所述第一电子设备向所述第二电子设备发送所述第一分享信息和目标显示屏信息;其中,所述目标显示屏信息用于指示所述至少一个显示屏。
在该方法中,第一电子设备将第一应用中的目标内容分享至第二电子设备时,可以将用于指示第一应用和目标内容的分享信息发送至第二电子设备,使得第二电子设备可以根据该分享信息自行获取第一应用中的目标内容并进行显示。基于此,第一电子设备无需对第一应用进行任何修改,且无需额外的控制软件也能将第一应用的目标内容快速分享至第二电子设备。因此,该方法可以实现不同电子设备之间简便快速的内容分享,进而提高分享效率和使用体验。
在一种可能的设计中,所述第一电子设备获取第一分享信息,包括:所述第一电子设备获取第二分享信息;其中,所述第二分享信息用于指示所述第一应用生成的所述目标内容的分享链接;所述第一电子设备根据所述第二分享信息,确定所述第一分享信息。
当前应用生成的分享链接一般仅指示了待分享内容的简要信息,可以用于在其它应用中间接打开该应用并显示该应用中的内容,但无法直接调用该应用显示内容,且无法完全还原显示分享的内容。而该方法中,第一电子设备在获取第一应用生成的分享链接后,可以通过对该分享链接进行解析,获取目标内容的真实分享地址和分享参数,从而得到第一分享信息,使得根据第一分享信息可以直接调用第一应用显示目标内容。因此,接受分享的第二电子设备可以根据第一分享信息直接调用第一应用显示目标内容,能够完全还原显示第一电子设备所分享的内容,进而实现分享的内容从第一电子设备至第二电子设备的无缝流转,提高了分享内容的效率和使用体验。
在一种可能的设计中,所述第一电子设备根据所述第二分享信息,确定所述第一分享信息,包括:所述第一电子设备对所述第二分享信息进行字符串匹配,得到所述目标内容的内容指示信息和第一地址信息;其中,所述内容指示信息用于指示所述目标内容,所述第一地址信息用于确定获取所述目标内容的地址;所述第一电子设备根据所述内容指示信息和所述第一地址信息,确定所述第一分享信息。
在该方法中,根据第一地址信息可以确定目标内容的地址,根据内容指示信息可以确定目标内容的详细内容,因此,根据第一地址信息和内容指示信息可以获取到目标内容。则第一电子设备根据地址信息和内容指示信息确定第一分享信息并发送至第二电子设备后,可以保证第二电子设备能够根据第一分享信息获取到目标内容,从而进行目标内容的显示,进而实现目标内容的分享。
在一种可能的设计中,所述第一地址信息为统一资源定位符;所述第一电子设备根据所述内容指示信息和所述第一地址信息,确定所述第一分享信息,包括:所述第一电子设备将所述内容指示信息和所述第一地址信息作为所述第一分享信息;或者,所述第一电子设备对所述第一地址信息进行重定向,得到第二地址信息;其中,所述第二地址信息用于指示获取所述目标内容的地址;所述第一电子设备将所述内容指示信息和所述第二地址信息作为所述第一分享信息。
在该方法中,通过对第一地址信息进行重定向处理,可以获取到能够获取目标内容的真实源地址即第二地址信息,基于此,能够使第二电子设备直接简便且快速的根据第二地址信息获取到目标内容,从而更快速的进行目标内容的获取和显示,进而加快内容分享的速度和效率。
在一种可能的设计中,在所述第一电子设备响应于接收到的第一操作,获取第一分享信息之前,所述方法还包括:所述第一电子设备接收来自所述第二电子设备的第一指示信息后,接收所述第一操作;其中,所述第一指示信息用于指示所述第二电子设备的多个显示屏。
在该方法中,第一电子设备可以确定第二电子设备的多个显示屏,则可以进一步在第二电子设备的多个显示屏中选择要分享目标内容的显示屏,从而有针对性的进行目标内容的分享,能够提高内容分享的灵活性。
在一种可能的设计中,所述第一操作包括第二操作和第三操作,其中,所述第二操作用于指示分享所述目标内容,所述第三操作用于在所述多个显示屏中选择所述至少一个显 示屏;所述第一电子设备接收所述第一操作,包括:所述第一电子设备接收所述第二操作;所述第一电子设备响应于所述第二操作,显示第二指示信息;其中,所述第二指示信息用于指示所述多个显示屏;所述第一电子设备接收所述第三操作。
在该方法中,第一电子设备确定分享目标内容时显示用于指示第二电子设备的多个显示屏的指示信息,可以使用户在第二电子设备的多个显示屏中选择需要分享目标内容的显示屏,进而将目标内容分享至第二电子设备的特定显示屏,提高内容分享的灵活性和使用体验。
在一种可能的设计中,所述第一指示信息还用于指示所述多个显示屏的状态,所述状态包括已解锁或未解锁;在所述第一电子设备响应于所述第二操作,显示第二指示信息之前,所述方法还包括:所述第一电子设备根据所述第一指示信息,确定所述多个显示屏的状态均为已解锁。
在该方法中,第二电子设备的显示屏为解锁状态时,用户可以直接使用该显示屏。因此,第一电子设备在向第二电子设备分享目标内容时,通过确定第二电子设备的显示屏为解锁状态,可以将能够使用的、第二电子设备的显示屏指示给用户,从而从中选择可用的显示屏分享内容,提高使用体验。
在一种可能的设计中,在所述第一电子设备响应于接收到的第一操作,获取第一分享信息之前,所述方法还包括:所述第一电子设备通过调用所述第一应用,显示所述目标内容;在所述第一电子设备向所述第二电子设备发送所述第一分享信息和目标显示屏信息之后,所述方法还包括:所述第一电子设备响应于接收到的第四操作,更新所述目标内容。
在该方法中,第一电子设备将第一分享信息指示给第二电子设备后,第二电子设备根据第一分享信息即可获得并显示第一应用的目标内容,不会影响第一电子设备侧的后续处理,也不会受第一电子设备侧的后续处理的影响,因此,第一电子设备在向第二电子设备发送第一分享信息后,就可以继续执行第一电子设备自身的后续流程,提高了第一电子设备的处理效率和使用体验。
第二方面,本申请实施例提供一种分享内容的方法,应用于第二电子设备,其中,所述第二电子设备包含第一应用,该方法包括:所述第二电子设备接收来自第一电子设备的第一分享信息和目标显示屏信息;其中,所述第一分享信息用于指示所述第一应用及所述第一应用中的目标内容,所述目标显示屏信息用于指示所述第二电子设备的至少一个显示屏;所述第二电子设备根据所述第一分享信息,确定所述第一应用并获取所述目标内容,以及,根据所述目标显示屏信息,确定所述至少一个显示屏;所述第二电子设备通过调用所述第一应用,分别在所述至少一个显示屏中显示所述目标内容。
在该方法中,第二电子设备接收来自第一电子设备的、用于指示第一应用和目标内容的分享信息后,可以根据该分享信息自行获取第一应用中的目标内容并进行显示,能够实现第一电子设备将目标内容分享至第二电子设备的效果。且第二电子设备无需对第一应用进行任何修改,也无需额外的控制软件即可实现分享内容的接收和显示。因此,该方法可以实现不同电子设备之间简便快速的内容分享,进而提高分享效率和使用体验。
在一种可能的设计中,所述第一分享信息包括内容指示信息和第一地址信息;或者,所述第一分享信息包括所述内容指示信息和第二地址信息;其中,所述内容指示信息用于指示所述目标内容,所述第一地址信息用于确定获取所述目标内容的地址,所述第二地址信息用于指示获取所述目标内容的地址。
在该方法中,根据地址信息可以确定目标内容的地址,根据内容指示信息可以确定目标内容的详细内容,因此,根据地址信息和内容指示信息可以获取到目标内容。则第二电子设备能够根据第一分享信息获取到目标内容,从而进行目标内容的显示,进而实现目标内容的分享。
在一种可能的设计中,在所述第二电子设备接收来自第一电子设备的第一分享信息和目标显示屏信息之前,所述方法还包括:所述第二电子设备向所述第一电子设备发送第一指示信息;其中,所述第一指示信息用于指示所述第二电子设备的多个显示屏,所述至少一个显示屏包含在所述多个显示屏中。
在该方法中,第二电子设备将自身的多个显示屏的信息指示给第一电子设备,使得第一电子设备能够在第二电子设备的多个显示屏中选择要分享目标内容的显示屏,从而有针对性的进行目标内容的分享,能够提高内容分享的灵活性。
在一种可能的设计中,所述第一指示信息还用于指示所述多个显示屏的状态,所述状态包括已解锁或未解锁;所述多个显示屏的状态均为已解锁。
在该方法中,第二电子设备的显示屏为解锁状态时,用户可以直接使用该显示屏。因此,第二电子设备将解锁状态的多个显示屏指示给第一电子设备,能够使第一电子设备将能够使用的、第二电子设备的显示屏指示给用户,从而从中选择可用的显示屏分享内容,提高了使用体验。
在一种可能的设计中,在所述第二电子设备通过调用所述第一应用,分别在所述至少一个显示屏中显示所述目标内容之后,所述方法还包括:所述第二电子设备响应于接收到的第五操作,更新目标显示屏中显示的所述目标内容;其中,所述目标显示屏为所述至少一个显示屏中的任一个显示屏。
在该方法中,第一电子设备将第一分享信息指示给第二电子设备后,第二电子设备根据第一分享信息即可获得并显示第一应用的目标内容,不会影响第一电子设备侧的后续处理,也不会受第一电子设备侧的后续处理的影响,因此,第二电子设备在根据第一分享信息显示第一应用的目标内容后,可以独立的继续进行后续的处理流程,提高了第二电子设备的处理效率和使用体验。
第三方面,本申请实施例提供一种分享内容的方法,应用于第一电子设备与第二电子设备组成的系统,其中,所述第一电子设备和所述第二电子设备包含第一应用,该方法包括:所述第一电子设备响应于接收到的第一操作,获取第一分享信息;其中,所述第一操作用于指示将所述第一应用中的目标内容分享至所述第二电子设备的至少一个显示屏,所述第一分享信息用于指示所述第一应用及所述目标内容;所述第一电子设备向所述第二电子设备发送所述第一分享信息和目标显示屏信息;其中,所述目标显示屏信息用于指示所述至少一个显示屏;所述第二电子设备接收所述第一分享信息和所述目标显示屏信息;所述第二电子设备根据所述第一分享信息,确定所述第一应用并获取所述目标内容,以及,根据所述目标显示屏信息,确定所述至少一个显示屏;所述第二电子设备通过调用所述第一应用,分别在所述至少一个显示屏中显示所述目标内容。
在一种可能的设计中,所述第一电子设备获取第一分享信息,包括:所述第一电子设备获取第二分享信息;其中,所述第二分享信息用于指示所述第一应用生成的所述目标内容的分享链接;所述第一电子设备根据所述第二分享信息,确定所述第一分享信息。
在一种可能的设计中,所述第一电子设备根据所述第二分享信息,确定所述第一分享 信息,包括:所述第一电子设备对所述第二分享信息进行字符串匹配,得到所述目标内容的内容指示信息和第一地址信息;其中,所述内容指示信息用于指示所述目标内容,所述第一地址信息用于确定获取所述目标内容的地址;所述第一电子设备根据所述内容指示信息和所述第一地址信息,确定所述第一分享信息。
在一种可能的设计中,所述第一地址信息为统一资源定位符;所述第一电子设备根据所述内容指示信息和所述第一地址信息,确定所述第一分享信息,包括:所述第一电子设备将所述内容指示信息和所述第一地址信息作为所述第一分享信息;或者,所述第一电子设备对所述第一地址信息进行重定向,得到第二地址信息;其中,所述第二地址信息用于指示获取所述目标内容的地址;所述第一电子设备将所述内容指示信息和所述第二地址信息作为所述第一分享信息。
在一种可能的设计中,在所述第一电子设备响应于接收到的第一操作,获取第一分享信息之前,所述方法还包括:所述第二电子设备向所述第一电子设备发送第一指示信息;其中,所述第一指示信息用于指示所述第二电子设备的多个显示屏;所述第一电子设备接收所述第一指示信息后,接收所述第一操作。
在一种可能的设计中,所述第一操作包括第二操作和第三操作,其中,所述第二操作用于指示分享所述目标内容,所述第三操作用于在所述多个显示屏中选择所述至少一个显示屏;所述第一电子设备接收所述第一操作,包括:所述第一电子设备接收所述第二操作;所述第一电子设备响应于所述第二操作,显示第二指示信息;其中,所述第二指示信息用于指示所述多个显示屏;所述第一电子设备接收所述第三操作。
在一种可能的设计中,所述第一指示信息还用于指示所述多个显示屏的状态,所述状态包括已解锁或未解锁;在所述第一电子设备响应于所述第二操作,显示第二指示信息之前,所述方法还包括:所述第一电子设备根据所述第一指示信息,确定所述多个显示屏的状态均为已解锁。
在一种可能的设计中,在所述第一电子设备响应于接收到的第一操作,获取第一分享信息之前,所述方法还包括:所述第一电子设备通过调用所述第一应用,显示所述目标内容;在所述第一电子设备向所述第二电子设备发送所述第一分享信息和目标显示屏信息之后,所述方法还包括:所述第一电子设备响应于接收到的第四操作,更新所述目标内容。
在一种可能的设计中,在所述第二电子设备通过调用所述第一应用,分别在所述至少一个显示屏中显示所述目标内容之后,所述方法还包括:所述第二电子设备响应于接收到的第五操作,更新目标显示屏中显示的所述目标内容;其中,所述目标显示屏为所述至少一个显示屏中的任一个显示屏。
第四方面,本申请实施例提供一种电子设备,其中,所述电子设备包含第一应用,所述电子设备包括:处理单元,用于响应于接收到的第一操作,获取第一分享信息;其中,所述第一操作用于指示将所述第一应用中的目标内容分享至第二电子设备的至少一个显示屏,所述第一分享信息用于指示所述第一应用及所述目标内容;收发单元,用于向所述第二电子设备发送所述第一分享信息和目标显示屏信息;其中,所述目标显示屏信息用于指示所述至少一个显示屏。
在一种可能的设计中,所述处理单元获取第一分享信息,包括:获取第二分享信息;其中,所述第二分享信息用于指示所述第一应用生成的所述目标内容的分享链接;根据所述第二分享信息,确定所述第一分享信息。
在一种可能的设计中,所述处理单元根据所述第二分享信息,确定所述第一分享信息,包括:对所述第二分享信息进行字符串匹配,得到所述目标内容的内容指示信息和第一地址信息;其中,所述内容指示信息用于指示所述目标内容,所述第一地址信息用于确定获取所述目标内容的地址;根据所述内容指示信息和所述第一地址信息,确定所述第一分享信息。
在一种可能的设计中,所述第一地址信息为统一资源定位符;所述处理单元根据所述内容指示信息和所述第一地址信息,确定所述第一分享信息,包括:将所述内容指示信息和所述第一地址信息作为所述第一分享信息;或者,对所述第一地址信息进行重定向,得到第二地址信息;其中,所述第二地址信息用于指示获取所述目标内容的地址;将所述内容指示信息和所述第二地址信息作为所述第一分享信息。
在一种可能的设计中,在所述处理单元响应于接收到的第一操作,获取第一分享信息之前,所述方法还包括:所述收发单元接收来自所述第二电子设备的第一指示信息后,接收所述第一操作;其中,所述第一指示信息用于指示所述第二电子设备的多个显示屏。
在一种可能的设计中,所述第一操作包括第二操作和第三操作,其中,所述第二操作用于指示分享所述目标内容,所述第三操作用于在所述多个显示屏中选择所述至少一个显示屏;所述收发单元接收所述第一操作,包括:接收所述第二操作;响应于所述第二操作,通过所述处理单元显示第二指示信息;其中,所述第二指示信息用于指示所述多个显示屏;接收所述第三操作。
在一种可能的设计中,所述第一指示信息还用于指示所述多个显示屏的状态,所述状态包括已解锁或未解锁;在所述收发单元响应于所述第二操作,通过所述处理单元显示第二指示信息之前,所述方法还包括:所述处理单元根据所述第一指示信息,确定所述多个显示屏的状态均为已解锁。
在一种可能的设计中,在所述处理单元响应于接收到的第一操作,获取第一分享信息之前,所述方法还包括:所述处理单元通过调用所述第一应用,显示所述目标内容;在所述收发单元向所述第二电子设备发送所述第一分享信息和目标显示屏信息之后,所述方法还包括:所述处理单元响应于接收到的第四操作,更新所述目标内容。
第五方面,本申请实施例提供一种电子设备,其中,所述电子设备包含第一应用,所述电子设备包括:收发单元,用于接收来自第一电子设备的第一分享信息和目标显示屏信息;其中,所述第一分享信息用于指示所述第一应用及所述第一应用中的目标内容,所述目标显示屏信息用于指示所述第二电子设备的至少一个显示屏;处理单元,用于根据所述第一分享信息,确定所述第一应用并获取所述目标内容,以及,根据所述目标显示屏信息,确定所述至少一个显示屏;通过调用所述第一应用,分别在所述至少一个显示屏中显示所述目标内容。
在一种可能的设计中,所述第一分享信息包括内容指示信息和第一地址信息;或者,所述第一分享信息包括所述内容指示信息和第二地址信息;其中,所述内容指示信息用于指示所述目标内容,所述第一地址信息用于确定获取所述目标内容的地址,所述第二地址信息用于指示获取所述目标内容的地址。
在一种可能的设计中,在所述第二电子设备接收来自第一电子设备的第一分享信息和目标显示屏信息之前,所述方法还包括:所述第二电子设备向所述第一电子设备发送第一指示信息;其中,所述第一指示信息用于指示所述第二电子设备的多个显示屏,所述至少 一个显示屏包含在所述多个显示屏中。
在一种可能的设计中,所述第一指示信息还用于指示所述多个显示屏的状态,所述状态包括已解锁或未解锁;所述多个显示屏的状态均为已解锁。
在一种可能的设计中,在所述第二电子设备通过调用所述第一应用,分别在所述至少一个显示屏中显示所述目标内容之后,所述方法还包括:所述第二电子设备响应于接收到的第五操作,更新目标显示屏中显示的所述目标内容;其中,所述目标显示屏为所述至少一个显示屏中的任一个显示屏。
第六方面,本申请实施例提供一种电子设备,所述电子设备包括显示屏,存储器和一个或多个处理器;其中,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令;当所述计算机指令被所述一个或多个处理器执行时,使得所述电子设备执行上述第一方面或第一方面的任一可能的设计所描述的方法,或者执行上述第二方面或第二方面的任一可能的设计所描述的方法。
第七方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述第一方面或第一方面的任一可能的设计所描述的方法,或者执行上述第二方面或第二方面的任一可能的设计所描述的方法。
第八方面,本申请提供一种计算机程序产品,所述计算机程序产品包括计算机程序或指令,当所述计算机程序或指令在计算机上运行时,使得所述计算机执行上述第一方面或第一方面的任一可能的设计所描述的方法,或者执行上述第二方面或第二方面的任一可能的设计所描述的方法。
上述第三方面到第八方面的有益效果,请参见上述第一方面或第二方面的有益效果的描述,这里不再重复赘述。
附图说明
图1为本申请实施例提供的一种电子设备的硬件架构示意图;
图2为本申请实施例提供的一种电子设备的软件架构示意图;
图3为本申请实施例提供的一种第一电子设备的多屏分享服务的架构示意图;
图4为本申请实施例提供的一种第二电子设备的多屏分享服务的架构示意图;
图5为本申请实施例提供的一种分享方法的示意图;
图6为本申请实施例提供的一种分享链接的示意图;
图7为本申请实施例提供的一种解析得到应用服务的详细配置信息的方法的流程示意图;
图8为本申请实施例提供的一种车辆座舱内的显示屏的示意图;
图9a为本申请实施例提供的一种分享服务至车辆座舱的控制界面的示意图;
图9b为本申请实施例提供的另一种分享服务至车辆座舱的控制界面的示意图;
图10a为本申请实施例提供的一种分享服务的提示界面的示意图;
图10b为本申请实施例提供的另一种分享服务的效果界面的示意图;
图11为本申请实施例提供的分享内容的方法的一种可能的执行流程的示意图;
图12为本申请实施例提供的一种分享服务至车辆座舱的控制界面的示意图;
图13为本申请实施例提供的一种分享服务的提示界面的示意图;
图14为本申请实施例提供的另一种分享服务的效果界面的示意图;
图15为本申请实施例提供的一种分享内容的方法的示意图;
图16为本申请实施例提供的一种分享内容的方法的示意图;
图17为本申请实施例提供的一种电子设备的示意图;
图18为本申请实施例提供的一种电子设备的结构示意图。
具体实施方式
为了使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施例作进一步地详细描述。其中,在本申请实施例的描述中,以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。
为了便于理解,示例性的给出了与本申请相关概念的说明以供参考。
1)电子设备,可以为具有无线连接功能的设备。在本申请一些实施例中,电子设备可以是具备一个或多个显示屏的设备。
本申请一些实施例中电子设备可以是便携式设备,诸如手机、平板电脑、具备无线通讯功能的可穿戴设备(例如,手表、手环、头盔、耳机等)、车载终端设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等。电子设备还可以是智能家居设备(例如,智能电视、智能音箱等)、智能汽车、智能机器人、车间设备、无人驾驶(Self Driving)中的无线终端、远程手术(Remote Medical Surgery)中的无线终端、智能电网(Smart Grid)中的无线终端、运输安全(Transportation Safety)中的无线终端、智慧城市(Smart City)中的无线终端,或智慧家庭(Smart Home)中的无线终端、飞行设备(例如,智能机器人、热气球、无人机、飞机)等。
在本申请一些实施例中,电子设备还可以是还包含其它功能诸如个人数字助理和/或音乐播放器功能的便携式终端设备。便携式终端设备的示例性实施例包括但不限于搭载
Figure PCTCN2022143552-appb-000001
或者其它操作系统的便携式终端设备。上述便携式终端设备也可以是其它便携式终端设备,诸如具有触敏表面(例如触控面板)的膝上型计算机(Laptop)等。还应当理解的是,在本申请其它一些实施例中,上述电子设备也可以不是便携式终端设备,而是具有触敏表面(例如触控面板)的台式计算机。
2)兴趣点(point of interest,POI),原指互联网电子地图中的点类数据,基本包含名称、地址、坐标、类别四个属性,当前也泛指可以抽象成点进行管理、分析和计算的对象的信息。POI作为一种信息数据结构,可以将对象的各种信息包装后提供给用户,使得用户可以根据POI快速查找和使用对象。
3)跳转协议地址(schema),是一种页面内跳转协议,通过schema可以非常方便的跳转应用(application,APP)中的各个页面。通过scheme协议也可以定制化指示应用跳转到指定页面,或者通过通知栏消息定制化跳转页面等。
4)字符串匹配,也称字符串的定位操作,指的是通过将待检测的字符串与给定模式的字符串(又称模式串)进行匹配,确定待检测的字符串中是否存在给定模式的子串(子字符串),并在确定待检测的字符串中存在给定模式的子串时对该子串进行定位。通过进 行字符串匹配可以对待检测的字符串中不同的子串进行识别,最终确定待检测的字符串的含义。
5)统一资源定位符(uniform resource locator,URL),是因特网的万维网服务程序上用于指定信息位置的表示方法。URL通过提供资源位置的一种抽象标志符来对资源进行定位,一般由一串字符组成,这些字符可以是字母、数字和特殊符号等。系统定位了一个资源后,可能会对它进行各种各样的操作,这些操作可以抽象为访问、更新、替换、发现属性等,进行这些操作的过程中都需要根据URL进行资源定位。
6)重定向(redirect),也称为URL转发,是一种当实际资源(如单个页面、表单或者整个网络应用)被迁移到新的URL下时,保持原有链接可用的技术。超文本传输协议(hyper text transfer protocol,HTTP)协议提供了一种特殊形式的响应(即HTTP重定向)来执行此类操作。
7)序列化(serialization),指将对象的状态、内容等信息转换为可以存储或传输或访问的形式的过程。通过对对象进行序列化,可以使不同的设备、应用、程序、服务之间可以共享该对象。在序列化期间可以将对象的信息写入到临时或永久性存储区,在序列化以后可以通过从存储区中读取或反序列化对象的信息来重新创建该对象。
8)请求(fetch),是一种HTTP数据请求的方式,用于获取一个网络进程或网络资源,可以通过服务器的URL地址获取该地址下的具体数据。
在fetch过程中,可以通过发送HTTP请求向服务器请求数据,服务器会针对HTTP请求创建请求对象和响应对象。其中,请求对象用于获取HTTP请求,响应对象用于根据HTTP请求提供数据。
HTTP请求一般包含请求头和请求体。其中,请求头(request header)是HTTP头的一种,是HTTP请求的消息头部分,可以用于描述HTTP响应,并且和请求体无关。请求体(request body)为用于请求数据的数据。
HTTP响应一般包含响应头和响应体。其中,响应头(reponse header)为HTTP响应的消息头部分,可以用于描述HTTP响应。响应体(reponse body)为服务器提供的数据。
9)意图(intent),是用于解决应用中各项组件之间的通讯的进程服务。intent负责对应用中一次操作的动作、动作涉及数据、附加数据等进行描述,以使系统根据此描述找到对应的组件,并将intent传递给该组件,使得该组件完成应用中一次操作的动作,从而实现组件的调用。intent通过提供组件互相调用的相关信息,能够实现调用者与被调用者之间的解耦。
应理解,本申请实施例中“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一(项)个”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a、b或c中的至少一项(个),可以表示:a,b,c,a和b,a和c,b和c,或a、b和c,其中a、b、c可以是单个,也可以是多个。
当前用户将移动设备中的服务分享到车机中智能座舱的多个显示屏时,可以采用蓝牙分享方式或软件实现分享的方式。
蓝牙分享方式是目前智能车机中使用最广的移动端服务分享至车机端的方案,但该方式仅限于音乐类、听书类等音频流媒体服务的分享。其具体分享流程主要是:移动端的解码器对当前音频通道的音频流进行编码,并将编码后的音频流通过蓝牙方式传递给车机端;车机端接收到来自移动端的音频流后,对音频流进行解码和播放。基于该方式,移动端可以将音频服务分享至车机端,但是该方案仅适用于音频服务的分享场景,对于其他类型服务(例如视频服务)的分享场景并不适用,因此,该方案的应用场景有限。并且,蓝牙传输方式的传输带宽小、速率低,即使应用于音频场景,也存在一些传输受限的情况,例如蓝牙传输方式对于高保真(high-fidelity,Hi-Fi)格式的无损音乐的传输的支持度较小。此外,基于蓝牙分享方式,移动端只能与车机端的中控设备建立蓝牙连接并将服务分享至车机端,而无法分别与车机端的座舱中的多个显示屏建立关联并针对性的分享服务至显示屏,因此,移动端与车机端之间分享服务的灵活性和便捷性较差。
软件分享方式依赖于车机端和移动端的共同适配。其分享流程主要包括以下四步:
1)移动端提供一个服务化平台,供提供应用服务的第三方厂商接入。
2)移动端生成一个虚拟屏,将需要在车机端显示的服务界面添加到虚拟屏中运行。
3)移动端将虚拟屏上的视频流编码后送至车机端,车机端对视频流解码后,在显示屏上进行对应服务界面的显示。
4)当用户在车机端的显示屏上点击操作服务界面的内容时,车机端将点击事件发送回移动端,移动端进行相应处理后再控制车机端进行显示。
该方案中,移动端需要与车机端进行适配,以及与应用服务的提供商进行适配,且需要安装对应软件来进行控制,因此分享过程较为复杂。在分享过程中,移动端和车机端基于视频流进行服务内容的传输,稳定性较低。移动端的软件和应用服务本身还在移动端设备上运行,这会占用移动端设备的带宽,增加移动端设备的功耗。此外,移动端在向车机端传输分享的内容时需要将其软件置于前台运行,也会影响移动端自身的使用。
综上,当前移动设备上的服务分享到车机的智能座舱中的多个显示屏上的方案十分有限,仅能做到简单的文本、音乐分享或者需要借助额外的软件实现,因此分享过程较为复杂,灵活性和效率均较低。如何在不依赖提供应用服务的厂商和车机的情况下,实现移动设备上的应用服务无缝分享至车机座舱中的任意显示屏成为目前分享的重点。
鉴于此,本申请实施例提供一种分享内容的方法及电子设备,该方案可以应用于第一电子设备和第二电子设备组成的系统中。具体可以应用于第一电子设备向第二电子设备分享内容的场景中,可以实现将第一电子设备的内容简便快捷的分享至第二电子设备的任意显示屏的效果。
本申请实施例中,第一电子设备、第二电子设备为具备无线连接功能的设备。第一电子设备与第二电子设备之间可以基于无线通信方式进行通信。
可选的,第一电子设备与第二电子设备可以接入同一个局域网,也可以接入不同的局域网。在第一电子设备与第二电子设备接入在同一个局域网的示例中,具体可以为:第一电子设备和第二电子设备与同一无线接入点建立无线连接。另外,第一电子设备与第二电子设备可以接入同一个无线保真(Wireless Fidelity,Wi-Fi)热点。
可选的,第一电子设备和第二电子设备也可以通过蓝牙协议接入同一个蓝牙信标(Beacon)下。再例如,第一电子设备和第二电子设备间也可以通过近场通信(Near Field  Communication,NFC)标签触发通信连接,通过蓝牙模块传输加密信息进行身份认证。在认证成功后通过点对点(Point to Point,P2P)的方式进行数据传输。
在本申请一些实施例中,第一电子设备和第二电子设备均具备至少一个显示屏,第一电子设备可以将自身任一显示屏中的内容分享至第二电子设备的一个或多个显示屏进行显示。
示例性的,第一电子设备可以为手机、平板等终端设备,第二电子设备可以为座舱或者安装在座舱中的电子设备。
下面参阅图1,对本申请实施例提供的方法适用的电子设备的结构进行介绍。
如图1所示,电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,USB接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及SIM卡接口195等。
其中传感器模块180可以包括陀螺仪传感器、加速度传感器、接近光传感器、指纹传感器、触摸传感器、温度传感器、压力传感器、距离传感器、磁传感器、环境光传感器、气压传感器、骨传导传感器等。
可以理解的是,图1所示的电子设备100仅仅是一个范例,并不构成对电子设备的限定,并且电子设备可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图1中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(Neural-network Processing Unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
本申请实施例提供的分享内容的方法的执行可以由处理器110来控制或调用其他部件来完成,比如调用内部存储器121中存储的本申请实施例的处理程序,或者通过外部存储器接口120调用第三方设备中存储的本申请实施例的处理程序,来控制无线通信模块160向其它设备进行数据通信,提高电子设备100的智能化、便捷化程度,提升用户的体验。处理器110可以包括不同的器件,比如集成CPU和GPU时,CPU和GPU可以配合执行本申请实施例提供的分享内容的方法,比如分享内容的方法中部分算法由CPU执行,另一部分算法由GPU执行,以得到较快的处理效率。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液 晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。显示屏194可用于显示由用户输入的信息或提供给用户的信息以及各种图形用户界面(graphical user interface,GUI)。例如,显示屏194可以显示照片、视频、网页、或者文件等。
在本申请实施例中,显示屏194可以是一个一体的柔性显示屏,也可以采用两个刚性屏以及位于两个刚性屏之间的一个柔性屏组成的拼接显示屏。
摄像头193(前置摄像头或者后置摄像头,或者一个摄像头既可作为前置摄像头,也可作为后置摄像头)用于捕获静态图像或视频。通常,摄像头193可以包括感光元件比如镜头组和图像传感器,其中,镜头组包括多个透镜(凸透镜或凹透镜),用于采集待拍摄物体反射的光信号,并将采集的光信号传递给图像传感器。图像传感器根据所述光信号生成待拍摄物体的原始图像。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,应用程序(比如分享内容的功能等)的代码等。存储数据区可存储电子设备100使用过程中所创建的数据等。
内部存储器121还可以存储本申请实施例提供的分享内容的算法对应的一个或多个计算机程序。该一个或多个计算机程序被存储在上述内部存储器121中并被配置为被一个或多个处理器110执行,该一个或多个计算机程序包括指令,上述指令可以用于执行以下实施例中的各个步骤。
此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
当然,本申请实施例提供的分享内容的算法的代码还可以存储在外部存储器中。这种情况下,处理器110可以通过外部存储器接口120运行存储在外部存储器中的分享内容的算法的代码。
传感器模块180可以包括陀螺仪传感器、加速度传感器、接近光传感器、指纹传感器、触摸传感器等。
触摸传感器,也称“触控面板”。触摸传感器可以设置于显示屏194,由触摸传感器与显示屏194组成触摸显示屏,也称“触控屏”。触摸传感器用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
示例性的,电子设备100的显示屏194显示主界面,主界面中包括多个应用(比如相机应用、微信应用等)的图标。用户通过触摸传感器点击主界面中相机应用的图标,触发处理器110启动相机应用,打开摄像头193。显示屏194显示相机应用的界面,例如取景界面。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信 模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。在本申请实施例中,移动通信模块150还可以用于与其它设备进行信息交互。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频装置(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。本申请实施例中,无线通信模块160,用于与其它电子设备建立连接,进行数据交互。或者无线通信模块160可以用于接入接入点设备,向其它电子设备发送控制指令,或者接收来自其它电子设备发送的数据。
另外,电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。电子设备100可以接收按键190输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。电子设备100可以利用马达191产生振动提示(比如来电振动提示)。电子设备100中的指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。电子设备100中的SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。
应理解,在实际应用中,电子设备100可以包括比图1所示的更多或更少的部件,本申请实施例不作限定。图示电子设备100仅是一个范例,并且电子设备100可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的 硬件、软件、或硬件和软件的组合中实现。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备的软件结构。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。如图2所示,该软件架构可以分为四层,从上至下分别为应用程序层,应用程序框架层(framework,FWK),安卓运行时和系统库,以及Linux内核层。
应用程序层是操作系统的最上一层,包括操作系统的原生应用程序,例如相机、图库、日历、蓝牙、音乐、视频、信息等等。本申请实施例涉及的应用程序简称应用,为能够实现某项或多项特定功能的软件程序。通常,电子设备中可以安装多个应用。比如,相机应用、邮箱应用、智能家居控制应用等。下文中提到的应用,可以是电子设备出厂时已安装的系统应用,也可以是用户在使用电子设备的过程中从网络下载或从其他电子设备获取的第三方应用。
当然,对于开发者来说,开发者可以编写应用程序并安装到该层。一种可能的实现方式中,应用程序可以使用Java语言开发,通过调用应用程序框架层所提供的应用程序编程接口(Application Programming Interface,API)来完成,开发者可以通过应用程序框架来与操作系统的底层(例如内核层等)进行交互,开发自己的应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层可以包括一些预先定义的函数。应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括文件(例如文档、视频、图像、音频),文本等信息。
视图系统包括可视控件,例如显示文字、图片、文档等内容的控件等。视图系统可用于构建应用程序。显示窗口中的界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备的通信功能。通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。
安卓运行时包括核心库和虚拟机。安卓运行时负责安卓系统的调度和管理。
安卓系统的核心库包含两部分:一部分是Java语言需要调用的功能函数,另一部分是安卓系统的核心库。应用程序层和应用程序框架层运行在虚拟机中。以Java举例,虚拟机将应用程序层和应用程序框架层的Java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器,媒体库,三维图形处理库(例如:OpenGL ES),二维图形引擎(例如:SGL)等。表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了二维和三维图层的融合。媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4, H.564,MP3,AAC,AMR,JPG,PNG等。三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。二维图形引擎是二维绘图的绘图引擎。
内核(Kernel)层提供操作系统的核心系统服务,如安全性、内存管理、进程管理、网络协议栈和驱动模型等都基于内核层实现。内核层同时也作为硬件和软件栈之间的抽象层。该层有许多与电子设备相关的驱动程序,主要的驱动有:显示驱动;作为输入设备的键盘驱动;基于内存技术设备的Flash驱动;照相机驱动;音频驱动;蓝牙驱动;WiFi驱动等。
需要理解的是,如上所述的功能服务只是一种示例,在实际应用中,电子设备也可以按照其他因素来划分为更多或更少的功能服务,或者可以按照其他方式来划分各个服务的功能,或者也可以不划分功能服务,而是按照整体来工作。
需要说明的是,本申请实施例中,第一电子设备和第二电子设备均可以通过以上硬件架构和软件架构实现。
本申请实施例提供的方案可以由第一电子设备的一个进程服务和第二电子设备的一个进程服务完成。例如,第一电子设备中可以包括多屏分享服务来实现本申请提供的方案中由第一电子设备完成的功能。第二电子设备中也可以包括多屏分享服务来实现本申请提供的方案中由第二电子设备完成的功能。
其中,第一电子设备中的多屏分享服务可以由四个模块组成。如图3中所示,这四个模块分别为:
1)POI信息监听模块(PoiInfoListener)
POI信息监听模块用于监听和获取待分享内容的初始POI信息,并将初始POI信息发送到POI信息解析模块。
如图3中所示,POI信息监听模块可以进一步包括系统分享监听(ListenSystemShare)模块和剪切板监听(listenClipboard)模块。
2)POI信息解析模块(PoiInfoParser)
POI信息解析模块用于对来自POI信息监听模块的初始POI信息进行解析,获取待分享内容的详细配置信息,并将详细配置信息发送到POI信息重组模块。
如图3中所示,POI信息解析模块可以进一步包括POI信息过滤(FilterPoiInfo)模块、URL重定向(RedirectPoiUrl)模块和真实URL解析重建(ResetRealUriParams)模块。
3)显示屏信息获取模块(DisplayObtainer)
显示屏信息获取模块用于从第二电子设备获取第二电子设备的显示屏信息,并将显示屏信息发送到POI信息重组模块。
如图3中所示,显示屏信息获取模块可以包括获取当前显示屏信息(obtainCurrentDisplayInfos)模块。
4)POI信息重组模块(PoiInfoRestructer)
POI信息重组模块用于对来自POI信息解析模块和显示屏信息获取模块的信息进行重组等处理后得到分享指示信息,并将分享指示信息发送到第二电子设备,从而将待分享内容分享到第二电子设备。
如图3中所示,POI信息重组模块可以进一步包括信息接收(receiveInfo)模块、POI信息重建(restructPoiInfo)模块和POI信息发送(sendPoiInfo)模块。
第二电子设备中的多屏分享服务可以由两个模块组成。如图4中所示,这两个模块分 别为:
1)显示屏信息提供模块(DisplayProvider)
显示屏信息提供模块用于获取第二电子设备的显示屏信息,以使第一电子设备的显示屏信息获取模块能够从该显示屏信息提供模块获取第二电子设备的显示屏信息,或者该显示屏信息提供模块并发送到第一电子设备的显示屏信息获取模块。
如图4中所示,显示屏信息提供模块可以进一步包括显示屏信息获取(getDisplays)模块和显示屏信息发送(sendDisplayInfos)模块。可选的,显示屏信息提供模块还可以包括座位状态信息获取(getSeatStatus)模块。
2)POI命令执行模块(PoiInfoCmder)
POI命令执行模块用于接收来自第一电子设备的POI信息重组模块的分享指示信息,并根据该分享指示信息,在显示屏上显示第一电子设备分享的内容。
如图4中所示,POI命令执行模块可以进一步包括分享服务通知(notifyServiceShare)模块和分享服务执行(exeServiceShare)模块。
关于上述第一电子设备、第二电子设备中各模块的具体功能,下文中会结合具体实施例进行说明,这里暂不详述。
需要说明的是,图3、图4所示的模块组成仅为本申请实施例中第一电子设备、第二电子设备的进程服务的一种实现方式。实际应用中,第一电子设备、第二电子设备的进程服务的组成还可以采用其它实现方式例如包括更多或更少的模块等,本申请实施例中不进行具体限定。
下面结合具体实施例,对本申请实施例提供的方案进行说明。
本申请实施例提供的方案的执行过程主要可以分为三个阶段,分别为第一电子设备获取待分享内容的详细配置信息、第一电子设备获取第二电子设备的显示屏信息、第一电子设备整合所述详细配置信息和所述显示屏信息后分享至第二电子设备。下面分别对各个阶段进行详细说明。
一、第一电子设备获取待分享内容的详细配置信息
本申请实施例中,第一电子设备分享到第二电子设备的内容可以是第一电子设备中的任意服务内容,例如第一电子设备的应用服务或应用内容,即第一电子设备中安装的应用(application,APP)所提供的服务或内容。
下文中以第一电子设备将应用服务分享至第二电子设备为例进行说明。
本申请实施例中,用户可以通过对第一电子设备进行控制,将第一电子设备的应用服务分享至第二电子设备的任意显示屏进行显示,且第二电子设备可以接续提供服务。其中,第二电子设备中安装有第一电子设备分享的应用服务所属的应用。
在本申请一些实施例中,第一电子设备中的分享操作可以通过以下两种方式实现:
方式1、系统分享方式
该方式中,当用户选择分享某一应用服务、且该应用服务所属的应用注册了系统分享功能时,第一电子设备可以直接显示其它应用的图标,以供用户从中选择需要分享到的目标应用。用户选择目标应用后,第一电子设备可以生成分享的应用服务的链接并发送到目标应用。其中,该链接用于在目标应用或其它应用中打开分享的应用服务。
例如,如图5中的(a)示意图所示,第一电子设备中的视频应用在播放视频时,第一 电子设备的显示屏上显示视频播放的界面,用户在需要分享当前视频服务时,可以选择分享的控件图标来触发分享流程,第一电子设备响应于用户触发分享的操作,可以显示如图5中的(b)示意图所示的界面,该界面中包含其它应用(如应用A、应用B)的图标控件,用户可以从中选择目标应用。用户选择目标应用后,第一电子设备可以在目标应用中发送当前视频服务的链接。
方式2、复制粘贴分享方式
该方式中,当用户选择分享某一应用服务时,可以选择复制该应用服务的链接,第一电子设备响应于用户复制链接的操作,获取该应用服务对应的链接后缓存在剪切板,则用户打开其它应用后可以选择粘贴该链接的方式进行应用服务的分享。其中,该链接用于在目标应用或其它应用中打开分享的应用服务。
例如,如图5中的(a)示意图所示,用户在需要分享当前视频时,可以选择分享的控件图标来触发分享流程,则第一电子设备可以显示如图5中的(b)示意图所示的界面,该界面中包含“复制链接”的选项控件,用户可以通过选择“复制链接”的选项控件,使第一电子设备获取视频应用生成的该视频服务的链接并缓存在剪切板。
在本申请一些实施例中,第一电子设备分享的应用服务的链接可以为以下任一种格式:图片格式、文本格式、图文格式、卡片格式。
例如,在采用上述方式1所述的分享方式时,第一电子设备生成的视频服务的链接可以为图6中所示的卡片格式的链接1。再例如,在采用上述方式2所述的分享方式时,第一电子设备生成的视频服务的链接可以为图6中所示的文字格式的链接2。
基于上述的两种分享方式,第一电子设备可以监听用户控制第一电子设备进行分享的操作,并获取待分享的应用服务的初始POI信息。其中,初始POI信息可以为待分享的应用服务所属的应用生成的该应用服务的链接,例如图6中所示的链接。
具体的,如果第一电子设备中的应用注册了系统分享功能,则该应用有权限使用上述方式1所述的系统分享方式,否则,该应用无权限使用上述方式1所述的系统分享方式,只能使用上述方式2所述的分享方式。如果第一电子设备中的应用注册了系统分享功能,则第一电子设备可以通过监听系统分享内容的方式,获取从该应用分享的应用服务的初始POI信息。如果第一电子设备中的应用未注册系统分享,则第一电子设备可以通过监听剪切板内容的方式,获取从该应用分享的应用服务的初始POI信息。
示例性的,上述获取应用服务的初始POI信息的过程可以由图3中所示的POI信息监听模块中的系统分享监听模块或剪切板监听模块完成。在获取到应用服务的初始POI信息后,POI信息监听模块将该POI信息发送到POI信息解析模块进行解析。
在获取待分享的应用服务的初始POI信息后,第一电子设备可以根据该初始POI信息,解析得到所述应用服务的详细配置信息。基于详细配置信息,应用服务的接收端可以确定应用服务的来源、类型、格式、服务进度等相关的配置,进而可以获取应用服务的内容并接续显示和运行该应用服务。基于此,应用服务的接收端可以直接跳转到应用服务所属的应用中打开并运行该应用服务。
在本申请一些实施例中,应用服务的详细配置信息包括该应用服务的地址指示信息和分享参数信息。其中,地址指示信息为应用服务的真实schema地址,即应用服务的真实跳转地址。相比POI信息,根据真实schema地址可以直接跳转到应用服务的相应界面,可以避免根据POI信息进行多次跳转的情况。分享参数信息用于指示应用服务的特征信息, 特征信息例如可以包括应用服务的来源、类型、格式、内容等信息。
参照图7,第一电子设备解析得到应用服务的详细配置信息的过程可以包括:
S701:第一电子设备获取应用服务的初始POI信息。
具体实施方式可参照上述实施例中的介绍。
S702:第一电子设备对所述初始POI信息进行字符串模式匹配,获取所述应用服务的服务信息和服务URL。
第一电子设备可以将所述初始POI信息与设定的多种模式的字符串进行匹配,从而识别初始POI信息中各个字段的含义。匹配后的初始POI信息可以分为服务信息与服务URL两部分。其中,服务信息用于指示应用服务的具体内容,例如应用服务的来源、类型、简单参数信息等,服务URL表示所述应用服务提供的可供浏览器打开的地址。
示例性的,该步骤可以由图3中所示的POI信息过滤模块完成,POI信息过滤模块可以将匹配后初始POI信息的服务URL发送到URL重定向模块进行处理。
S703:第一电子设备确定是否对所述服务URL进行URL重定向;若是,则执行步骤S704,否则,执行步骤S708。
第一电子设备获取上述服务URL后,若确定该服务URL指示的地址即为应用服务真实的、原始的地址,无法再进行URL重定向,则确定不进行URL重定向,否则,确定进行URL重定向。
S704:第一电子设备通过对所述服务URL进行重定向,获取所述应用服务的真实schema地址和至少一个请求参数。
第一电子设备可以对所述服务URL进行重定向处理,直至无法再进行重定向时停止。然后模拟网络连接获取fetch请求对象,再从fetch请求对象的请求体中获取请求头(header)信息,从请求头信息中获取应用服务的源schema地址;以及,从fetch请求对象的请求体中获取至少一个请求参数。其中,请求参数为不定量参数,所述至少一个请求参数中存在用于指示服务信息对应的唯一标识(ID)的一个或多个请求参数,服务信息对应的唯一标识可以用于打开该服务信息对应的应用服务。
示例性的,上述步骤S703~S704可以由图3中所示的URL重定向模块完成,URL重定向模块获取真实schema地址和请求参数后,将真实schema地址发送到POI信息重组模块进行处理,将请求参数发送到真实URL解析重建模块进行处理。
S705:第一电子设备确定所述至少一个请求参数是否进行了URL编码;若是,执行步骤S706,否则,执行步骤S708。
S706:第一电子设备对所述至少一个请求参数中进行了URL编码的请求参数进行解码,得到解码后的请求参数。并执行步骤S707。
S707:第一电子设备对所有请求参数进行编码和拼接,得到目标请求参数。并执行步骤S708。
在步骤S706~S707中,第一电子设备可以对需要解码的请求参数进行解码。在获取到解码后的所有请求参数后再进行统一的编码和拼接,得到目标请求参数。
示例性的,步骤S706~S707可以由图3中所示的真实URL解析重建模块完成,真实URL解析重建模块获得目标请求参数后,将目标请求参数发送到POI信息重组模块进行处理。
S708:第一电子设备得到所述应用服务的详细配置信息。
其中,所述详细配置信息包括所述应用服务的真实schema地址和分享参数信息,所述分享参数信息可以包含服务信息、目标请求参数。
基于上述方式,第一电子设备能够获取到可以用于直接跳转到应用服务界面的详细配置信息,在向第二电子设备分享应用服务时,可以将该应用服务的详细配置信息发送至第二电子设备,使得第二电子设备可以简便快速的打开应用服务并进行显示,从而提高分享内容的效率和使用体验。
二、第一电子设备获取第二电子设备的显示屏信息
本申请实施例中,第一电子设备和第二电子设备建立通信连接后,第二电子设备可以实时监测第二电子设备的各个显示屏的状态,并可以将各个显示屏的信息上报至第一电子设备。
示例性的,第二电子设备的显示屏信息提供模块可以与第一电子设备的显示屏信息获取模块进行交互,从而使第一电子设备获取第二电子设备的显示屏信息。例如,第二电子设备的显示屏信息提供模块可以在获取显示屏信息后主动将显示屏信息发送至第一电子设备的显示屏信息获取模块。第二电子设备的显示屏信息提供模块也可以在接收到来自第一电子设备的显示屏信息获取模块的信息上报指示后,再将获取到的显示屏信息发送至第一电子设备的显示屏信息获取模块。其中,第一电子设备可以在需要向用户显示显示屏的相关信息时,通过显示屏信息获取模块向第二电子设备的显示屏信息提供模块发送信息上报指示,以使第二电子设备的显示屏信息提供模块上报第二电子设备的显示屏信息。
在本申请一些实施例中,第二电子设备的显示屏信息包括第二电子设备的至少一个显示屏的信息。其中,每个显示屏的信息至少包括显示屏的标识信息(displayID),还可以包括显示屏的状态信息(displaystatus)。
其中,显示屏的标识信息可以为预设的标识、显示屏的位置信息等。显示屏的状态信息用于指示显示屏是否可用。在本申请一些实施例中,第二电子设备可以根据显示屏是否解锁确定显示屏是否可用,从而确定显示屏的状态信息。当第二电子设备确定显示屏已解锁时,可以确定显示屏可用,否则确定显示屏不可用。或者,第二电子设备可以根据显示屏是否亮屏确定显示屏是否可用,当确定显示屏处于亮屏状态时,可以确定显示屏可用,否则确定显示屏不可用。可选的,第二电子设备还可以进一步结合显示屏是否解锁以及显示屏是否亮屏确定显示屏是否可用,当确定显示屏已解锁且处于亮屏状态时,可以确定显示屏可用,否则确定显示屏不可用。
可选的,第二电子设备的显示屏可用时,第一电子设备可以选择分享内容至该显示屏,否则,第一电子设备可以不选择分享内容至该显示屏。
示例性的,上述显示屏信息的获取过程可以由图4中所示的显示屏信息获取模块完成,显示屏信息获取模块获取显示屏信息后,将显示屏信息发送到显示屏信息发送模块。
在本申请一些实施例中,第二电子设备在上报显示屏信息时,还可以同时上报用于指示是否存在可能使用显示屏的用户的信息。例如,第二电子设备应用于车辆中时,第二电子设备的显示屏可以对应车辆座舱中的不同座位进行安装设置。则第二电子设备除向第一电子设备上报显示屏的信息之外,还可以向第一电子设备上报每个显示屏对应的座位状态信息。其中,每个显示屏对应的座位状态信息用于指示该显示屏对应的座位上是否有乘客。若显示屏对应的座位上有乘客,则存在可能使用该显示屏的用户。基于此,第一电子设备 侧可以选择向对应的座位上有乘客的显示屏分享内容。
例如,如图8中所示,车辆座舱内具有前排左侧座位(驾驶位)、前排右侧座位(副驾驶位)、后排左侧座位、后排右侧座位共四个座位。第二电子设备具有两个显示屏时,这两个显示屏可以分别设置在后排左侧座位的前面和后排右侧座位的前面,如图8中所示的显示屏1和显示屏2。显示屏1和显示屏2可以分别供后排左侧座位上的乘客和后排右侧座位上的乘客使用。当后排左侧座位上有乘客、后排右侧座位上无乘客时,第二电子设备上报显示屏1的信息时同时上报显示屏1对应的座位状态信息为座位上有乘客,上报显示屏2的信息时同时上报显示屏2对应的座位状态信息为座位上无乘客。
其中,第二电子设备可以利用座舱内的座位传感器确定座位上是否有乘客,并生成对应的座位状态信息。
作为一种可选的实施方式,第二电子设备可以将所有显示屏的信息和显示屏对应的座位状态信息上报到第一电子设备。
作为另一种可选的实施方式,第二电子设备可以在监测各显示屏和座位的状态后,选择有乘客的座位对应的显示屏的信息和座位状态信息上报至第一电子设备。可选的,该方式可以在用户设置了“只显示座位上有乘客的显示屏的信息”的情况下执行。
示例性的,上述座位状态信息的获取过程可以由图4中所示的座位状态信息获取模块完成,座位状态信息获取模块获取显示屏对应的座位状态信息后,将座位状态信息发送到显示屏信息发送模块。
显示屏信息发送模块可以将来自显示屏信息获取模块的显示屏信息发送到第一电子设备,也可以对来自显示屏信息获取模块的显示屏信息和来自座位状态信息获取模块的信息进行整合后,再发送到第一电子设备。
在本申请一些实施例中,第二电子设备可以将监测得到的显示屏信息和座位状态信息实时上报至第一电子设备,也可以在任一显示屏对应的信息发生变化后,将发生变化的显示屏对应的信息上报至第一电子设备,或将最新的多个显示屏对应的信息上报至第一电子设备,还可以每隔一段时间或者周期性将监测得到的显示屏信息和座位状态信息上报至第一电子设备。或者,第二电子设备也可以在接收到第一电子设备的指示后,再将当前的显示屏信息上报至第一电子设备,基于此,第一电子设备可以自主调用第二电子设备监测的显示屏信息。
第一电子设备在获取来自第二电子设备的显示屏信息和/或座位状态信息后,可以在用户选择分享内容时,将获取到的第二电子设备的显示屏信息在应用前台可视化,以供用户进一步选择需要分享内容的显示屏。
在本申请一些实施例中,第一电子设备也可以在用户选择分享内容时,再通过上述过程获取来自第二电子设备的显示屏信息和/或座位状态信息,然后将获取到的第二电子设备的显示屏信息在应用前台可视化,以供用户进一步选择需要分享内容的显示屏。
例如,基于上述图5中的(a)示意图所示的分享场景,当第二电子设备应用于车辆座舱时,第一电子设备可以在图5中的(b)示意图所示的分享界面中增加显示第二电子设备的显示屏信息,则在用户触发分享内容的流程时,第一电子设备可以显示如图9a或图9b中所示的界面。
其中,图9a所示的界面中直接示出了车辆座舱中的各个显示屏对应的座位的选项控件,则用户可以直接从中选择座位的选项控件,来指示将应用服务分享至该座位对应的显示屏。
图9b中的(a)示意图所示的界面中包括“车辆座舱”的选项控件,用户可以选择该“车辆座舱”的选项控件,来选择将应用服务分享至车辆座舱中的显示屏。当用户选择“车辆座舱”的选项控件后,第一电子设备可以进一步显示图9b中的(b)示意图所示的次级界面,该次级界面中包括车辆座舱中各显示屏的信息,以便用户进一步选择分享应用服务的显示屏。例如,如图9b中(b)示意图所示,次级界面中包括车辆座舱中四个显示屏的信息,分别为中控屏、副驾屏、后排左屏和后排右屏。其中,中控屏用于对车辆座舱进行控制,可以供驾驶位乘客使用。副驾屏可以供副驾驶位上的乘客使用,后排左屏可以供后排左侧座位上的乘客使用,后排右屏可以供后排右侧座位上的乘客使用。用户可以通过选择显示屏对应座位的选项控件的方式,选择将应用服务分享到车辆座舱中的显示屏。
作为一种可选的实施方式,第一电子设备显示第二电子设备的显示屏信息时,可以显示第二电子设备的所有显示屏对应的操作选项,例如如图9b中(b)示意图所示的显示方式。其中,当某些显示屏不可用时,第一电子设备可以将这些显示屏对应的操作选项设置为不可选模式,仅将可用的显示屏对应的操作选项设置为可选模式。例如如图9b中的(b)示意图中所示,当中控屏和副驾屏不可用、后排左屏和后排右屏可用时,第一电子设备可以将后排左屏、后排右屏显示为与中控屏、副驾屏不同的模式,以使用户进行区分。
作为另一种可选的实施方式,第一电子设备可以仅显示第二电子设备可用的显示屏对应的操作选项。例如,第一电子设备可在显示界面中仅显示图9b中的(b)示意图中所示的后排左屏和后排右屏的操作选项。
基于以上第一部分和第二部分的内容,第一电子设备可以获取到应用服务的详细配置信息,并可以根据用户指示确定需要将应用服务分享到第二电子设备的哪些显示屏,进而可以将应用服务分享到对应的显示屏。
需要说明的是,上述第一部分内容和第二部分内容中的部分方法的实施过程并无严格的时序限制,例如应用服务的详细配置信息的获取过程和第二电子设备的显示屏信息的获取过程可以是并行执行的,也可以是任一过程先执行,本申请实施例中不做具体限制。
三、第一电子设备整合详细配置信息和显示屏信息后分享至第二电子设备
在用户选择要分享的第二电子设备的显示屏后,第一电子设备可以生成对应的目标显示屏信息来指示用户所选择的显示屏。并将目标显示屏信息与待分享的应用服务的详细配置信息进行重组,得到分享指示信息。
具体的,第一电子设备可以将详细配置信息中的真实schema地址与目标请求参数进行二次拼接,构建成真实的应用服务跳转地址,并对该地址、目标显示屏信息和服务信息进行封装和序列化,得到所述分享指示信息。
示例性的,上述生成分享指示信息的过程可以由图3中所示的POI信息重建模块完成,信息接收模块可以用于接收来自其它模块的目标显示屏信息、应用服务的详细配置信息等信息,并将这些信息发送到POI信息重建模块。POI信息重建模块生成分享指示信息后,可以将分享指示信息发送到POI信息发送模块,POI信息发送模块将分享指示信息发送到第二电子设备。
第一电子设备生成分享指示信息后,将分享指示信息发送到第二电子设备,第二电子设备接收到分享指示信息后,可以根据分享指示信息,在对应的显示屏上显示第一电子设备所分享的内容,从而将第一电子设备的应用服务接续到第二电子设备的显示屏上运行。
在本申请一些实施例中,第一电子设备在确定要分享内容至第二电子设备的哪些显示屏后,或者在将分享指示信息发送到第二电子设备后,可以继续执行分享应用服务前的进程。例如,第一电子设备显示上述图9a或图9b所述的界面并根据用户操作确定用户所选的显示屏后,可以继续显示图5中的(a)示意图所示的界面,并继续播放视频。同时,第一电子设备生成上述分享指示信息并发送至第二电子设备。
在本申请一些实施例中,第二电子设备接收到来自第一电子设备的分享指示信息后,根据该分享指示信息确定目标显示屏信息,进而确定用户期望将第一电子设备的应用服务分享到哪些显示屏。第二电子设备确定目标显示屏信息所指示的目标显示屏后,作为一种可选的实施方式,第二电子设备可以直接在目标显示屏中显示第一电子设备分享的应用服务。第二电子设备在目标显示屏中显示第一电子设备分享的应用服务后,也可以根据用户操作关闭该应用服务,则第二电子设备可以在目标显示屏继续显示原本所显示的内容或其它内容。作为另一种可选的实施方式,第二电子设备可以在目标显示屏中显示提示信息,该提示信息用于提示使用所述目标显示屏的用户第一电子设备分享内容至该显示屏,还用于询问使用所述目标显示屏的用户是否接受第一电子设备分享的应用服务。当使用目标显示屏的用户确定接受第一电子设备分享的应用服务时,第二电子设备再在目标显示屏显示第一电子设备分享的应用服务。
示例性的,上述提示过程可以由图4中所示的分享服务通知模块完成。
当用户选择接受第一电子设备分享的应用服务时,第二电子设备可以根据分享指示信息确定应用服务的详细配置信息,并根据应用服务的详细配置信息获取应用服务,在目标显示屏显示该应用服务,并接续运行该应用服务。
示例性的,上述过程可以由图4中所示的分享服务执行模块完成。
在一种可能的情况中,当第二电子设备应用于座舱中时,第二电子设备的至少一个显示屏的管理方式可以采用多用户机制。即第二电子设备的每个显示屏分别对应一个用户,每个显示屏均受对应的用户的控制。基于此,第一电子设备将应用服务分享到一个或多个显示屏后,各个显示屏可以根据对应用户的控制进行不同的处理和显示不同的内容,从而实现不同显示屏之间独立的应用服务分享和控制。具体的,第二电子设备可以将分享指示信息中包含的、应用服务的真实schema地址绑定在intent上,并通过intent启动接续服务。
在另一种可能的情况中,当第二电子设备应用于座舱中时,第二电子设备的至少一个显示屏的管理方式可以采用多屏机制。即第二电子设备的至少一个显示屏可以对应一个用户,并受该用户的控制。其中,所述至少一个显示屏中可以存在一个显示屏作为主屏。示例性的,主屏可以为分享指示信息中包含的目标显示屏信息所指示的一个目标显示屏,该分享指示信息仅控制主屏中的分享内容的显示。具体的,第二电子设备可以将分享指示信息中包含的、应用服务的真实schema地址绑定在intent上,同时将主屏的标识信息添加到intent,再通过intent启动接续服务。除主屏之外的其它显示屏中可以不显示内容,或者可以显示与主屏相同的内容,或者显示与主屏不同的内容,本申请实施例中不做具体限定。
示例性的,基于图5中的(a)示意图所示的视频服务界面,当第一电子设备将该视频服务分享至第二电子设备的显示屏时,第二电子设备的显示屏可以在当前显示界面(任一正在显示的界面,例如图10a中所示的桌面界面)中显示如图10a中所示的通知信息,已提示使用该显示屏的用户确定是否接受第一电子设备分享的视频服务。当用户未选择接受第一电子设备分享的视频服务(例如用户点击该通知信息的区域)时,第二电子设备可以 不进行额外处理,继续显示当前界面。当用户选择接受第一电子设备分享的视频服务时,第二电子设备可以在获取该视频服务后,直接显示图10b中所示的视频服务界面,该视频服务界面显示的内容与第二电子设备分享的视频服务的内容相同,即与图5中的(a)示意图所示的界面中的内容相同,均为视频应用中播放视频的界面,且播放的视频的进度等信息一致。可选的,上述场景中,当第一电子设备将视频服务分享至第二电子设备的显示屏时,第二电子设备也可以在获取该视频服务后,直接显示图10b中所示的视频服务界面。上述第二电子设备显示图10b所示的视频服务界面后,第一电子设备和第二电子设备均可以根据对应用户的指示继续进行视频的播放或其它处理,且第一电子设备与第二电子设备之间互不干扰,独立执行相应处理。例如,第二电子设备显示图10b所示的视频服务界面后,第一电子设备、第二电子设备分别通过自身视频应用对应的视频服务播放视频。当用户通过对第二电子设备进行操作,控制该视频的播放速度(如倍速播放)时,第二电子设备可以响应于用户进行的操作,调整该视频的播放速度,而第一电子设备侧仍然按照正常速度播放视频。
下面结合具体实例,对本申请实施例提供的方案进行介绍。
本实例中以第一电子设备为手机、第二电子设备为配备多个显示屏的智能座舱为例,结合手机将第三方应用的应用服务分享至智能座舱中的显示屏的场景进行方案介绍。在该场景中,第一电子设备和第二电子设备中均安装有相同的第三方应用。第一电子设备中用于完成本申请实施例提供的方案的多屏分享服务可以分为分享监听服务(SystemShare/Clipboard Listen Service)和移动端分享服务(MobileShare Service),其中,分享监听服务用于获取应用服务的详细配置信息和从智能座舱获取座舱中显示屏的信息,移动端分享服务用于根据监听服务获取的信息,将应用服务分享到智能座舱的显示屏。智能座舱中用于完成本申请实施例提供的方案的多屏分享服务可以分为显示屏监控服务(Displays Get Service)和座舱端分享服务(CockpitShare Service),其中,显示屏监控服务用于监控智能座舱中显示屏的状态,座舱端分享服务用户接收、显示和接续运行手机分享来的应用服务。
示例性的,上述智能座舱可以是图8中所示的座舱,该智能座舱中后排左侧座位和后排右侧座位分别配备对应的显示屏,即显示屏1和显示屏2。上述手机可以为该智能座舱中副驾驶位的乘客携带和使用的手机。当副驾驶位的乘客打开手机中某一应用并希望将该应用的服务共享给后排左侧座位或后排右侧座位的乘客时,可以采用本申请实施例提供的方法将应用服务分享至显示屏1和显示屏2上进行显示,则后排左侧座位和后排右侧座位上的乘客可以通过面前的显示屏方便快速的查看和使用驾驶位乘客所分享的应用服务。
参照图11,基于以上场景,本申请实施例提供的分享内容的方法的流程可以包括:
S1101:第三方应用提供应用服务。
在用户打开第一电子设备中的第三方应用后,所述第三方应用为所述用户提供应用服务。
例如,智能座舱中驾驶位的乘客在手机中打开某个美食应用并搜到一个餐厅A时,手机可以显示如图12中所示的第一界面,即应用服务的界面,该界面中展示了餐厅A的具体信息。当驾驶位的乘客希望将当前应用服务(界面)分享给后排座位的乘客查看时,可以点击图12所示的第一界面中的“分享控件”,来触发分享流程。
S1102:分享监听服务获取应用服务的初始POI信息。
当监听到用户对所述应用服务进行分享的操作时,手机的分享监听服务通过监听系统分享内容或剪切板内容的方式,获取所述应用服务的初始POI信息。
S1103:分享监听服务根据所述初始POI信息获取所述应用服务的详细配置信息。
S1104:分享监听服务指示显示屏监控服务上报智能座舱的显示屏信息。
可选的,当监听到用户对所述应用服务进行分享的操作时,手机的分享监听服务可以指示智能座舱的显示屏监控服务上报智能座舱的显示屏信息。
S1105:显示屏监控服务向分享监听服务上报智能座舱的显示屏信息。
智能座舱的显示屏监控服务根据手机的分享监听服务的指示,将监控得到的智能座舱的显示屏信息发送给手机的分享监听服务。
S1106:分享监听服务将智能座舱的显示屏信息显示给用户。
分享监听服务将智能座舱的显示屏对应的选项空间显示给用户,以使用户从中选择需要分享应用服务的显示屏。
例如,当用户点击图12所示的第一界面中的“分享控件”触发分享流程后,手机可以显示图12中所示的第二界面,该界面中包括“复制链接”的选项控件,用户通过对该选项控件进行操作可以触发手机显示图12中所示的第三界面,该界面中包括对应车辆座舱中的不同显示屏的选项控件,则用户可以直接从中选择显示屏的选项控件,来指示将应用服务分享至对应的显示屏。
S1107:分享监听服务根据用户的反馈确定分享应用服务的目标显示屏。
S1108:分享监听服务将应用服务的详细配置信息、目标显示屏的信息发送到移动端分享服务。
S1109:移动端分享服务根据应用服务的详细配置信息、目标显示屏的信息生成分享指示信息。
其中,分享指示信息用于指示智能座舱根据应用服务的详细配置信息获取应用服务后,在目标显示屏显示和运行应用服务。
S1110:移动端分享服务将分享指示信息发送到座舱端分享服务。
S1111:座舱分享服务在目标显示屏显示提示信息,以提示用户确认是否接受手机分享的应用服务。
例如,座舱分享服务可以在目标显示屏当前显示界面中增加提示信息如图13所示的界面中的提示信息,该提示信息用于提示使用该显示屏的用户确定是否接受第一电子设备分享的应用服务。
S1112:当用户确认接受手机分享的应用服务时,座舱分享服务根据分享指示信息获取应用服务以及目标显示屏的信息。
S1113:座舱分享服务在目标显示屏启动第三方应用,并控制第三方应用显示和运行所述应用服务。
S1114:第三方应用显示和运行所述应用服务。
其中,第三方应用显示和运行所述应用服务后,目标显示屏中的内容更新为所述应用服务对应界面中的任务。
例如,第三方应用可以控制显示图14中所示的界面,该界面为手机分享的应用服务的界面,与图12中所示的第一界面中包含的内容相同。对于用户来说,目标显示屏显示 的内容从图13中所示的界面直接跳转至图14中所示的界面,因此可以实现手机中的内容无缝流转至座舱的显示屏中进行显示,提升了交互体验感。
需要说明的是,上述实例提供的具体实施流程,仅是对本申请实施例适用方法流程的举例说明,且具体执行可参照上述实施例中的介绍。此外,上述各步骤的执行顺序可根据实际需求进行相应调整,还可以增加其它步骤,或减少部分步骤等。例如,上述步骤S1104~S1107也可以早于步骤S1102~S1103执行,或者与步骤S1102~S1103同步执行。
上述实施例中,用户在智能座舱内可以将移动端设备上第三方应用的服务无缝分享至智能座舱中的显示屏上,能够使智能座舱内其他的用户可以简便快捷的共享服务内容。同时,服务共享过程中不需要第三方应用和座舱端进行适配修改,对移动端设备、座舱端设备和第三方应用的原有框架均不会造成影响,因此该方案的可实施性较强,能够得到良好的使用体验。
基于以上实施例及相同构思,本申请实施例还提供一种分享内容的方法,应用于第一电子设备,如图15所示,该方法包括:
S1501:第一电子设备响应于接收到的第一操作,获取第一分享信息;其中,所述第一电子设备包含第一应用,所述第一操作用于指示将所述第一应用中的目标内容分享至第二电子设备的至少一个显示屏,所述第一分享信息用于指示所述第一应用及所述目标内容。
本申请实施例中,第一电子设备可以调用第一应用显示目标内容,并可以在与第二电子设备建立通信连接后,根据用户的操作将目标内容分享至第二电子设备。
在本申请一些实施例中,第一电子设备接收第一操作之前,可以先确定第二电子设备的显示屏的信息,并在接收第一操作的过程中显示给用户;或者,第一电子设备可以在接收第一操作的过程中确定第二电子设备的显示屏的信息,并显示给用户。例如,在接收第一操作的过程中,第一电子设备可以在接收到用户触发分享目标内容的子操作后,从第二电子设备获取第二电子设备的显示屏的信息,然后显示给用户,再基于用户选择显示屏的子操作确定所述至少一个显示屏,从而完成第一操作的接收和对应的分享信息的获取。
第一电子设备可以根据来自第二电子设备的第一指示信息确定第二电子设备的显示屏的信息,其中,第一指示信息用于指示所述第二电子设备的多个显示屏。示例性的,所述第一指示信息可以为图9a或图9b中的(b)示意图中所示的多个显示屏的选项控件。
可选的,第一指示信息还用于指示所述第二电子设备的多个显示屏的状态,其中,显示屏的状态包括已解锁和未解锁,还可以包括上述实施例中所述的亮屏和息屏。
在本申请一些实施例中,第一电子设备接收到的第一操作包括第二操作和第三操作,其中,第二操作用于指示分享所述目标内容,第三操作用于在第二电子设备的多个显示屏中选择所述至少一个显示屏。则第一电子设备接收所述第一操作的过程可以包括:第一电子设备接收第二操作;所述第一电子设备响应于第二操作,显示第二指示信息,然后再接收第三操作。其中,第二指示信息用于指示所述多个显示屏。可选的,第一电子设备在显示第二指示信息之前,可以先确定第二电子设备的多个显示屏为已解锁状态或亮屏状态,从而保证使用户在可用的显示屏中选择需分享内容的显示屏。
示例性的,第一应用中的目标内容可以为上述实施例中所述的应用服务,即目标内容为第一应用所提供的应用服务。则第二操作可以为上述实施例中用户采用系统分享方式或复制粘贴分享方式所进行的分享目标内容的操作,第三操作可以为用户在第二电子设备的 多个显示屏中选择至少一个显示屏的操作。例如,第二操作可以为用户点击图5中的(a)示意图中所示的分享的控件图标的操作,第一电子设备接收到该操作后,可以显示图9a所示的界面,则图9a所示界面中多个显示屏对应的选项控件即为第二指示信息,第三操作为用户在图9a所示的多个显示屏中选择至少一个显示屏的操作。
在本申请一些实施例中,第一电子设备接收到第一操作后,可以先获取第二分享信息,再根据第二分享信息获取第一分享信息。其中,所述第二分享信息用于指示所述第一应用生成的所述目标内容的分享链接。
示例性的,第二分享信息可以为上述实施例中所述的初始POI信息,即第一应用生成的应用服务的链接。例如,第二分享信息可以为图6中所示的链接1或链接2。示例性的,第一分享信息可以为上述实施例中所述的详细配置信息,根据该信息可以直接定位到目标内容,从而调用第一应用显示目标内容。
第一电子设备在根据第二分享信息确定第一分享信息时,可以先对第二分享信息进行字符串匹配,得到所述目标内容的内容指示信息和第一地址信息;再根据所述内容指示信息和所述第一地址信息,确定所述第一分享信息。其中,所述内容指示信息用于指示所述目标内容,所述第一地址信息用于确定获取所述目标内容的地址。可选的,所述第一地址信息为统一资源定位符。
示例性的,所述内容指示信息可以为上述实施例中的分享参数信息,根据该信息可以确定目标内容的具体内容。所述第一地址信息可以为上述实施例中的服务URL。
在本申请一些实施例中,作为一种可选的实施方式,第一电子设备可以将所述内容指示信息和所述第一地址信息作为所述第一分享信息。例如,当第一地址信息为上述的服务URL时,若无法对该URL进行进一步的重定向处理,则可以确定该URL即为目标内容的真实源地址,则可以直接将内容指示信息和第一地址信息作为第一分享信息。
作为另一种可选的实施方式,第一电子设备可以对所述第一地址信息进行重定向,得到第二地址信息,并将所述内容指示信息和所述第二地址信息作为所述第一分享信息。其中,所述第二地址信息用于指示获取所述目标内容的地址。例如,当第一地址信息为上述的服务URL时,若能够对该URL进行进一步的重定向处理,则可以对该URL进行重定向处理,得到目标内容的真实源地址即真实schema地址,然后将内容指示信息和重定向之后得到的第二地址信息作为第一分享信息。
S1502:所述第一电子设备向所述第二电子设备发送所述第一分享信息和目标显示屏信息;其中,所述目标显示屏信息用于指示所述至少一个显示屏。
第一电子设备向第二电子设备发送第一分享信息和目标显示屏信息后,可以使第二电子设备根据第一分享信息和目标显示屏信息,进行目标内容的显示。
在本申请一些实施例中,第一电子设备可以对第一分享信息和目标显示屏信息进行整合后再发送至第二电子设备。示例性的,目标显示屏信息可以为上述实施例中所述的显示屏信息。对第一分享信息和目标显示屏信息进行整合后得到的信息可以为上述实施例中所述的分享指示信息。
在本申请一些实施例中,第一电子设备向第二电子设备发送第一分享信息和目标显示屏信息后,可以继续执行分享目标内容前的进程,例如继续显示目标内容等。并且,第一电子设备可以根据用户的操作执行相应的进程。例如,用户控制更新目标内容时,第一电子设备可以响应于用户进行的第四操作,更新所述目标内容。
基于以上实施例及相同构思,本申请实施例还提供一种分享内容的方法,应用于第二电子设备,如图16所示,该方法包括:
S1601:第二电子设备接收来自第一电子设备的第一分享信息和目标显示屏信息;其中,所述第二电子设备包含第一应用,所述第一分享信息用于指示所述第一应用及所述第一应用中的目标内容,所述目标显示屏信息用于指示所述第二电子设备的至少一个显示屏。
本申请实施例中,第二电子设备和第一电子设备建立通信连接后,可以接受第一电子设备分享的目标内容并进行显示。
在本申请一些实施例中,第二电子设备具有多个显示屏,在接受第一电子设备分享的目标内容之前,第二电子设备可以通过向第一电子设备发送第一指示信息,将第二电子设备的多个显示屏的信息指示给第一电子设备,以便第一电子设备侧从多个显示屏中选择需要分享目标内容的至少一个显示屏。该方法具体可参照上述实施例中的介绍,此处不再赘述。
S1602:所述第二电子设备根据所述第一分享信息,确定所述第一应用并获取所述目标内容,以及,根据所述目标显示屏信息,确定所述至少一个显示屏。
本申请实施例中,第一分享信息中包括地址信息(第一地址信息或第二地址信息)和内容指示信息,则第二电子设备可以根据地址信息定位到目标内容的地址,根据内容指示信息从该地址获取目标内容的详细内容,从而调用第一应用对目标内容进行显示。根据目标显示屏信息,第二电子设备可以确定在哪些显示屏中显示目标内容。因此,基于第一分享信息和目标显示屏信息,第二电子设备可以自行获取和显示目标内容,实现第一电子设备至第二电子设备的内容分享效果。
S1603:所述第二电子设备通过调用所述第一应用,分别在所述至少一个显示屏中显示所述目标内容。
在本申请一些实施例中,第二电子设备在至少一个显示屏显示第一电子设备分享来的目标内容后,可以独立进行后续的各种处理流程,例如继续显示目标内容、对目标内容进行更新、显示其它内容等。示例性的,第二电子设备可以响应于用户进行的第五操作,更新目标显示屏中显示的目标内容;其中,目标显示屏为所述至少一个显示屏中的任一个显示屏。例如,目标内容为视频服务时,第五操作可以是上述实施例中所述的控制视频播放速度的操作,则第二电子设备可以根据该操作调整播放视频的速度。
在本申请一些实施例中,上述步骤S1601~S1603可以在上述步骤S1503之后执行,基于此,第一电子设备与第二电子设备可以协同完成目标内容的分享和显示流程,实现两个电子设备间简便高效的分享内容的效果。
上述图15或图16所示的方法中第一电子设备或第二电子设备所执行的具体步骤可参阅前述实施例,在此不做过多赘述。
基于以上实施例及相同构思,本申请实施例还提供一种电子设备,如图17中所示,所述电子设备1700包括处理单元1701和收发单元1702,所述处理单元1701和所述收发单元1702协作,用于实现本申请实施例提供的分享内容的方法中由第一电子设备或第二电子设备所执行的方法。
基于以上实施例及相同构思,本申请实施例还提供一种电子设备,所述电子设备用于实现本申请实施例提供的分享内容的方法中由第一电子设备或第二电子设备所执行的方 法。如图18中所示,所述电子设备1800可以包括:显示屏1801,存储器1802,一个或多个处理器1803,以及一个或多个计算机程序(图中未示出)。上述各器件可以通过一个或多个通信总线1804耦合。
其中,显示屏1801用于显示图像、视频、应用界面等相关用户界面。存储器1802中存储有一个或多个计算机程序(代码),所述一个或多个计算机程序包括计算机指令;一个或多个处理器1803调用存储器1802中存储的所述计算机指令,使得电子设备1800执行本申请实施例提供的分享内容的方法。
具体实现中,所述存储器1802可包括高速随机存取的存储器,并且也可包括非易失性存储器,例如一个或多个磁盘存储设备、闪存设备或其他非易失性固态存储设备。所述存储器1802可以存储操作系统(下述简称系统),例如ANDROID,IOS,WINDOWS,或者LINUX等嵌入式操作系统。所述存储器1802可用于存储本申请实施例的实现程序。所述存储器1802还可以存储网络通信程序,该网络通信程序可用于与一个或多个附加设备,一个或多个用户设备,一个或多个网络设备进行通信。所述一个或多个处理器1803可以是一个通用中央处理器(Central Processing Unit,CPU),微处理器,特定应用集成电路(Application-Specific Integrated Circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。
需要说明的,图18仅仅是本申请实施例提供的电子设备1800的一种实现方式,实际应用中,电子设备1800还可以包括更多或更少的部件,这里不作限制。
基于以上实施例及相同构思,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述实施例提供的分享内容的方法。
基于以上实施例及相同构思,本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括计算机程序或指令,当所述计算机程序或指令在计算机上运行时,使得所述计算机执行上述实施例提供的分享内容的方法。
本申请实施例提供的方法中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、网络设备、用户设备或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,简称DSL)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机可以存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,数字视频光盘(digital video disc,简称DVD)、或者半导体介质(例如,SSD)等。
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本 申请也意图包含这些改动和变型在内。

Claims (25)

  1. 一种分享内容的方法,应用于第一电子设备,其中,所述第一电子设备包含第一应用,其特征在于,所述方法包括:
    所述第一电子设备响应于接收到的第一操作,获取第一分享信息;其中,所述第一操作用于指示将所述第一应用中的目标内容分享至第二电子设备的至少一个显示屏,所述第一分享信息用于指示所述第一应用及所述目标内容;
    所述第一电子设备向所述第二电子设备发送所述第一分享信息和目标显示屏信息;其中,所述目标显示屏信息用于指示所述至少一个显示屏。
  2. 如权利要求1所述的方法,其特征在于,所述第一电子设备获取第一分享信息,包括:所述第一电子设备获取第二分享信息;其中,所述第二分享信息用于指示所述第一应用生成的所述目标内容的分享链接;
    所述第一电子设备根据所述第二分享信息,确定所述第一分享信息。
  3. 如权利要求2所述的方法,其特征在于,所述第一电子设备根据所述第二分享信息,确定所述第一分享信息,包括:
    所述第一电子设备对所述第二分享信息进行字符串匹配,得到所述目标内容的内容指示信息和第一地址信息;其中,所述内容指示信息用于指示所述目标内容,所述第一地址信息用于确定获取所述目标内容的地址;
    所述第一电子设备根据所述内容指示信息和所述第一地址信息,确定所述第一分享信息。
  4. 如权利要求3所述的方法,其特征在于,所述第一地址信息为统一资源定位符;所述第一电子设备根据所述内容指示信息和所述第一地址信息,确定所述第一分享信息,包括:
    所述第一电子设备将所述内容指示信息和所述第一地址信息作为所述第一分享信息;或者
    所述第一电子设备对所述第一地址信息进行重定向,得到第二地址信息;其中,所述第二地址信息用于指示获取所述目标内容的地址;
    所述第一电子设备将所述内容指示信息和所述第二地址信息作为所述第一分享信息。
  5. 如权利要求1~4任一所述的方法,其特征在于,在所述第一电子设备响应于接收到的第一操作,获取第一分享信息之前,所述方法还包括:
    所述第一电子设备接收来自所述第二电子设备的第一指示信息后,接收所述第一操作;其中,所述第一指示信息用于指示所述第二电子设备的多个显示屏。
  6. 如权利要求5所述的方法,其特征在于,所述第一操作包括第二操作和第三操作,其中,所述第二操作用于指示分享所述目标内容,所述第三操作用于在所述多个显示屏中选择所述至少一个显示屏;
    所述第一电子设备接收所述第一操作,包括:
    所述第一电子设备接收所述第二操作;
    所述第一电子设备响应于所述第二操作,显示第二指示信息;其中,所述第二指示信息用于指示所述多个显示屏;
    所述第一电子设备接收所述第三操作。
  7. 如权利要求6所述的方法,其特征在于,所述第一指示信息还用于指示所述多个显示屏的状态,所述状态包括已解锁或未解锁;
    在所述第一电子设备响应于所述第二操作,显示第二指示信息之前,所述方法还包括:
    所述第一电子设备根据所述第一指示信息,确定所述多个显示屏的状态均为已解锁。
  8. 如权利要求1~7任一所述的方法,其特征在于,在所述第一电子设备响应于接收到的第一操作,获取第一分享信息之前,所述方法还包括:
    所述第一电子设备通过调用所述第一应用,显示所述目标内容;
    在所述第一电子设备向所述第二电子设备发送所述第一分享信息和目标显示屏信息之后,所述方法还包括:
    所述第一电子设备响应于接收到的第四操作,更新所述目标内容。
  9. 一种分享内容的方法,应用于第一电子设备与第二电子设备组成的系统,其中,所述第一电子设备和所述第二电子设备包含第一应用,其特征在于,所述方法包括:
    所述第一电子设备响应于接收到的第一操作,获取第一分享信息;其中,所述第一操作用于指示将所述第一应用中的目标内容分享至所述第二电子设备的至少一个显示屏,所述第一分享信息用于指示所述第一应用及所述目标内容;
    所述第一电子设备向所述第二电子设备发送所述第一分享信息和目标显示屏信息;其中,所述目标显示屏信息用于指示所述至少一个显示屏;
    所述第二电子设备接收所述第一分享信息和所述目标显示屏信息;
    所述第二电子设备根据所述第一分享信息,确定所述第一应用并获取所述目标内容,以及,根据所述目标显示屏信息,确定所述至少一个显示屏;
    所述第二电子设备通过调用所述第一应用,分别在所述至少一个显示屏中显示所述目标内容。
  10. 如权利要求9所述的方法,其特征在于,所述第一电子设备获取第一分享信息,包括:
    所述第一电子设备获取第二分享信息;其中,所述第二分享信息用于指示所述第一应用生成的所述目标内容的分享链接;
    所述第一电子设备根据所述第二分享信息,确定所述第一分享信息。
  11. 如权利要求10所述的方法,其特征在于,所述第一电子设备根据所述第二分享信息,确定所述第一分享信息,包括:
    所述第一电子设备对所述第二分享信息进行字符串匹配,得到所述目标内容的内容指示信息和第一地址信息;其中,所述内容指示信息用于指示所述目标内容,所述第一地址信息用于确定获取所述目标内容的地址;
    所述第一电子设备根据所述内容指示信息和所述第一地址信息,确定所述第一分享信息。
  12. 如权利要求11所述的方法,其特征在于,所述第一地址信息为统一资源定位符;所述第一电子设备根据所述内容指示信息和所述第一地址信息,确定所述第一分享信息,包括:
    所述第一电子设备将所述内容指示信息和所述第一地址信息作为所述第一分享信息;或者
    所述第一电子设备对所述第一地址信息进行重定向,得到第二地址信息;其中,所述 第二地址信息用于指示获取所述目标内容的地址;
    所述第一电子设备将所述内容指示信息和所述第二地址信息作为所述第一分享信息。
  13. 如权利要求9~12任一所述的方法,其特征在于,在所述第一电子设备响应于接收到的第一操作,获取第一分享信息之前,所述方法还包括:
    所述第二电子设备向所述第一电子设备发送第一指示信息;其中,所述第一指示信息用于指示所述第二电子设备的多个显示屏;
    所述第一电子设备接收所述第一指示信息后,接收所述第一操作。
  14. 如权利要求13所述的方法,其特征在于,所述第一操作包括第二操作和第三操作,其中,所述第二操作用于指示分享所述目标内容,所述第三操作用于在所述多个显示屏中选择所述至少一个显示屏;
    所述第一电子设备接收所述第一操作,包括:
    所述第一电子设备接收所述第二操作;
    所述第一电子设备响应于所述第二操作,显示第二指示信息;其中,所述第二指示信息用于指示所述多个显示屏;
    所述第一电子设备接收所述第三操作。
  15. 如权利要求14所述的方法,其特征在于,所述第一指示信息还用于指示所述多个显示屏的状态,所述状态包括已解锁或未解锁;
    在所述第一电子设备响应于所述第二操作,显示第二指示信息之前,所述方法还包括:
    所述第一电子设备根据所述第一指示信息,确定所述多个显示屏的状态均为已解锁。
  16. 如权利要求9~15任一所述的方法,其特征在于,在所述第一电子设备响应于接收到的第一操作,获取第一分享信息之前,所述方法还包括:
    所述第一电子设备通过调用所述第一应用,显示所述目标内容;
    在所述第一电子设备向所述第二电子设备发送所述第一分享信息和目标显示屏信息之后,所述方法还包括:
    所述第一电子设备响应于接收到的第四操作,更新所述目标内容。
  17. 如权利要求9~16任一所述的方法,其特征在于,在所述第二电子设备通过调用所述第一应用,分别在所述至少一个显示屏中显示所述目标内容之后,所述方法还包括:
    所述第二电子设备响应于接收到的第五操作,更新目标显示屏中显示的所述目标内容;其中,所述目标显示屏为所述至少一个显示屏中的任一个显示屏。
  18. 一种分享内容的方法,应用于第二电子设备,其中,所述第二电子设备包含第一应用,其特征在于,所述方法包括:
    所述第二电子设备接收来自第一电子设备的第一分享信息和目标显示屏信息;其中,所述第一分享信息用于指示所述第一应用及所述第一应用中的目标内容,所述目标显示屏信息用于指示所述第二电子设备的至少一个显示屏;
    所述第二电子设备根据所述第一分享信息,确定所述第一应用并获取所述目标内容,以及,根据所述目标显示屏信息,确定所述至少一个显示屏;
    所述第二电子设备通过调用所述第一应用,分别在所述至少一个显示屏中显示所述目标内容。
  19. 如权利要求18所述的方法,其特征在于,所述第一分享信息包括内容指示信息和第一地址信息;或者,所述第一分享信息包括所述内容指示信息和第二地址信息;
    其中,所述内容指示信息用于指示所述目标内容,所述第一地址信息用于确定获取所述目标内容的地址,所述第二地址信息用于指示获取所述目标内容的地址。
  20. 如权利要求18或19所述的方法,其特征在于,在所述第二电子设备接收来自第一电子设备的第一分享信息和目标显示屏信息之前,所述方法还包括:
    所述第二电子设备向所述第一电子设备发送第一指示信息;其中,所述第一指示信息用于指示所述第二电子设备的多个显示屏,所述至少一个显示屏包含在所述多个显示屏中。
  21. 如权利要求20所述的方法,其特征在于,所述第一指示信息还用于指示所述多个显示屏的状态,所述状态包括已解锁或未解锁;
    所述多个显示屏的状态均为已解锁。
  22. 如权利要求18~21任一所述的方法,其特征在于,在所述第二电子设备通过调用所述第一应用,分别在所述至少一个显示屏中显示所述目标内容之后,所述方法还包括:
    所述第二电子设备响应于接收到的第五操作,更新目标显示屏中显示的所述目标内容;其中,所述目标显示屏为所述至少一个显示屏中的任一个显示屏。
  23. 一种电子设备,其特征在于,所述电子设备包括显示屏,存储器和一个或多个处理器;
    其中,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令;当所述计算机指令被所述一个或多个处理器执行时,使得所述电子设备执行如权利要求1~8任一所述的方法,或者执行如权利要求18~22任一所述的方法。
  24. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1~8任一所述的方法,或者执行如权利要求18~22任一所述的方法。
  25. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1~8任一所述的方法,或者执行如权利要求18~22任一所述的方法。
PCT/CN2022/143552 2022-01-07 2022-12-29 一种分享内容的方法及电子设备 WO2023131051A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210016575.7A CN116456313A (zh) 2022-01-07 2022-01-07 一种分享内容的方法及电子设备
CN202210016575.7 2022-01-07

Publications (1)

Publication Number Publication Date
WO2023131051A1 true WO2023131051A1 (zh) 2023-07-13

Family

ID=87073167

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/143552 WO2023131051A1 (zh) 2022-01-07 2022-12-29 一种分享内容的方法及电子设备

Country Status (2)

Country Link
CN (1) CN116456313A (zh)
WO (1) WO2023131051A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102664926A (zh) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 用户信息共享方法及系统
CN108605049A (zh) * 2015-12-29 2018-09-28 三星电子株式会社 用于用户设备的基于应用状态和卡片的消息共享方法
CN110109639A (zh) * 2019-05-09 2019-08-09 北京伏羲车联信息科技有限公司 多屏交互方法及车载系统
CN112203130A (zh) * 2020-09-09 2021-01-08 广州汽车集团股份有限公司 一种车载信息娱乐终端及其多屏交互显示方法、汽车
CN112486363A (zh) * 2020-10-30 2021-03-12 华为技术有限公司 一种跨设备的内容分享方法、电子设备及系统
CN113452945A (zh) * 2020-03-27 2021-09-28 华为技术有限公司 分享应用界面的方法、装置、电子设备及可读存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102664926A (zh) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 用户信息共享方法及系统
CN108605049A (zh) * 2015-12-29 2018-09-28 三星电子株式会社 用于用户设备的基于应用状态和卡片的消息共享方法
CN110109639A (zh) * 2019-05-09 2019-08-09 北京伏羲车联信息科技有限公司 多屏交互方法及车载系统
CN113452945A (zh) * 2020-03-27 2021-09-28 华为技术有限公司 分享应用界面的方法、装置、电子设备及可读存储介质
CN112203130A (zh) * 2020-09-09 2021-01-08 广州汽车集团股份有限公司 一种车载信息娱乐终端及其多屏交互显示方法、汽车
CN112486363A (zh) * 2020-10-30 2021-03-12 华为技术有限公司 一种跨设备的内容分享方法、电子设备及系统

Also Published As

Publication number Publication date
CN116456313A (zh) 2023-07-18

Similar Documents

Publication Publication Date Title
WO2021013158A1 (zh) 显示方法及相关装置
WO2022100239A1 (zh) 设备协作方法、装置、系统、电子设备和存储介质
US20220342850A1 (en) Data transmission method and related device
WO2022100237A1 (zh) 投屏显示方法及相关产品
CN111221845A (zh) 一种跨设备信息搜索方法及终端设备
WO2022089207A1 (zh) 一种跨设备应用交互方法、电子设备与服务器
CN115039378A (zh) 一种音频输出方法及终端设备
WO2021135734A1 (zh) 应用中传输文件的方法、电子设备及系统
WO2021249318A1 (zh) 一种投屏方法和终端
WO2022089294A1 (zh) 一种设备间屏幕协同方法及设备
WO2022127661A1 (zh) 应用共享方法、电子设备和存储介质
WO2022156443A1 (zh) 车机连接方法及装置
CN116009977A (zh) 通知处理方法、芯片、电子设备及计算机可读存储介质
CN113593279B (zh) 车辆及其交互参数调整方法、移动终端
WO2022135156A1 (zh) 分布式跨设备协同方法、电子设备及通信系统
WO2022089102A1 (zh) 一种控制方法、装置及电子设备
WO2022121445A1 (zh) 添加widget的方法、装置及计算机可读存储介质
WO2022028494A1 (zh) 一种多设备数据协作的方法及电子设备
US20230216732A1 (en) Network Configuration Method and Device
WO2023109764A1 (zh) 一种壁纸显示方法及电子设备
WO2023131051A1 (zh) 一种分享内容的方法及电子设备
WO2023005711A1 (zh) 一种服务的推荐方法及电子设备
CN115484404B (zh) 基于分布式控制的相机控制方法及终端设备
WO2024078337A1 (zh) 一种显示屏选择方法及电子设备
CN110737765A (zh) 多轮对话的对话数据处理方法及相关装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22918492

Country of ref document: EP

Kind code of ref document: A1