WO2023020008A1 - 控制投屏的方法、电子设备及计算机可读存储介质 - Google Patents

控制投屏的方法、电子设备及计算机可读存储介质 Download PDF

Info

Publication number
WO2023020008A1
WO2023020008A1 PCT/CN2022/090018 CN2022090018W WO2023020008A1 WO 2023020008 A1 WO2023020008 A1 WO 2023020008A1 CN 2022090018 W CN2022090018 W CN 2022090018W WO 2023020008 A1 WO2023020008 A1 WO 2023020008A1
Authority
WO
WIPO (PCT)
Prior art keywords
screen projection
screen
projection
source device
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2022/090018
Other languages
English (en)
French (fr)
Inventor
谷贺瑾
鲍新彤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Publication of WO2023020008A1 publication Critical patent/WO2023020008A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/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
    • 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/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering

Definitions

  • the present application relates to the field of communication technologies, and in particular to a method for controlling screen projection, electronic equipment, and a computer-readable storage medium.
  • the content displayed on the mobile phone can be displayed on a large-screen electronic device such as a TV by means of screen projection to enhance the visual effect.
  • screen projection can be performed between two electronic devices by means of mirroring or streaming media projection.
  • streaming media projection can be applied to video playback scenarios
  • mirror projection can be applied to various scenarios that need to browse or zoom in on the content on the mobile phone. Since different scenes use different projection methods, when the scene changes, it is necessary to switch the projection method.
  • the present application provides a method for controlling screen projection, an electronic device, and a computer-readable storage medium, which solves the problem of inflexible and convenient switching between mirror image projection and streaming media projection in the prior art.
  • the present application provides a method for controlling screen projection, the method including:
  • the screen projection source device performs screen projection to the screen projection target device through a first screen projection method
  • the screen projection source device In response to a second operation of the user ordering a streaming media file in a first application, the screen projection source device performs screen projection to the screen projection target device through a second screen projection method, and the first application is the screen projection target device. streaming applications in the source device;
  • the screen-casting source device In response to the user's third operation on the screen-casting source device, the screen-casting source device displays a desktop interface, and a screen-casting icon is displayed on the desktop interface; wherein, the screen-casting source device and the screen-casting target maintaining the second screen projection mode between devices;
  • the screen projection source device displays a screen projection menu bar, and the screen projection menu bar includes a first control
  • the screen projection source device In response to the user's fifth operation on the first control, the screen projection source device performs screen projection to the screen projection target device in a first screen projection manner.
  • the screen projection source device such as a mobile phone
  • the screen projection target device such as a TV
  • the screen projection source device plays a video
  • the screen projection source device plays a video
  • you need to switch to the mirror projection screen you only need to call up the screen projection menu to switch the screen projection operation.
  • the application scheme provides a fast screen projection switch entry in the screen projection menu, it can realize free switching between mirror image projection and streaming media projection, and can meet the requirements of users while the target device for screen projection keeps playing the video on the screen. It can also perform other application operations on the screen projection source device, which improves the user screen projection experience.
  • the screen projection source device and the screen projection target device are in the same Wi-Fi network.
  • the first operation may be the operation of the user clicking the system screen-casting control on the screen-casting source device to trigger the screen-casting source device and the screen-casting target device
  • a connection is established through the Wi-Fi network, and the screen projection source device performs screen projection to the screen projection target device through the first screen projection method.
  • a possible implementation form of the first operation is not limited in this embodiment of the application.
  • the first screen projection method follows a first screen projection protocol, and the first screen projection protocol supports the screen projection target device to obtain the screen projection from the screen projection source device.
  • the first screen projection protocol includes a mirror image projection Miracst protocol or a Cast+ protocol.
  • the second screen projection method follows the second screen projection protocol, and the second screen projection protocol supports the screen projection target device to obtain the streaming media file from the server and Play the streaming media file.
  • the second screen projection protocol includes streaming media screen projection DLNA protocol.
  • the screen projection source device performs screen projection to the screen projection target device through a first screen projection method, including:
  • the screen projection source device establishes a connection with the screen projection target device based on a first screen projection protocol
  • the screen projection source device sends the screen display content of the screen projection source device to the screen projection target device, so that the screen projection target device receives and displays the screen display content of the screen projection source device.
  • the screen projection source device performs screen projection to the screen projection target device through a second screen projection method, including:
  • the screen projection source device establishes a connection with the screen projection target device based on a second screen projection protocol
  • the screen-casting source device sends the network address of the streaming media file to the screen-casting target device, so that the screen-casting target device downloads from the server corresponding to the first application according to the network address of the streaming media file Get the streaming media file.
  • the first control may be a screen projection switch control, configured to trigger switching from the second screen projection manner to the first screen projection manner.
  • the screen-casting target device stops obtaining the streaming media data for screen-casting from the server of the first application, and the screen-casting target device receives and displays the streaming media data for screen-casting sent by the screen-casting source device. Therefore, by operating the screen projection switch control in the screen projection menu bar, it can trigger the stop of streaming media projection and return to mirror projection. Due to the convenient operation, the user's screen projection experience can be improved.
  • the foregoing first control may be a disconnection control, configured to trigger disconnection of a connection established based on the second screen projection protocol.
  • the screen-casting target device stops obtaining streaming media data for screen-casting from the server of the first application. Therefore, by operating on the disconnect control in the screen projection menu bar, the streaming media projection can be triggered to stop, and the mirror projection can be returned if the connection established based on the first projection protocol is not disconnected. Due to the convenient operation, the user's screen projection experience can be improved.
  • the screen projection menu bar further includes at least one screen projection information option, and each screen projection information option in the at least one screen projection information option indicates a projection of a streaming media application. screen events.
  • the method also includes:
  • the screen projection source device receives a sixth user operation on the first screen projection information option, and the first screen projection information option indicates a screen projection event of the first application;
  • the screen projection source device determines whether the first application is running
  • the screen projection source device displays a first interface in which the first application is projecting a screen
  • the screen projection source device triggers the opening of the first application and displays the second interface of the first application; wherein, the first application is in a state of exiting screen projection.
  • the user only needs to call up the screen projection menu on the mobile phone and operate the screen projection information options on the screen projection menu, and the mobile phone can be triggered to quickly jump to the video application interface that is being screen projection.
  • the mobile phone can automatically launch the video application, so that the video application is started. Due to the convenient operation, the user's screen projection experience can be improved.
  • the method further includes:
  • the screen projection source device receives a seventh operation performed by the user on the second control in the first interface
  • the screen projection source device stops projecting the screen to the target screen projection device through the second screen projection method, and sends the screen projection to the target screen projection device through the first screen projection method Cast the screen.
  • the method further includes:
  • the screen projection source device receives an eighth operation in which the user orders the streaming media file in the first application
  • the screen projection source device performs screen projection to the screen projection target device through the second screen projection manner.
  • the mobile phone when the mobile phone can automatically launch the video application, so that the video application is turned on, once the user’s video-on-demand operation is detected, the mobile phone and other screen projection source devices will use streaming media projection to the TV and other screen projection targets. Screencast on the device. Due to the convenient operation, the user's screen projection experience can be improved.
  • the screen-casting source device in response to the user's second operation of ordering a streaming media file in the first application, performs screen-casting to the screen-casting target device through a second screen-casting method.
  • Screencasting including:
  • the screen projection source device stops performing screen projection to the screen projection target device through the first screen projection method. Projecting a screen, and projecting a screen to the target device for screen projection through the second screen projection method;
  • the preset switching condition includes: the first application supports the second screen projection method, or the remaining power of the screen projection source device is lower than or equal to a preset power threshold, or the screen projection target device The signal quality of the network you are on is better than or equal to the preset signal quality.
  • the screen projection source device plays audio and video files and meets the preset switching conditions, it can automatically switch from mirror projection to streaming media projection without user operation. Due to the convenient operation, the user's screen projection experience can be improved.
  • the method further includes: when the screen projection source device displays the desktop interface, the screen projection source device switches the first application to run in the background.
  • the present application provides a method for controlling screen projection, including:
  • the screen projection source device In response to the user's first operation on the screen projection source device, the screen projection source device performs screen projection to the screen projection target device through a first screen projection method;
  • the screen projection source device In response to a second operation of the user ordering a streaming media file in a first application, the screen projection source device performs screen projection to the screen projection target device through a second screen projection method, and the first application is the screen projection target device. streaming applications in the source device;
  • the screen-casting source device In response to the user's third operation on the screen-casting source device, the screen-casting source device displays a desktop interface, and a screen-casting icon is displayed on the desktop interface; wherein, the screen-casting source device and the screen-casting target The screen projection mode between devices is switched from the second screen projection mode to the first screen projection mode;
  • the screen projection source device displays a screen projection menu bar, and the screen projection menu bar includes a first control
  • the screen projection source device In response to the user's fifth operation on the first control, the screen projection source device performs screen projection to the screen projection target device in a second screen projection manner.
  • the screen projection source device such as a mobile phone
  • the screen projection target device such as a TV
  • the screen projection source device plays a video
  • the screen projection mode switches back to mirror projection.
  • you need to switch from mirror projection to streaming media projection you only need to call up the projection menu to switch between projections.
  • the application scheme provides a fast screen projection switch entry in the screen projection menu, it can realize free switching between mirror image projection and streaming media projection, and can meet the requirements of users while the target device for screen projection keeps playing the video on the screen. It can also perform other application operations on the screen projection source device, which improves the user screen projection experience.
  • the screen projection source device and the screen projection target device are in the same Wi-Fi network.
  • the first operation may be the operation of the user clicking the system screen-casting control on the screen-casting source device to trigger the screen-casting source device and the screen-casting target device
  • a connection is established through the Wi-Fi network, and the screen projection source device performs screen projection to the screen projection target device through the first screen projection method.
  • a possible implementation form of the first operation is not limited in this embodiment of the application.
  • the first screen projection method follows a first screen projection protocol, and the first screen projection protocol supports the target screen projection device to obtain the projection screen from the screen projection source device.
  • the first screen projection protocol includes a mirror image projection Miracst protocol or a Cast+ protocol.
  • the second screen projection method follows the second screen projection protocol, and the second screen projection protocol supports the screen projection target device to obtain the streaming media file from the server and Play the streaming media file.
  • the second screen projection protocol includes streaming media screen projection DLNA protocol.
  • the screen projection source device casts the screen to the screen projection target device through the first screen projection method, including: the screen projection source device and the screen projection target device based on the first The screen projection protocol establishes a connection; the screen projection source device sends the screen display content of the screen projection source device to the screen projection target device, so that the screen projection target device receives and displays the screen projection of the screen projection source device display content.
  • the screen projection source device performs screen projection to the screen projection target device through a second screen projection method, including: the screen projection source device and the screen projection target device based on The second screen projection protocol establishes a connection; the screen projection source device sends the network address of the streaming media file to the screen projection target device, so that the screen projection target device according to the network address of the streaming media file, from The server corresponding to the first application obtains the streaming media file.
  • the above-mentioned first control may be a screen projection switch control, configured to trigger switching from the first screen projection mode to the second screen projection mode.
  • the screen projection target device stops receiving the streaming media data sent by the screen projection source device for screen projection, and the screen projection target device uses the network address for streaming media projection sent by the screen projection source device.
  • An application server acquires streaming media data for screen projection and displays it. Therefore, by operating the screen projection switch control in the screen projection menu bar, the mirror projection can be triggered to stop and return to the streaming media projection. Due to the convenient operation, the user's screen projection experience can be improved.
  • the foregoing first control may also be a disconnection control, configured to trigger disconnection of a connection established based on the first screen projection protocol.
  • the screen projection source device stops sending screen projection data to the screen projection target device. Therefore, by operating on the disconnect control in the screen projection menu bar, the mirroring screen projection can be stopped, and the streaming media projection can be returned if the connection established based on the second screen projection protocol is not disconnected. Due to the convenient operation, the user's screen projection experience can be improved.
  • the above-mentioned first control may also be a screen projection information option.
  • the screen projection menu bar includes at least one screen projection information option, and each screen projection information option in the at least one screen projection information option indicates a screen projection event of a streaming media application;
  • the screen projection source device performs screen projection to the screen projection target device through a second screen projection method, including:
  • the screen projection source device receives a sixth operation of the user on the first screen projection information option, the first screen projection information option indicates a screen projection event of the first application, and the first screen projection information option serves as said first control;
  • the screen projection source device stops casting the screen to the screen projection target device through the first screen projection method, and uses the The second screen projection method is used to project a screen to the target device for screen projection.
  • the user only needs to call up the screen projection menu on the mobile phone and operate the screen projection information option on the screen projection menu, which can trigger the mobile phone to quickly jump to the video application interface that is being screencast, and trigger the screen projection from the mirror image Quickly switch to streaming casting. Due to the convenient operation, the user's screen projection experience can be improved.
  • the method further includes: in response to the sixth operation, when the first application is closed, the screen-casting source device triggers the first application start, and display the second interface of the first application; wherein, the first application is in a state of exiting screen projection.
  • the mobile phone can automatically launch the video application, so that the video application is started. Due to the convenient operation, the user's screen projection experience can be improved.
  • the method further includes: the screen projection source The device receives the seventh operation of the user ordering the streaming media file in the first application; in response to the seventh operation, the screen projection source device uses the second screen projection method to project the screen to the screen projection target device Screen.
  • the mobile phone when the mobile phone can automatically launch the video application, so that the video application is turned on, once the user’s video-on-demand operation is detected, the mobile phone and other screen projection source devices will use streaming media projection to the TV and other screen projection targets. Screencast on the device. Due to the convenient operation, the user's screen projection experience can be improved.
  • the screen casting source device in response to the second operation of the user ordering the streaming media file in the first application, performs screen casting to the screen casting target device through the second screen casting method.
  • Screencasting including:
  • the screen projection source device stops performing screen projection to the screen projection target device through the first screen projection method. Projecting a screen, and projecting a screen to the target device for screen projection through the second screen projection method;
  • the preset switching condition includes: the first application supports the second screen projection method, or the remaining power of the screen projection source device is lower than or equal to a preset power threshold, or the screen projection target device The signal quality of the network you are on is better than or equal to the preset signal quality.
  • the screen projection source device plays audio and video files and meets the preset switching conditions, it can automatically switch from mirror projection to streaming media projection without user operation. Due to the convenient operation, the user's screen projection experience can be improved.
  • the method further includes: when the screen projection source device displays the desktop interface, the screen projection source device switches the first application to run in the background.
  • the present application provides a device for controlling screen projection, and the device includes a unit for performing the method in the first aspect above.
  • the device may correspond to executing the method described in the first aspect above.
  • the relevant description of the units in the device please refer to the description in the first aspect above, and details are not repeated here for brevity.
  • Hardware or software includes one or more modules or units corresponding to the functions described above. For example, a processing module or unit, a display module or unit, etc.
  • the present application provides a device for controlling screen projection, and the device includes a unit for performing the method in the second aspect above.
  • the device may be corresponding to executing the method described in the second aspect above.
  • the relevant description of the units in the device please refer to the description of the second aspect above, and for the sake of brevity, details are not repeated here.
  • Hardware or software includes one or more modules or units corresponding to the functions described above. For example, a processing module or unit, a display module or unit, etc.
  • the present application provides an electronic device, the electronic device includes a processor, the processor is coupled with a memory, the memory is used to store computer programs or instructions, and the processor is used to execute the computer programs or instructions stored in the memory, so that the first The methods in the aspect are executed.
  • the processor is used to execute the computer programs or instructions stored in the memory, so that the apparatus performs the method in the first aspect.
  • the present application provides an electronic device, the electronic device includes a processor, the processor is coupled with a memory, the memory is used to store computer programs or instructions, and the processor is used to execute the computer programs or instructions stored in the memory, so that the second The methods in the aspect are executed.
  • the processor is used to execute the computer programs or instructions stored in the memory, so that the apparatus performs the method in the second aspect.
  • the present application provides a computer-readable storage medium on which is stored a computer program (also referred to as an instruction or code) for implementing the method in the first aspect.
  • a computer program also referred to as an instruction or code
  • the computer program when executed by a computer, the computer can execute the method in the first aspect.
  • the present application provides a computer-readable storage medium on which is stored a computer program (also referred to as an instruction or code) for implementing the method in the second aspect.
  • a computer program also referred to as an instruction or code
  • the computer program when executed by a computer, the computer can execute the method in the second aspect.
  • the present application provides a chip, including a processor.
  • the processor is used to read and execute the computer program stored in the memory, so as to execute the method in the first aspect and any possible implementation thereof.
  • the chip further includes a memory, and the memory is connected to the processor through a circuit or wires.
  • the present application provides a chip, including a processor.
  • the processor is used to read and execute the computer program stored in the memory, so as to execute the method in the second aspect and any possible implementation manners thereof.
  • the chip further includes a memory, and the memory is connected to the processor through a circuit or wires.
  • the present application provides a chip system, including a processor.
  • the processor is used to read and execute the computer program stored in the memory, so as to execute the method in the first aspect and any possible implementation manners thereof.
  • the chip system further includes a memory, and the memory is connected to the processor through a circuit or wires.
  • the present application provides a chip system, including a processor.
  • the processor is used to read and execute the computer program stored in the memory, so as to execute the method in the second aspect and any possible implementation manners thereof.
  • the chip system further includes a memory, and the memory is connected to the processor through a circuit or wires.
  • the present application provides a computer program product
  • the computer program product includes a computer program (also referred to as an instruction or code), and when the computer program is executed by a computer, the computer implements the method.
  • the present application provides a computer program product
  • the computer program product includes a computer program (also referred to as an instruction or code), and when the computer program is executed by a computer, the computer implements the computer program in the second aspect. method.
  • Fig. 1 is a system architecture diagram for implementing streaming media projection and mirror image projection between devices in the embodiment of the present application
  • FIG. 2 is a schematic diagram of an interactive interface when mirroring is implemented between devices in the embodiment of the present application
  • FIG. 3 is a schematic flowchart of a method for controlling screen projection provided by an embodiment of the present application
  • FIG. 4 is a schematic interface diagram of a method for controlling screen projection provided in an embodiment of the present application during application;
  • FIG. 5 is a schematic flowchart of another method for controlling screen projection provided by an embodiment of the present application.
  • FIG. 6 is a schematic interface diagram of another method for controlling screen projection provided by the embodiment of the present application during application;
  • FIG. 7 is a schematic flowchart of another method for controlling screen projection provided by an embodiment of the present application.
  • FIG. 8 is a schematic interface diagram of another method for controlling screen projection provided by the embodiment of the present application during application.
  • FIG. 9 is a schematic interface diagram of the application of the method for controlling screen projection provided by the embodiment of the present application.
  • FIG. 10 is a schematic flow chart of interactive projection between the video APP side and the electronic device side provided by the embodiment of the present application;
  • FIG. 11 is a schematic structural diagram of a device for controlling screen projection provided by an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of another device for controlling screen projection provided by an embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • first and second and the like in the specification and claims herein are used to distinguish different objects, not to describe a specific order of objects.
  • first operation, second operation, etc. are used to distinguish different operations, not to describe a specific order of operations.
  • words such as “exemplary” or “for example” are used as examples, illustrations or illustrations. Any embodiment or design scheme described as “exemplary” or “for example” in the embodiments of the present application shall not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Rather, the use of words such as “exemplary” or “such as” is intended to present related concepts in a concrete manner.
  • multiple means two or more, for example, multiple processing units refer to two or more processing units, etc.; multiple A component refers to two or more components or the like.
  • Streaming media projection When the screen projection source device 1 and the screen projection target device 2 are in the same local area network, the screen projection source device 1 and the screen projection target device 2 can be based on the digital living network alliance (DLNA) ) authorized protocol (abbreviated as DLNA protocol) to realize streaming media projection.
  • DLNA digital living network alliance
  • the screen projection source device 1 can negotiate with the screen projection target device 2 based on the DLNA protocol to perform screen projection. After the negotiation is completed, the screen projection source device 1 can send the link address of the network video being played by the screen projection source device 1 to the projection.
  • the target screen casting device 2 obtains the video resource from the server according to the link address of the network video, and displays the video resource on the screen of the target screen casting device 2, so as to realize the projection of the network video displayed by the screen casting source device 1 Display on the screen of the target device 2 for screen projection.
  • the screen display content of the screen projection source device 1 may be inconsistent with the screen display content of the screen projection target device 2. Perform other application operations.
  • Mirror projection also known as system projection, when the projection source device 1 (such as a mobile phone) and the projection target device 2 (such as a TV) are in the same LAN, the projection source device 1 and the projection target Device 2 can realize mirroring and screen projection based on protocols such as Miracast/Cast+.
  • the source device 1 can search for all devices that support screencasting. After the screencasting source device 1 finds the screencasting target device 2, the screencasting source device 1 can negotiate with the screencasting target device 2 based on the Miracast/Cast+ protocol to cast the screen. After the negotiation is completed , the screen-casting source device 1 may project the content displayed on the screen of the screen-casting source device 1 to the screen of the screen-casting target device 2 for display.
  • the screencasting source device 1 may project the content displayed on the screen of the screen-casting source device 1 to the screen of the screen-casting target device 2 for display.
  • the content of streaming media projection includes audio and/or video resources in the form of streaming media, which are often used to project audio and/or video resources to the large-screen projection target device 2 for viewing. Since the content of the mirroring screen projection is not limited, when the screen projection source device 1 is performing games, live broadcasts, office work, etc., the screen projection source device 1 can mirror the content displayed on the screen to the large screen projection target device 2 show.
  • Fig. 1 shows a schematic diagram of system architecture involved in various exemplary embodiments of the present application.
  • the system architecture includes a screen projection source device 1 , a screen projection target device 2 and a server 3 .
  • the following takes the screen projection source device 1 to initiate the screen projection on the screen projection target device 2 as an example.
  • the screen projection source device 1 serves as the control terminal, and sends the video resource for screen projection to the screen projection target device 2, or the acquisition address of the video resource, such as a uniform resource locator (uniform resource locator, uniform resource locator) ).
  • the screen projection target device 2 acts as a controlled terminal, and receives the video resource for screen projection sent by the screen projection source device 1 , or the acquisition address of the video resource.
  • the screen projection source device 1 may be a device with a smaller screen than the screen projection target device 2, for example, the screen projection source device 1 may be a mobile phone.
  • the screen projection target device 2 may be a device with a larger screen than the screen projection source device 1 , for example, the screen projection target device 2 may be a large-screen TV.
  • the screen projection source device 1 can use the video APP installed on the screen projection source device 1 to play videos.
  • the server 3 may be a streaming media server corresponding to the video APP.
  • FIG. 1 shows a schematic diagram of the streaming media projection scene.
  • the screen projection source device 1 initiates streaming media projection to the screen projection target device 2
  • the screen projection source device 1 will use the currently playing video
  • the link address of the screencasting target device 2 is sent to the screencasting target device 2.
  • the screencasting target device 2 needs to obtain the video resource from the streaming media server 3 according to the video link address provided by the screencasting source device 1, and then the screencasting target device 2 can display the video resource. In this way, streaming media projection is realized.
  • the video resource currently played by the screen-casting source device 1 is acquired from the streaming media server 3 .
  • the video resources to be displayed on the screen of the screen-casting target device 2 are also obtained from the streaming media server 3 . That is to say, there is no data transmission of video resources between the screen-casting source device 1 and the screen-casting target device 2 .
  • FIG. 1 shows a schematic diagram of the mirroring screen projection scene.
  • the screen projection source device 1 initiates mirror projection to the screen projection target device 2
  • the screen projection source device 1 can transfer the currently played video
  • the resources are sent to the target screen-casting device 2, that is, the target screen-casting device 2 can directly obtain video resources from the screen-casting source device 1 instead of the streaming media server 3.
  • the video resource currently played by the screen projection source device 1 may be obtained from the server 3 or locally from the screen projection source device 1 .
  • the screen projection source device 1 is a mobile phone
  • the screen projection target device 2 is a TV set
  • the screen projection from the mobile phone to the TV set is used as an example for illustration.
  • FIG. 2 shows a schematic diagram of the interface for initiating mirror projection.
  • the operation of mirroring screen projection is initiated on device 1.
  • the screen projection source device 1 receives the user's click operation on the system projection control 12 in the drop-down control menu 11 of the screen projection source device 1.
  • the screen projection The source device 1 turns on the screen mirroring function, and then the screen projection source device 1 searches and finds the screen projection target device 2 in the same LAN as the screen projection source device 1, and the screen projection source device 1 establishes a wireless connection with the screen projection target device 2, and Perform information exchange, and negotiate whether the screen projection source device 1 and the screen projection target device 2 can support screen projection.
  • the screen projection target device 2 can display a prompt message: Your mobile phone is connecting to the TV.
  • the screen projection source device 1 After the screen projection source device 1 establishes a connection with the screen projection target device 2 and completes the negotiation, the content displayed on the screen of the screen projection source device 1 will be displayed on the screen of the screen projection target device 2 , that is, the screen display content of the screen-casting target device 2 is consistent with the screen display content of the screen-casting source device 1 at all times. At this time, the screen projection source device 1 and the screen projection target device 2 are in a mirrored screen projection state.
  • FIG. 2 shows a schematic diagram of the interface for initiating video playback.
  • the screen projection source device 1 receives the user’s operation of triggering video playback on the screen projection source device 1, for example, the screen projection source device 1 receives The user clicks on the playback control 13 of the video APP interface on the screen-casting source device 1.
  • the screen-casting source device 1 can play the video, and the screen-casting target device 2 plays the same video as the screen-casting source device 1. screen.
  • the mobile phone In practical applications, usually when mirroring and projecting a video, the mobile phone needs to be switched to display the video in full screen, so as to ensure that the TV can display the video in full screen.
  • the video image played by the screen projection source device 1 is projected to the screen of the screen projection target device 2 for full-screen display through mirror projection.
  • the video image displayed on the screen of the target device 2 will change as the video image displayed on the screen of the source device 1 changes.
  • the mirroring and projection of video has the following characteristics: due to real-time encoding and transmission, affected by the encoding and decoding capabilities of mobile phones, the Wi-Fi chip capabilities of mobile phones and TVs, and near-field Wi-Fi jitter, etc., video Easy to freeze, poor video quality.
  • the display ratio of the mobile phone is inconsistent with that of the TV, it is easy to cause black borders around the TV screen when the screen is displayed.
  • the audio and video streams on the mobile phone side are encoded and transmitted in two ways, which are different from the audio and video streams on the TV side, it is easy to cause the TV video sound and picture to be out of sync when the screen is projected.
  • the embodiment of the present application provides a method for controlling screen projection and an electronic device (such as a screen projection source device), when a screen projection source device (such as a mobile phone) and a screen projection target device (such as a TV)
  • a screen projection source device such as a mobile phone
  • a screen projection target device such as a TV
  • the source device When performing mirror projection, if the source device is playing video, it will automatically switch to streaming media projection. If the video app on the source device is backed up to run in the background, you can control the projection method to continue streaming media projection. If necessary To switch to mirroring screen projection, you only need to call up the screen projection menu to switch between screen projections.
  • the application scheme provides a fast screen projection switch entry in the screen projection menu, it can realize free switching between mirror image projection and streaming media projection, and can meet the requirements of users while the target device for screen projection keeps playing the video on the screen. It can also perform other application operations on the screen projection source device, which improves the user screen projection experience.
  • electronic device manufacturers and video APP manufacturers cooperate technically on device video screen projection to realize the solution of this application: during the screen projection process, when certain conditions (such as playing video) are met, it can support Switch between mirroring screen projection based on Miracast/Cast+ protocol and streaming media screen projection based on DLNA protocol.
  • streaming media projection is usually related to video APPs, and not all video APPs support streaming media projection. Specifically in the embodiment of this application, the prerequisite for switching between streaming media projection and mirror projection is The video app to be screencasted supports streaming media screencasting.
  • Fig. 3 shows a schematic flow diagram of switching between screen mirroring and streaming media projection provided by the first embodiment of the present application. As shown in Fig. 3, the process may include the following steps S101-S103.
  • the screen projection source device 1 when the screen projection source device 1 receives the user's operation of clicking the system screen projection control on the screen projection source device, the screen projection source device 1 A connection can be established with the screen projection target device 2 through the Wi-Fi network, and the screen projection source device 1 performs screen projection to the screen projection target device 2 through the first screen projection method.
  • the screen projection source device 1 can also realize mirror projection on the screen projection target device 2 through a touch projection function, that is, the projection
  • the screen source device 1 touches the projection target device 2, establishes a wireless connection through various short-distance communication methods such as near field communication (NFC), Wi-Fi or Bluetooth, and completes the mirror projection.
  • NFC near field communication
  • Wi-Fi Wireless Fidelity
  • the screen projection source device 1 can also mirror the screen projection on the screen projection target device 2 through other methods such as a share function, so as to realize the cooperative operation between different electronic devices. Specifically, it may be determined according to actual usage requirements, and is not limited in this embodiment of the application.
  • the screen projection source device 1 projects the currently played video image on the screen of the screen projection target device 2 through mirror projection.
  • the screen projection mode between the screen projection source device 1 and the screen projection target device 2 is mirror projection.
  • the screen projection source device 1 cannot establish a connection with the screen projection target device 2, and therefore screen projection cannot be realized.
  • the embodiment of the present application exemplarily describes the screen projection scene based on the fact that the screen projection target device 2 is in an on state.
  • the mirroring projection in the mirroring projection state, once it is detected that the projection source device 1 starts to play the video, the mirroring projection will be automatically switched to streaming media projection. Since the video display effect is better through streaming media projection, it can Improve user experience.
  • the screen projection source device 1 plays a video on the screen projection target device 2 through streaming media projection
  • the screen projection source device The screen projection method between 1 and screen projection target device 2 will automatically switch from streaming media projection to mirror projection, which cannot meet the needs of users who want the large screen to continuously display the projected video images.
  • the screen projection source device 1 plays the video in the video APP, and changes the screen projection mode between the screen projection source device 1 and the screen projection target device 2 from the mirror projection The screen is automatically switched to streaming media projection.
  • FIG. 4 is a schematic diagram of an interface for switching between screen mirroring and streaming media projection based on FIG. 3 .
  • the flowchart shown in FIG. 3 is described below in conjunction with FIG. 4 .
  • the screen projection mode between the screen projection source device 1 and the screen projection target device 2 is mirror projection. At this time, the content displayed on the screen of the screen-casting source device 1 and the screen-casting target device 2 is completely consistent.
  • the screen-casting mode between the screen-casting source device 1 and the screen-casting target device 2 is automatically switched to streaming media Cast screen.
  • the screen display content of the screen-casting source device 1 and the screen-casting target device 2 may be inconsistent.
  • the screen display content of the screen-casting source device 1 is the interface of the video APP
  • the screen display content of the screen-casting target device 2 is the video APP.
  • the display effect can be displayed in full screen.
  • the screen projection source device 1 detects that the video APP has retreated to the background, the screen projection mode between the screen projection source device 1 and the screen projection target device 2 is automatically switched back to mirror projection .
  • the screen display content of the screen projection source device 1 and the screen projection target device 2 is completely consistent.
  • the screen projection source device 1 and the screen projection target device 2 both display a desktop interface or an application interface.
  • the disadvantage is that when the source device 1 plays the video on the target device 2 through streaming media, once the video APP in the source device 1 retreats to the background, the screen projection method will automatically switch from the streaming media to the target device 2.
  • the screen is switched to mirroring, so that the display content of the target device 2 and the source device 1 are consistent and both stop playing the video. Therefore, it cannot meet the user's demand that the large screen continue to display the projected video.
  • the present application also provides a second embodiment.
  • the second embodiment can solve the problem that the streaming media projection screen will automatically switch to the mirror image when the video APP retreats to the background during the process of playing video through the streaming media projection screen Screencasting, there is no guarantee that the large screen will continue to display the screencasting video.
  • Fig. 5 shows a schematic flowchart of switching between screen mirroring and streaming media projection provided by the second embodiment of the present application.
  • the process may include the following steps S201-S204.
  • the solution shown in Figure 5 is based on the improved solution shown in Figure 3, which solves the problem that during the process of playing video through streaming media projection, when the video APP retreats to the background, the streaming media projection will automatically switch to the mirror projection, which cannot guarantee that the large screen will continue. Problems displaying screencast video.
  • the screen projection source device 1 and the screen projection target device 2 are in mirror projection.
  • the screen projection source device 1 projects the currently played video image on the screen of the screen projection target device 2 through mirror projection.
  • the screen projection mode between the screen projection source device 1 and the screen projection target device 2 is mirror projection.
  • the second embodiment of the present application when the screen projection source device 1 and the screen projection When the target devices 2 are in the state of streaming media projection, even if the video APP of the source device 1 is switched to the background, the streaming media projection can still be maintained, and the target device 2 still keeps displaying the video screen. That is to say, the solution provided by the second embodiment can ensure that during the process of playing video through streaming media projection, when the video APP retreats to the background, streaming media projection will continue to be maintained, which can ensure that the large screen continues to display the projection video, improving user experience.
  • the screen projection source device 1 when the screen projection source device 1 detects that the user stops streaming media projection from the system screen projection menu or the video application, the screen projection source device 1 and the screen projection target device 2 Switch from streaming to mirroring.
  • the system projection menu (also called the projection menu bar, or the projection control menu) can be provided for the user Operation
  • the screen projection menu of the system can display the current screen projection interface entry
  • the current screen projection interface entry can trigger the screen projection source device 1 to jump to the screen projection interface, such as the video playback interface of the video application.
  • the screen projection source device 1 when the screen projection source device 1 receives the user's stop operation on the video playback interface, the screen projection source device 1 can disconnect the streaming media projection screen connection with the screen projection target device 2 , and re-establish the screen mirroring connection with the screen mirroring target device 2.
  • a disconnection control may be displayed in the screen projection menu of the system.
  • the screen projection source device 1 may disconnect from the projection screen. Screen the streaming media screencasting connection between the target device 2, and re-establish the mirroring screencasting connection with the screencasting target device 2.
  • a switch control can be displayed in the screen projection menu of the system, and the switch control can be used to trigger switching between streaming media projection and mirror projection for users to view and operate, so that users can You need to switch between streaming media projection and mirror projection.
  • the screen projection mode between the screen projection source device 1 and the screen projection target device 2 is switched from streaming media projection to mirror projection .
  • the screen casting source device 1 and the screen casting target device 2 are in the screen casting state (mirror screen casting or streaming media casting)
  • the screen casting The source device 1 may display (for example, float) a screen projection icon on the screen, and the screen projection icon may be used to trigger displaying a system screen projection menu.
  • the screen-casting source device 1 may float and display a screen-casting icon in the desktop interface.
  • the screen projection source device 1 can also display the screen projection icon in suspension on the application interface other than the desktop interface.
  • the screen projection icon may be continuously displayed on the screen of the screen projection source device 1 for the user to operate.
  • the user can click the screen projection icon to trigger the screen projection source device to pop up the system screen projection menu when switching the screen projection mode according to the actual use requirements, and then the user can perform switching operations on the system screen projection menu.
  • the screen projection source device 1 plays video on the screen projection target device 2 through streaming media projection
  • the screen projection The screen projection method between the source device 1 and the screen projection target device 2 can maintain streaming media projection without automatically switching to mirror projection. That is to say, through the above-mentioned solution provided by the second embodiment of the application, the After the video APP on the screen source device 1 retreats to the background, no matter which applications are running in the foreground of the screen source device 1, the screen projection target device 2 can continue to display the screen projection video. Therefore, this application scheme can satisfy the user to continue to screen the mobile phone video screen While viewing the TV screen, it is also necessary to perform other application operations on the mobile phone.
  • FIG. 6 is a schematic diagram of an interface for switching between screen mirroring and streaming media projection based on FIG. 5 .
  • the flowchart shown in FIG. 5 is described below in conjunction with FIG. 6 .
  • the screen projection mode between the screen projection source device 1 and the screen projection target device 2 is mirror projection. At this time, the content displayed on the screen of the screen-casting source device 1 and the screen-casting target device 2 is completely consistent.
  • the screen-casting mode between the screen-casting source device 1 and the screen-casting target device 2 is automatically switched to streaming media Cast screen.
  • the screen display content of the screen-casting source device 1 and the screen-casting target device 2 may be inconsistent.
  • the screen display content of the screen-casting source device 1 is the interface of the video APP
  • the screen display content of the screen-casting target device 2 is the video APP.
  • the display effect can be displayed in full screen.
  • the screen projection source device 1 when the screen projection source device 1 detects that the video APP has retreated to the background, the screen projection method between the screen projection source device 1 and the screen projection target device 2 continues to maintain streaming media projection .
  • the screen projection source device 1 may display a desktop interface or a certain application interface, and the screen projection target device 2 may continue to display the video screen of the video APP.
  • the screen projection source device 1 may float and display a screen projection icon 14 on the screen.
  • the user can click the screen projection icon 14 .
  • the screen projection source device 1 when the screen projection source device 1 receives the user's operation on the screen projection icon 14 , the screen projection source device 1 can display the system screen projection menu 15 in a pop-up box on the screen. , the screen projection menu 15 of the system can display the current screen projection video APP entry 16 (for example, prompting "enter the video APP projection screen interface") and switch control 17 .
  • the screen projection source device 1 When the screen projection source device 1 receives the user's operation on the video APP portal 16, the screen projection source device 1 can jump from the current interface (such as the desktop interface) to the current screen projection interface of the video APP.
  • the current interface such as the desktop interface
  • the screen projection source device 1 When the screen projection source device 1 receives the user's operation on the switching control 17, the screen projection source device 1 can switch the current screen projection method to another screen projection method. For example, as shown in (d) in FIG. During operation, the screen projection source device 1 can switch from streaming media projection to mirror projection. In this way, the mirroring screen projection state shown in (a) in FIG. 6 can be returned.
  • This application also provides a third embodiment.
  • the third embodiment can automatically switch to mirror projection when the video APP retreats to the background during the process of playing video through streaming media projection. After the screen is displayed, it can support users to trigger switching operations by calling up the screen projection menu, so as to realize switching from mirror projection to streaming media projection, with better interactivity, more convenient and quicker, and improved user experience.
  • Fig. 7 shows a schematic flowchart of switching between screen mirroring and streaming media projection according to the third embodiment of the present application. As shown in FIG. 7, the process may include the following steps S301-S304.
  • the screen projection source device 1 and the screen projection target device 2 are in mirror projection.
  • the screen projection source device 1 projects the currently played video image on the screen of the screen projection target device 2 through mirror projection.
  • the screen projection mode between the screen projection source device 1 and the screen projection target device 2 is mirror projection.
  • the video APP in the mobile phone is projected to the TV through streaming media projection
  • the video APP is switched to the background and the TV returns to screen mirroring, then the mirroring screen will be quickly switched to streaming.
  • the solution for media projection can be as follows: the user can switch back to streaming media projection by operating on the screen projection menu of the mobile phone, so that the TV can continue to play the video.
  • the screen projection source device 1 when the screen projection source device 1 and the screen projection target device 2 are in the screen projection state (mirror screen projection or streaming media projection), the screen projection source device 1 can display on the screen (for example, a floating display) screen projection icon, which can be used to trigger the display of the system screen projection menu.
  • the screen projection icon please refer to the detailed description of the screen projection icon in the second embodiment above, which will not be repeated here.
  • the screen projection icon may be continuously displayed on the screen of the screen projection source device 1 for the user to operate.
  • the user can click the screen projection icon to trigger the screen projection source device to pop up the system screen projection menu when switching the screen projection mode according to the actual use requirements, and then the user can perform switching operations on the system screen projection menu. Convenient switching between mirroring screen projection and streaming media projection screen to improve user experience.
  • the screen projection source device 1 plays a video on the screen projection target device 2 through streaming media projection
  • the video APP in the screen projection source device 1 retreats to the background
  • the screen projection source device 1 and the screen projection target device 2 are switched from streaming media projection to mirror projection
  • the user can trigger the switching operation by calling up the projection menu to switch from mirror projection to streaming media projection.
  • FIG. 8 is a schematic diagram of an interface for switching between screen mirroring and streaming media projection based on FIG. 7 .
  • the flowchart shown in FIG. 7 is described below in conjunction with FIG. 8 .
  • the screen projection mode between the screen projection source device 1 and the screen projection target device 2 is mirror projection. At this time, the content displayed on the screen of the screen-casting source device 1 and the screen-casting target device 2 is completely consistent.
  • the screen-casting mode between the screen-casting source device 1 and the screen-casting target device 2 is automatically switched to streaming media Cast screen.
  • the screen display content of the screen-casting source device 1 and the screen-casting target device 2 may be inconsistent.
  • the screen display content of the screen-casting source device 1 is the interface of the video APP
  • the screen display content of the screen-casting target device 2 is the video APP.
  • the display effect can be displayed in full screen.
  • the screen projection source device 1 detects that the video APP has retreated to the background, the screen projection mode between the screen projection source device 1 and the screen projection target device 2 is automatically switched back to mirror projection .
  • the screen display content of the screen projection source device 1 and the screen projection target device 2 is completely consistent.
  • the screen projection source device 1 and the screen projection target device 2 both display a desktop interface or an application interface.
  • the screen projection target device 2 serving as a large screen stops playing the video of the video APP.
  • the screen projection source device 1 may float and display a screen projection icon 18 on the screen.
  • the user can click the screen projection icon 18 .
  • the screen projection source device 1 when the screen projection source device 1 receives the user's operation on the screen projection icon 18 , the screen projection source device 1 can display the system screen projection menu 19 in a pop-up box on the screen. , the screen projection menu 19 of the system can display the current screen projection video APP entry 19 (for example, "enter the video APP screen projection interface") and the switch control 20 .
  • the screen projection source device 1 When the screen projection source device 1 receives the user's operation on the video APP entry 19, the screen projection source device 1 can jump from the current interface (such as the desktop interface) to the latest screen projection interface of the video APP.
  • the current interface such as the desktop interface
  • the screen projection source device 1 When the screen projection source device 1 receives the user's operation on the switching control 20 , the screen projection source device 1 can switch the current screen projection method to another screen projection method. For example, as shown in (d) in FIG. 8 , assuming that the current screen projection method is mirror projection, the switching control 20 prompts that it can be switched to streaming media projection. During operation, the screen projection source device 1 can switch the screen projection mode to streaming media projection. In this way, it returns to the state of streaming media projection as shown in (b) in FIG. 8 . Therefore, this solution can improve the viewing experience of screen-casting video.
  • this embodiment of the present application does not limit the display content of the screen projection source device 1. It can remain unchanged, for example, as shown in (d) in Figure 8, the screen projection source device 1 can continue to display the screen projection menu 19; it can also update and display the video APP playback interface, for example, as shown in Figure 8 (b) , the screen-casting source device 1 can jump to the interface of the video APP.
  • the screen projection source device 1 when the screen projection source device 1 starts to play the video, it automatically switches from mirror projection to streaming media projection as an example.
  • the embodiment of the present application can also add conditional judgment, and only when the preset condition is satisfied, the switch from mirroring screen projection to streaming media projection will be triggered.
  • the aforementioned preset conditions may include at least one of the following: the screen projection source device 1 starts to play video, the network quality of the screen projection target device 2 is relatively good, and the remaining power of the screen projection source device 1 is less than or equal to the preset power threshold.
  • the preset conditions here are listed as examples, and the preset conditions may also include other restrictions, which may refer to specific conditions according to actual usage conditions, and are not limited in this embodiment of the present application.
  • the screen projection source device 1 and the screen projection target device 2 are in mirror projection, if it is determined that the screen projection source device 1 and/or the screen projection target device 2 meet the preset conditions, for example, if the screen projection source Device 1 starts to play the video and the network quality of the target device 2 is good, then the mirror projection between the source device 1 and the target device 2 is automatically switched to streaming media projection.
  • the screen projection target device 2 obtains video resources from the server to realize screen projection display.
  • the screen projection menu 30 can display the current screen projection video APP entry 31, which is used to trigger switching of the screen projection mode 32 for the control, and 33 for triggering the disconnection.
  • the screen projection source device 1 may first determine whether the process of the video APP still exists, and then perform different steps according to the determination result.
  • the screen projection source device 1 jumps to the screen projection interface of the video APP. In this case, the screen projection icon is still displayed on the screen of the screen projection source device 1 .
  • the screen projection source device 1 restarts the video APP.
  • the screen projection icon may still be displayed on the screen of the screen projection source device 1 .
  • the system of the source device 1 can only launch the video APP, so that the video APP restarts. Started, but the source device 1 for screencasting cannot accurately jump to the latest screencasting interface of the video APP. In actual implementation, the display interface after the video APP starts depends on the APP itself.
  • the screen-casting source device 1 and the screen-casting target device 2 are in the screen-casting state, if the screen-casting source device 1 receives a user click on another video source in the interface of the video APP, the screen-casting source device 1 will play the video source, and correspondingly The screen projection content of the ground projection target device 2 is updated to the video source.
  • the screen projection source device 1 may disconnect the wireless connection with the screen projection target device 2, and cancel the wireless screen projection function.
  • the screen projection icon may be canceled on the screen of the screen projection source device 1 .
  • the video APP entrance and switching controls for wireless projection are provided through the projection menu, so that whether it is during mirror projection or streaming media projection, the user can pass through the projection menu Operation, to realize free switching between streaming media projection and mirror projection, which improves the user's projection experience.
  • FIG. 10 shows a schematic flow chart of interaction between the third-party video APP side and the electronic device side to implement screen projection. As shown in Fig. 10, the flow chart includes the following steps S401-S410.
  • the electronic device mentioned here refers to the electronic device that initiates screen projection, for example, the electronic device corresponds to the screen projection source device 1 above, such as a mobile phone.
  • the large-screen device described here may correspond to the screen-casting target device 2 above, such as a TV.
  • the electronic device when the electronic device plays the video of the video APP and the electronic device is in the mirror projection state, the electronic device can automatically switch the screen projection mode from the mirror projection screen to the streaming media projection screen, so that the large-screen device can pass the stream The video is played in the way of media projection, which meets the needs of users and improves the user experience.
  • the electronic device searches the device list, and when the electronic device finds a large-screen device in the same local area network, the electronic device establishes a wireless connection with the large-screen device and performs screen projection negotiation.
  • the electronic device If the electronic device has a connected device, the electronic device directly connects to the device and performs screen projection negotiation.
  • the electronic device may broadcast the result of the screen projection negotiation to a third-party video APP.
  • the electronic device writes the information of the connected device into a database (data base, DB).
  • step S403 the information of the large-screen device connected to the electronic device can be obtained from the DB.
  • the electronic device implementing the method includes hardware structures and/or software modules corresponding to each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Professionals may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the protection scope of the present application.
  • the embodiment of the present application may divide the electronic device into functional modules according to the above method examples.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. It should be noted that the division of modules in the embodiment of the present application is schematic, and is only a logical function division, and there may be other feasible division methods in actual implementation. In the following, description will be made by taking the division of each functional module corresponding to each function as an example.
  • FIG. 11 is a schematic block diagram of an apparatus 700 for controlling screen projection provided by an embodiment of the present application.
  • the apparatus 700 may be used to perform the actions performed by the screen projection source device in the above method embodiments.
  • the device 700 includes a screen projection control unit 710 and a display unit 720.
  • the screen projection control unit 710 is configured to, in response to the first operation of the user, control the screen projection source device to project the screen to the screen projection target device through a first screen projection method;
  • the screen projection control unit 710 is further configured to control the screen projection source device to project the screen to the screen projection target device through a second screen projection method in response to the second operation of the user ordering the streaming media file in the first application,
  • the first application is a streaming media application in the screen projection source device;
  • the display unit 720 is configured to display a desktop interface on the screen of the screen projection source device in response to a third operation performed by the user on the screen projection source device, and a screen projection icon is displayed on the desktop interface; wherein, the The second screen projection method is maintained between the screen projection source device and the screen projection target device;
  • the display unit 720 is further configured to display a screen projection menu bar on the screen of the screen projection source device in response to the user's fourth operation on the screen projection icon, and the screen projection menu bar includes a first control;
  • the screen projection control unit 710 is further configured to, in response to the user's fifth operation on the first control, control the screen projection source device to project a screen to the screen projection target device in a first screen projection manner.
  • the screen projection source device such as a mobile phone
  • the screen projection target device such as a TV
  • the screen projection source device plays a video
  • the screen projection source device plays a video
  • you need to switch to the mirror projection screen you only need to call up the screen projection menu to switch the screen projection operation.
  • the application scheme provides a fast screen projection switch entry in the screen projection menu, it can realize free switching between mirror image projection and streaming media projection, and can meet the requirements of users while the target device for screen projection keeps playing the video on the screen. It can also perform other application operations on the screen projection source device, which improves the user screen projection experience.
  • the first screen projection method follows a first screen projection protocol, and the first screen projection protocol supports the screen projection target device to obtain the screen projection source device's information from the screen projection source device.
  • the on-screen content is displayed and the on-screen content is displayed.
  • the first screen projection protocol includes a mirror image projection Miracst protocol or a Cast+ protocol.
  • the second screen projection method follows the second screen projection protocol, and the second screen projection protocol supports the screen projection target device to obtain the streaming media file from the server and play the stream media files.
  • the second screen projection protocol includes streaming media screen projection DLNA protocol.
  • the device 700 further includes a transceiver unit 730;
  • the screen projection control unit 710 is specifically configured to control the screen projection source device to establish a connection with the screen projection target device based on the first screen projection protocol;
  • the transceiving unit 730 is configured for the screen projection source device to send the screen display content of the screen projection source device to the screen projection target device, so that the screen projection target device receives and displays the screen content of the screen projection source device. display content.
  • the screen projection control unit 710 is specifically configured to control the screen projection source device to establish a connection with the screen projection target device based on the second screen projection protocol;
  • the transceiving unit 730 is used for the screen projection source device to send the network address of the streaming media file to the screen projection target device, so that the screen projection target device can read from the The server corresponding to the first application obtains the streaming media file.
  • the above-mentioned first control may be a screen projection switch control, configured to trigger switching from the second screen projection manner to the first screen projection manner.
  • the screen-casting target device stops obtaining the streaming media data for screen-casting from the server of the first application, and the screen-casting target device receives and displays the streaming media data for screen-casting sent by the screen-casting source device. Therefore, by operating the screen projection switch control in the screen projection menu bar, it can trigger the stop of streaming media projection and return to mirror projection. Due to the convenient operation, the user's screen projection experience can be improved.
  • the foregoing first control may be a disconnection control, configured to trigger disconnection of a connection established based on the second screen projection protocol.
  • the screen-casting target device stops obtaining streaming media data for screen-casting from the server of the first application. Therefore, by operating on the disconnect control in the screen projection menu bar, the streaming media projection can be triggered to stop, and the mirror projection can be returned if the connection established based on the first projection protocol is not disconnected. Due to the convenient operation, the user's screen projection experience can be improved.
  • the screen projection menu bar further includes at least one screen projection information option, and each screen projection information option in the at least one screen projection information option indicates a screen projection event of a streaming media application.
  • the device 700 further includes a sensing unit 740, configured to receive a sixth operation performed by the user on the first screen projection information option, the first screen projection information option indicating A screen-casting event of the first application;
  • the screen projection control unit 710 is further configured to, in response to the sixth operation, determine whether the first application is in the running state; if the first application is in the running state, display the screen projection source device on the The first application is projecting the first interface of the screen; if the first application is in the closed state, trigger the opening of the first application and display the second interface of the first application; wherein, the first application has exited The status of the screencast.
  • the user only needs to call up the screen projection menu on the mobile phone and operate the screen projection information options on the screen projection menu, and the mobile phone can be triggered to quickly jump to the video application interface that is being screen projection.
  • the mobile phone can automatically launch the video application, so that the video application is started. Due to the convenient operation, the user's screen projection experience can be improved.
  • the sensing unit 740 is further configured to receive a seventh operation performed by the user on the second control in the first interface
  • the screen projection control unit 710 is further configured to, in response to the seventh operation, control the screen projection source device to stop projecting the screen to the screen projection target device through the second screen projection method, and In the screen projection mode, the screen is projected to the screen projection target device.
  • the sensing unit 740 is also used for the eighth operation that the screen-casting source device receives a user's order of streaming media files in the first application;
  • the screen projection control unit 710 is further configured to, in response to the eighth operation, control the screen projection source device to project a screen to the screen projection target device through the second screen projection method.
  • the mobile phone when the mobile phone can automatically launch the video application, so that the video application is turned on, once the user’s video-on-demand operation is detected, the mobile phone and other screen projection source devices will use streaming media projection to the TV and other screen projection targets. Screencast on the device. Due to the convenient operation, the user's screen projection experience can be improved.
  • the screen projection source device in response to the second operation of the user ordering the streaming media file in the first application, performs screen projection to the screen projection target device through a second screen projection method, including :
  • the screen projection source device stops performing screen projection to the screen projection target device through the first screen projection method. Projecting a screen, and projecting a screen to the target device for screen projection through the second screen projection method;
  • the preset switching condition includes: the first application supports the second screen projection method, or the remaining power of the screen projection source device is lower than or equal to a preset power threshold, or the screen projection target device The signal quality of the network you are on is better than or equal to the preset signal quality.
  • the screen projection source device plays audio and video files and meets the preset switching conditions, it can automatically switch from mirror projection to streaming media projection without user operation. Due to the convenient operation, the user's screen projection experience can be improved.
  • the first application when the screen projection source device displays the desktop interface, the first application is switched to run in the background of the screen projection source device.
  • the screen projection source device and the screen projection target device are in the same Wi-Fi network.
  • FIG. 12 is a schematic block diagram of an apparatus 800 for controlling screen projection provided by an embodiment of the present application.
  • the apparatus 800 may be used to perform the actions performed by the screen projection source device in the above method embodiments.
  • the device 800 includes a screen projection control unit 810 and a display unit 820 .
  • the screen projection control unit 810 is configured to, in response to the user's first operation on the screen projection source device, control the screen projection source device to project the screen to the screen projection target device through a first screen projection method;
  • the screen projection control unit 810 is further configured to respond to the user's second operation of ordering the streaming media file in the first application, the screen projection source device performs screen projection to the screen projection target device through a second screen projection method, and controls
  • the first application is a streaming media application in the screen projection source device;
  • the display unit 820 is configured to respond to a third operation of the user on the screen projection source device, the screen projection source device displays a desktop interface, and the desktop interface displays a screen projection icon; wherein, the screen projection source device The screen projection mode with the screen projection target device is switched from the second screen projection mode to the first screen projection mode;
  • the display unit 820 is further configured to, in response to the user's fourth operation on the screen projection icon, the screen projection source device display a screen projection menu bar, and the screen projection menu bar includes a first control;
  • the screen projection control unit 810 is further configured to, in response to the user's fifth operation on the first control, control the screen projection source device to project a screen to the screen projection target device in a second screen projection manner.
  • the screen projection source device such as a mobile phone
  • the screen projection target device such as a TV
  • the screen projection source device plays a video
  • the screen projection mode switches back to mirror projection.
  • you need to switch from mirror projection to streaming media projection you only need to call up the projection menu to switch between projections.
  • the application scheme provides a fast screen projection switch entry in the screen projection menu, it can realize free switching between mirror image projection and streaming media projection, and can meet the requirements of users while the target device for screen projection keeps playing the video on the screen. It can also perform other application operations on the screen projection source device, which improves the user screen projection experience.
  • the first screen projection method follows a first screen projection protocol, and the first screen projection protocol supports the screen projection target device to obtain the screen projection source device's information from the screen projection source device.
  • the on-screen content is displayed and the on-screen content is displayed.
  • the first screen projection protocol includes a mirror image projection Miracst protocol or a Cast+ protocol.
  • the second screen projection method follows the second screen projection protocol, and the second screen projection protocol supports the screen projection target device to obtain the streaming media file from the server and play the stream media files.
  • the second screen projection protocol includes streaming media screen projection DLNA protocol.
  • the apparatus 800 may further include a transceiver unit 830 .
  • the screen projection control unit 810 is specifically configured to control the screen projection source device to establish a connection with the screen projection target device based on the first screen projection protocol.
  • the transceiving unit 830 is used for the screen projection source device to send the screen display content of the screen projection source device to the screen projection target device, so that the screen projection target device receives and displays the screen display content of the screen projection source device content.
  • the screen projection control unit 810 is specifically configured to control the screen projection source device to establish a connection with the screen projection target device based on the second screen projection protocol.
  • the transceiving unit 830 is used for the screen projection source device to send the network address of the streaming media file to the screen projection target device, so that the screen projection target device, according to the network address of the streaming media file, from the second A server corresponding to an application obtains the streaming media file.
  • the above-mentioned first control may be a screen projection switch control, configured to trigger switching from the first screen projection mode to the second screen projection mode.
  • the screen projection target device stops receiving the streaming media data sent by the screen projection source device for screen projection, and the screen projection target device uses the network address for streaming media projection sent by the screen projection source device.
  • An application server acquires streaming media data for screen projection and displays it. Therefore, by operating the screen projection switch control in the screen projection menu bar, the mirror projection can be triggered to stop and return to the streaming media projection. Due to the convenient operation, the user's screen projection experience can be improved.
  • the foregoing first control may also be a disconnection control, configured to trigger disconnection of a connection established based on the first screen projection protocol.
  • the screen projection source device stops sending screen projection data to the screen projection target device. Therefore, by operating on the disconnect control in the screen projection menu bar, the mirroring screen projection can be stopped, and the streaming media projection can be returned if the connection established based on the second screen projection protocol is not disconnected. Due to the convenient operation, the user's screen projection experience can be improved.
  • the foregoing first control may also be a screen projection information option.
  • the screen projection menu bar includes at least one screen projection information option, and each screen projection information option in the at least one screen projection information option indicates a screen projection event of a streaming media application;
  • the apparatus 800 may further include a sensing unit 840.
  • the sensing unit 840 is used for the screen projection source device to receive a sixth operation of the user on the first screen projection information option.
  • a screen projection information option indicates a screen projection event of the first application, and the first screen projection information option serves as the first control;
  • the screen projection control unit 810 is specifically configured to: in response to the sixth operation, when the first application is in the running state, the screen projection source device stops using the first screen projection method to The screen projection target device performs screen projection, and performs screen projection to the screen projection target device through the second screen projection method.
  • the user only needs to call up the screen projection menu on the mobile phone and operate the screen projection information option on the screen projection menu, which can trigger the mobile phone to quickly jump to the video application interface that is being screencast, and trigger the screen projection from the mirror image Quickly switch to streaming casting. Due to the convenient operation, the user's screen projection experience can be improved.
  • the screen projection control unit 810 is further configured to, in response to the sixth operation, control the first application to start when the first application is in a closed state.
  • the display unit 820 is configured to display the second interface of the first application; wherein, the first application is in a state of exiting screen projection.
  • the mobile phone can automatically launch the video application, so that the video application is started. Due to the convenient operation, the user's screen projection experience can be improved.
  • the sensing unit 830 is further configured to receive a seventh operation of the user ordering the streaming media file in the first application.
  • the screen projection control unit 810 is further configured to, in response to the seven operations, project the screen projection source device to the screen projection target device through the second screen projection method.
  • the mobile phone when the mobile phone can automatically launch the video application, so that the video application is turned on, once the user’s video-on-demand operation is detected, the mobile phone and other screen projection source devices will use streaming media projection to the TV and other screen projection targets. Screencast on the device. Due to the convenient operation, the user's screen projection experience can be improved.
  • the screen projection source device in response to the second operation of the user ordering the streaming media file in the first application, performs screen projection to the screen projection target device through a second screen projection method, including :
  • the screen projection source device stops performing screen projection to the screen projection target device through the first screen projection method. Projecting a screen, and projecting a screen to the target device for screen projection through the second screen projection method;
  • the preset switching condition includes: the first application supports the second screen projection method, or the remaining power of the screen projection source device is lower than or equal to a preset power threshold, or the screen projection target device The signal quality of the network you are on is better than or equal to the preset signal quality.
  • the screen projection source device plays audio and video files and meets the preset switching conditions, it can automatically switch from mirror projection to streaming media projection without user operation. Due to the convenient operation, the user's screen projection experience can be improved.
  • the first application when the screen projection source device displays the desktop interface, the first application is switched to run in the background of the screen projection source device.
  • the screen projection source device and the screen projection target device are in the same Wi-Fi network.
  • the device 800 may correspond to the implementation of the method described in the embodiment of the present application, and the above-mentioned and other operations and/or functions of the units in the device 800 are for realizing the corresponding flow of the method, and for the sake of brevity, are not described here Let me repeat.
  • FIG. 13 is a schematic structural diagram of an electronic device 900 provided by an embodiment of the present application.
  • the electronic device 900 includes: a processor 910 , a memory 920 , a communication interface 930 , and a bus 940 .
  • the processor 910 may be connected to the memory 920 .
  • the memory 920 can be used to store the program codes and data. Therefore, the memory 920 may be a storage unit inside the processor 910, or an external storage unit independent of the processor 910, or may include a storage unit inside the processor 910 and an external storage unit independent of the processor 910. part.
  • the electronic device 900 may further include a bus 940 .
  • the memory 920 and the communication interface 930 may be connected to the processor 910 through the bus 940 .
  • the bus 940 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus or the like.
  • PCI peripheral component interconnect
  • EISA extended industry standard architecture
  • the bus 940 can be divided into address bus, data bus, control bus and so on. For ease of representation, only one line is used in FIG. 13 , but it does not mean that there is only one bus or one type of bus.
  • the processor 910 may be a central processing unit (central processing unit, CPU).
  • the processor can also be other general-purpose processors, digital signal processors (digital signal processors, DSPs), application specific integrated circuits (application specific integrated circuits, ASICs), off-the-shelf programmable gate arrays (field programmable gate arrays, FPGAs) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • the processor 910 adopts one or more integrated circuits for executing related programs, so as to implement the technical solutions provided by the embodiments of the present application.
  • the memory 920 may include read-only memory and random-access memory, and provides instructions and data to the processor 910.
  • a portion of processor 910 may also include non-volatile random access memory.
  • processor 910 may also store device type information.
  • the processor 910 executes the computer-executable instructions in the memory 920 to perform the operation steps of the above method.
  • the electronic device 900 may correspond to the device 700 or the device 800 in the embodiment of the present application
  • the processor 910 in the electronic device 900 may correspond to the screen projection control unit 710 or the device 800 in the device 700
  • the screen projection control unit 810 in the electronic device 900 may correspond to the transceiver unit 730 in the device 700 or the transceiver unit 830 in the device 800 .
  • the above and other operations and/or functions of each unit in the device 800 are respectively used to implement the corresponding process of the above method, and for the sake of brevity, details are not repeated here.
  • the embodiment of the present application further provides a chip, including a processor.
  • the processor is used to read and execute the computer program stored in the memory, so as to implement the methods in the above aspects.
  • the embodiment of the present application also provides a computer-readable medium, the computer-readable medium stores program codes, and when the computer program codes run on the computer, the computer executes the above aspects method in .
  • the embodiments of the present application further provide a computer program product, the computer program product including: computer program code, when the computer program code is run on the computer, the computer is made to execute the above aspects Methods.
  • the electronic device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer.
  • the hardware layer may include hardware such as a central processing unit (central processing unit, CPU), a memory management unit (memory management unit, MMU), and memory (also called main memory).
  • the operating system of the operating system layer can be any one or more computer operating systems that realize business processing through processes, for example, Linux operating system, Unix operating system, Android operating system, iOS operating system, or windows operating system.
  • the application layer may include applications such as browsers, address books, word processing software, and instant messaging software.
  • the embodiment of the present application does not specifically limit the specific structure of the execution subject of the method provided in the embodiment of the present application, as long as the program that records the code of the method provided in the embodiment of the present application can be executed according to the method provided in the embodiment of the present application Just communicate.
  • the subject of execution of the method provided by the embodiment of the present application may be an electronic device, or a functional module in the electronic device capable of invoking a program and executing the program.
  • Computer-readable media may include, but are not limited to, magnetic storage devices (such as hard disks, floppy disks, or tapes, etc.), optical disks (such as compact discs (compact disc, CD), digital versatile discs (digital versatile disc, DVD), etc. ), smart cards and flash memory devices (for example, erasable programmable read-only memory (EPROM), card, stick or key drive, etc.).
  • magnetic storage devices such as hard disks, floppy disks, or tapes, etc.
  • optical disks such as compact discs (compact disc, CD), digital versatile discs (digital versatile disc, DVD), etc.
  • smart cards and flash memory devices for example, erasable programmable read-only memory (EPROM), card, stick or key drive, etc.
  • Various storage media described herein can represent one or more devices and/or other machine-readable media for storing information.
  • the term "machine-readable medium” may include, but is not limited to, wireless channels and various other media capable of storing, containing and/or carrying instructions and/or data.
  • processors mentioned in the embodiment of the present application may be a central processing unit (central processing unit, CPU), and may also be other general processors, digital signal processors (digital signal processor, DSP), application specific integrated circuits ( application specific integrated circuit (ASIC), off-the-shelf programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • the memory mentioned in the embodiments of the present application may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories.
  • the non-volatile memory can be read-only memory (read-only memory, ROM), programmable read-only memory (programmable ROM, PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically programmable Erases programmable read-only memory (electrically EPROM, EEPROM) or flash memory.
  • the volatile memory may be random access memory (RAM).
  • RAM can be used as an external cache.
  • RAM may include the following forms: static random access memory (static RAM, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM) , double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (synchlink DRAM, SLDRAM) and Direct memory bus random access memory (direct rambus RAM, DR RAM).
  • static random access memory static random access memory
  • dynamic RAM dynamic random access memory
  • DRAM synchronous dynamic random access memory
  • SDRAM synchronous DRAM
  • double data rate SDRAM double data rate SDRAM
  • DDR SDRAM double data rate SDRAM
  • ESDRAM enhanced synchronous dynamic random access memory
  • SLDRAM synchronous connection dynamic random access memory
  • Direct memory bus random access memory direct rambus RAM, DR RAM
  • the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components
  • the memory storage module may be integrated in the processor.
  • memories described herein are intended to include, but are not limited to, these and any other suitable types of memories.
  • the disclosed systems, devices and methods may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium.
  • the essence of the technical solution of this application, or the part that contributes to the prior art, or the part of the technical solution can be embodied in the form of computer software products, which are stored in a storage
  • the computer software product includes several instructions, which are used to make a computer device (which may be a personal computer, server, or network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium may include, but is not limited to: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Transforming Electric Information Into Light Information (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请提供了一种控制投屏的方法、电子设备及计算机可读存储介质,涉及通信技术领域。当投屏源设备(例如手机)和投屏目标设备(例如电视机)进行镜像投屏时,若投屏源设备播放视频则自动切换为流媒体投屏,如果投屏源设备中视频APP退到后台运行,那么可以控制投屏方式继续保持流媒体投屏,若需要切换到镜像投屏,则只需调出投屏菜单进行投屏切换操作即可。由于本申请方案在投屏菜单中提供了投屏快速切换入口,可以实现在镜像投屏和流媒体投屏之间自由切换,并且可以满足在投屏目标设备保持投屏播放视频的同时,用户还能够在投屏源设备进行其他应用操作的需求,提升了用户投屏体验。

Description

控制投屏的方法、电子设备及计算机可读存储介质
本申请要求于2021年08月17日提交国家知识产权局、申请号为202110945404.8、申请名称为“控制投屏的方法、电子设备及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,尤其涉及一种控制投屏的方法、电子设备及计算机可读存储介质。
背景技术
随着终端技术及互联网技术的发展,手机等电子设备安装的应用程序(application,APP)越来越丰富,使用功能越来越多样化。例如,可以将手机上显示的内容,通过投屏方式,在诸如电视机等大屏电子设备上进行显示,提升视觉效果。
通常,两个电子设备之间可以采用镜像投屏或者流媒体投屏的方式进行投屏。例如,流媒体投屏可以应用于视频播放场景,镜像投屏可以应用于需要对手机上的内容浏览或放大显示的各种场景。由于不同场景采用不同的投屏方式,因此当场景发生变化时,就需要切换投屏方式。
然而,目前流媒体投屏和镜像投屏间的切换不够灵活便捷,用户体验较差。
发明内容
本申请提供一种控制投屏的方法、电子设备及计算机可读存储介质,解决了现有技术中镜像投屏和流媒体投屏间切换不够灵活便捷的问题。
为达到上述目的,本申请采用如下技术方案:
第一方面,本申请提供一种控制投屏的方法,该方法包括:
响应于用户的第一操作,所述投屏源设备通过第一投屏方式向投屏目标设备进行投屏;
响应于用户点播第一应用中的流媒体文件的第二操作,所述投屏源设备通过第二投屏方式向所述投屏目标设备进行投屏,所述第一应用为所述投屏源设备中的流媒体应用;
响应于用户对所述投屏源设备的第三操作,所述投屏源设备显示桌面界面,所述桌面界面中显示有投屏图标;其中,所述投屏源设备与所述投屏目标设备之间保持所述第二投屏方式;
响应于用户对所述投屏图标的第四操作,所述投屏源设备显示投屏菜单栏,所述投屏菜单栏中包括第一控件;
响应于用户对所述第一控件的第五操作,所述投屏源设备通过第一投屏方式向所述投屏目标设备进行投屏。
通过上述方案,当投屏源设备(例如手机)和投屏目标设备(例如电视机)进行镜像投屏时,若投屏源设备播放视频则自动切换为流媒体投屏,如果投屏源设备中视频APP退到后台运行,那么可以控制投屏方式继续保持流媒体投屏,若需要切换到镜像投屏,则只 需调出投屏菜单进行投屏切换操作即可。由于本申请方案在投屏菜单中提供了投屏快速切换入口,可以实现在镜像投屏和流媒体投屏之间自由切换,并且可以满足在投屏目标设备保持投屏播放视频的同时,用户还能够在投屏源设备进行其他应用操作的需求,提升了用户投屏体验。
在第一方面的一些可能实现方式中,所述投屏源设备和所述投屏目标设备处于同一无线保真Wi-Fi网络中。
示例性地,假设投屏目标设备为开启状态且已连接Wi-Fi网络,第一操作可以为用户点击投屏源设备上的系统投屏控件的操作,触发投屏源设备与投屏目标设备通过该Wi-Fi网络建立连接,并且投屏源设备通过第一投屏方式向投屏目标设备进行投屏。对于第一操作的可能实现形式本申请实施例不作限定。
在第一方面的一些可能实现方式中,所述第一投屏方式遵循第一投屏协议,所述第一投屏协议支持所述投屏目标设备从所述投屏源设备获取所述投屏源设备的屏显内容并显示所述屏显内容。示例性地,所述第一投屏协议包括镜像投屏Miracst协议或者Cast+协议。
在第一方面的一些可能实现方式中,所述第二投屏方式遵循所述第二投屏协议,所述第二投屏协议支持所述投屏目标设备从服务器获取所述流媒体文件并播放所述流媒体文件。示例性地,所述第二投屏协议包括流媒体投屏DLNA协议。
在第一方面的一些可能实现方式中,所述投屏源设备通过第一投屏方式向投屏目标设备进行投屏,包括:
所述投屏源设备与所述投屏目标设备基于第一投屏协议建立连接;
所述投屏源设备向所述投屏目标设备发送所述投屏源设备的屏显内容,以使得所述投屏目标设备接收并显示所述投屏源设备的屏显内容。
在第一方面的一些可能实现方式中,所述投屏源设备通过第二投屏方式向所述投屏目标设备进行投屏,包括:
所述投屏源设备与所述投屏目标设备基于第二投屏协议建立连接;
所述投屏源设备向所述投屏目标设备发送所述流媒体文件的网络地址,以使得所述投屏目标设备根据所述流媒体文件的网络地址,从所述第一应用对应的服务器获取所述流媒体文件。
在第一方面的一些可能实现方式中,上述第一控件可以是投屏切换控件,用于触发从第二投屏方式切换到第一投屏方式。在此情况下,投屏目标设备停止从第一应用的服务器获取用于投屏的流媒体数据,并且投屏目标设备接收投屏源设备发送的用于投屏的流媒体数据并进行显示。因此通过在投屏菜单栏中的投屏切换控件上操作,可触发流媒体投屏停止,返回到镜像投屏。由于操作便捷,因此可提升用户的投屏体验。
在第一方面的一些可能实现方式中,上述第一控件可以是断开连接控件,用于触发断开基于第二投屏协议建立的连接。在此情况下,投屏目标设备停止从第一应用的服务器获取用于投屏的流媒体数据。因此通过在投屏菜单栏中的断开连接控件上操作,可触发流媒体投屏停止,在基于第一投屏协议建立的连接未断开的情况下可返回到镜像投屏。由于操作便捷,因此可提升用户的投屏体验。
在第一方面的一些可能实现方式中,所述投屏菜单栏中还包括至少一个投屏信息选项,所述至少一个投屏信息选项中的每个投屏信息选项指示一个流媒体应用的投屏事件。所述 方法还包括:
所述投屏源设备接收到用户在第一投屏信息选项上的第六操作,所述第一投屏信息选项指示所述第一应用的投屏事件;
响应于所述第六操作,所述投屏源设备判断所述第一应用是否处于运行状态;
若所述第一应用处于运行状态,则所述投屏源设备显示所述第一应用正在投屏的第一界面;
若所述第一应用处于关闭状态,则所述投屏源设备触发所述第一应用开启,并显示所述第一应用的第二界面;其中,第一应用处于已退出投屏的状态。
通过上述方案,用户只需在手机上调出投屏菜单并在投屏菜单上对投屏信息选项操作,即可触发手机快速跳转到正在投屏的视频应用界面。其中,对于视频应用已关闭的特殊情况,手机可以自动拉起视频应用,使得视频应用开启。由于操作便捷,因此可提升用户的投屏体验。
在第一方面的一些可能实现方式中,在所述投屏源设备显示所述第一应用正在投屏的第一界面之后,所述方法还包括:
所述投屏源设备接收到用户在所述第一界面中的第二控件上的第七操作;
响应于所述第七操作,所述投屏源设备停止通过所述第二投屏方式向所述投屏目标设备进行投屏,并通过所述第一投屏方式向所述投屏目标设备进行投屏。
通过上述方案,可以通过在视频应用界面上操作,触发停止流媒体投屏,快速切换到镜像投屏。
在第一方面的一些可能实现方式中,在所述投屏源设备触发所述第一应用开启,并显示所述第一应用的第二界面之后,所述方法还包括:
所述投屏源设备接收到用户点播所述第一应用中的流媒体文件的第八操作;
响应于所述第八操作,所述投屏源设备通过所述第二投屏方式向所述投屏目标设备进行投屏。
通过上述方案,在手机可以自动拉起视频应用,使得视频应用开启的情况下,一旦检测到用户的点播视频操作,则手机等投屏源设备采用流媒体投屏方式在电视机等投屏目标设备上进行投屏。由于操作便捷,因此可提升用户的投屏体验。
在第一方面的一些可能实现方式中,所述响应于用户点播第一应用中的流媒体文件的第二操作,所述投屏源设备通过第二投屏方式向所述投屏目标设备进行投屏,包括:
响应于用户点播所述第一应用中的流媒体文件的第二操作,若满足预设切换条件,则所述投屏源设备停止通过所述第一投屏方式向所述投屏目标设备进行投屏,并通过所述第二投屏方式向所述投屏目标设备进行投屏;
其中,所述预设切换条件包括:所述第一应用支持所述第二投屏方式,或者所述投屏源设备的剩余电量低于或等于预设电量阈值,或者所述投屏目标设备所处网络的信号质量优于或等于预设信号质量。
通过上述方案,当判断投屏源设备播放音视频文件且满足预设切换条件时,可以从镜像投屏自动切换到流媒体投屏,无需用户操作。由于操作便捷,因此可提升用户的投屏体验。
在第一方面的一些可能实现方式中,所述方法还包括:在所述投屏源设备显示所述桌 面界面的情况下,所述投屏源设备将所述第一应用切换到后台运行。
第二方面,本申请提供一种控制投屏的方法,包括:
响应于用户对投屏源设备的第一操作,所述投屏源设备通过第一投屏方式向投屏目标设备进行投屏;
响应于用户点播第一应用中的流媒体文件的第二操作,所述投屏源设备通过第二投屏方式向所述投屏目标设备进行投屏,所述第一应用为所述投屏源设备中的流媒体应用;
响应于用户对所述投屏源设备的第三操作,所述投屏源设备显示桌面界面,所述桌面界面中显示有投屏图标;其中,所述投屏源设备与所述投屏目标设备之间的投屏方式从所述第二投屏方式切换到所述第一投屏方式;
响应于用户对所述投屏图标的第四操作,所述投屏源设备显示投屏菜单栏,所述投屏菜单栏中包括第一控件;
响应于用户对所述第一控件的第五操作,所述投屏源设备通过第二投屏方式向所述投屏目标设备进行投屏。
通过上述方案,当投屏源设备(例如手机)和投屏目标设备(例如电视机)进行镜像投屏时,若投屏源设备播放视频则自动切换为流媒体投屏,当投屏源设备中视频APP退到后台运行时,投屏方式切回到镜像投屏,若需要从镜像投屏切换到流媒体投屏,则只需调出投屏菜单进行投屏切换操作即可。由于本申请方案在投屏菜单中提供了投屏快速切换入口,可以实现在镜像投屏和流媒体投屏之间自由切换,并且可以满足在投屏目标设备保持投屏播放视频的同时,用户还能够在投屏源设备进行其他应用操作的需求,提升了用户投屏体验。
在第二方面的一些可能实现方式中,所述投屏源设备和所述投屏目标设备处于同一无线保真Wi-Fi网络中。
示例性地,假设投屏目标设备为开启状态且已连接Wi-Fi网络,第一操作可以为用户点击投屏源设备上的系统投屏控件的操作,触发投屏源设备与投屏目标设备通过该Wi-Fi网络建立连接,并且投屏源设备通过第一投屏方式向投屏目标设备进行投屏。对于第一操作的可能实现形式本申请实施例不作限定。
在第二方面的一些可能实现方式中,所述第一投屏方式遵循第一投屏协议,所述第一投屏协议支持所述投屏目标设备从所述投屏源设备获取所述投屏源设备的屏显内容并显示所述屏显内容。示例性地,所述第一投屏协议包括镜像投屏Miracst协议或者Cast+协议。
在第二方面的一些可能实现方式中,所述第二投屏方式遵循所述第二投屏协议,所述第二投屏协议支持所述投屏目标设备从服务器获取所述流媒体文件并播放所述流媒体文件。示例性地,所述第二投屏协议包括流媒体投屏DLNA协议。
在第二方面的一些可能实现方式中,所述投屏源设备通过第一投屏方式向投屏目标设备进行投屏,包括:所述投屏源设备与所述投屏目标设备基于第一投屏协议建立连接;所述投屏源设备向所述投屏目标设备发送所述投屏源设备的屏显内容,以使得所述投屏目标设备接收并显示所述投屏源设备的屏显内容。
在第二方面的一些可能实现方式中,所述投屏源设备通过第二投屏方式向所述投屏目标设备进行投屏,包括:所述投屏源设备与所述投屏目标设备基于第二投屏协议建立连接;所述投屏源设备向所述投屏目标设备发送所述流媒体文件的网络地址,以使得所述投屏目 标设备根据所述流媒体文件的网络地址,从所述第一应用对应的服务器获取所述流媒体文件。
在第二方面的一些可能实现方式中,上述第一控件可以是投屏切换控件,用于触发从第一投屏方式切换到第二投屏方式。在此情况下,投屏目标设备停止接收投屏源设备发送的用于投屏的流媒体数据,并且投屏目标设备根据投屏源设备发送的用于流媒体投屏的网络地址,从第一应用的服务器获取用于投屏的流媒体数据并进行显示。因此通过在投屏菜单栏中的投屏切换控件上操作,可触发镜像投屏停止,返回到流媒体投屏。由于操作便捷,因此可提升用户的投屏体验。
在第二方面的一些可能实现方式中,上述第一控件还可以是断开连接控件,用于触发断开基于第一投屏协议建立的连接。在此情况下,投屏源设备停止向投屏目标设备发送投屏数据。因此通过在投屏菜单栏中的断开连接控件上操作,可触发镜像投屏停止,在基于第二投屏协议建立的连接未断开的情况下可返回到流媒体投屏。由于操作便捷,因此可提升用户的投屏体验。
在第二方面的一些可能实现方式中,上述第一控件还可以是投屏信息选项。所述投屏菜单栏中包括至少一个投屏信息选项,所述至少一个投屏信息选项中的每个投屏信息选项指示一个流媒体应用的投屏事件;
所述响应于用户对所述第一控件的第五操作,所述投屏源设备通过第二投屏方式向所述投屏目标设备进行投屏,包括:
所述投屏源设备接收到用户在第一投屏信息选项上的第六操作,所述第一投屏信息选项指示所述第一应用的投屏事件,所述第一投屏信息选项作为所述第一控件;
响应于所述第六操作,在所述第一应用处于运行状态的情况下,所述投屏源设备停止通过所述第一投屏方式向所述投屏目标设备进行投屏,并通过所述第二投屏方式向所述投屏目标设备进行投屏。
通过上述方案,用户只需在手机上调出投屏菜单并在投屏菜单上对投屏信息选项操作,即可触发手机快速跳转到正在投屏的视频应用界面,并触发从镜像投屏快速切换到流媒体投屏。由于操作便捷,因此可提升用户的投屏体验。
在第二方面的一些可能实现方式中,所述方法还包括:响应于所述第六操作,在所述第一应用处于关闭状态的情况下,所述投屏源设备触发所述第一应用开启,并显示所述第一应用的第二界面;其中,第一应用处于已退出投屏的状态。
通过上述方案,对于视频应用已关闭的特殊情况,手机可以自动拉起视频应用,使得视频应用开启。由于操作便捷,因此可提升用户的投屏体验。
在第二方面的一些可能实现方式中,在所述投屏源设备触发所述第一应用开启,并显示所述第一应用的第二界面之后,所述方法还包括:所述投屏源设备接收到用户点播所述第一应用中的流媒体文件的第七操作;响应于所述七操作,所述投屏源设备通过所述第二投屏方式向所述投屏目标设备进行投屏。
通过上述方案,在手机可以自动拉起视频应用,使得视频应用开启的情况下,一旦检测到用户的点播视频操作,则手机等投屏源设备采用流媒体投屏方式在电视机等投屏目标设备上进行投屏。由于操作便捷,因此可提升用户的投屏体验。
在第二方面的一些可能实现方式中,所述响应于用户点播第一应用中的流媒体文件的 第二操作,所述投屏源设备通过第二投屏方式向所述投屏目标设备进行投屏,包括:
响应于用户点播所述第一应用中的流媒体文件的第二操作,若满足预设切换条件,则所述投屏源设备停止通过所述第一投屏方式向所述投屏目标设备进行投屏,并通过所述第二投屏方式向所述投屏目标设备进行投屏;
其中,所述预设切换条件包括:所述第一应用支持所述第二投屏方式,或者所述投屏源设备的剩余电量低于或等于预设电量阈值,或者所述投屏目标设备所处网络的信号质量优于或等于预设信号质量。
通过上述方案,当判断投屏源设备播放音视频文件且满足预设切换条件时,可以从镜像投屏自动切换到流媒体投屏,无需用户操作。由于操作便捷,因此可提升用户的投屏体验。
在第二方面的一些可能实现方式中,所述方法还包括:在所述投屏源设备显示所述桌面界面的情况下,所述投屏源设备将所述第一应用切换到后台运行。
第三方面,本申请提供一种控制投屏的装置,该装置包括用于执行上述第一方面中的方法的单元。该装置可对应于执行上述第一方面中描述的方法,该装置中的单元的相关描述请参照上述第一方面的描述,为了简洁,在此不再赘述。
其中,上述第一方面描述的方法可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块或单元。例如,处理模块或单元、显示模块或单元等。
第四方面,本申请提供一种控制投屏的装置,该装置包括用于执行上述第二方面中的方法的单元。该装置可对应于执行上述第二方面中描述的方法,该装置中的单元的相关描述请参照上述第二方面的描述,为了简洁,在此不再赘述。
其中,上述第二方面描述的方法可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块或单元。例如,处理模块或单元、显示模块或单元等。
第五方面,本申请提供一种电子设备,所述电子设备包括处理器,处理器与存储器耦合,存储器用于存储计算机程序或指令,处理器用于执行存储器存储的计算机程序或指令,使得第一方面中的方法被执行。例如,处理器用于执行存储器存储的计算机程序或指令,使得该装置执行第一方面中的方法。
第六方面,本申请提供一种电子设备,所述电子设备包括处理器,处理器与存储器耦合,存储器用于存储计算机程序或指令,处理器用于执行存储器存储的计算机程序或指令,使得第二方面中的方法被执行。例如,处理器用于执行存储器存储的计算机程序或指令,使得该装置执行第二方面中的方法。
第七方面,本申请提供一种计算机可读存储介质,其上存储有用于实现第一方面中的方法的计算机程序(也可称为指令或代码)。例如,该计算机程序被计算机执行时,使得该计算机可以执行第一方面中的方法。
第八方面,本申请提供一种计算机可读存储介质,其上存储有用于实现第二方面中的方法的计算机程序(也可称为指令或代码)。例如,该计算机程序被计算机执行时,使得该计算机可以执行第二方面中的方法。
第九方面,本申请提供一种芯片,包括处理器。处理器用于读取并执行存储器中存储 的计算机程序,以执行第一方面及其任意可能的实现方式中的方法。可选地,所述芯片还包括存储器,存储器与处理器通过电路或电线连接。
第十方面,本申请提供一种芯片,包括处理器。处理器用于读取并执行存储器中存储的计算机程序,以执行第二方面及其任意可能的实现方式中的方法。可选地,所述芯片还包括存储器,存储器与处理器通过电路或电线连接。
第十一方面,本申请提供一种芯片系统,包括处理器。处理器用于读取并执行存储器中存储的计算机程序,以执行第一方面及其任意可能的实现方式中的方法。可选地,所述芯片系统还包括存储器,存储器与处理器通过电路或电线连接。
第十二方面,本申请提供一种芯片系统,包括处理器。处理器用于读取并执行存储器中存储的计算机程序,以执行第二方面及其任意可能的实现方式中的方法。可选地,所述芯片系统还包括存储器,存储器与处理器通过电路或电线连接。
第十三方面,本申请提供一种计算机程序产品,所述计算机程序产品包括计算机程序(也可称为指令或代码),所述计算机程序被计算机执行时使得所述计算机实现第一方面中的方法。
第十四方面,本申请提供一种计算机程序产品,所述计算机程序产品包括计算机程序(也可称为指令或代码),所述计算机程序被计算机执行时使得所述计算机实现第二方面中的方法。
可以理解的是,上述第三方面至第十四方面的有益效果可以参见上述第一方面和第二方面中的相关描述,在此不再赘述。
附图说明
图1为本申请实施例中设备间实现流媒体投屏和镜像投屏的系统架构图;
图2为本申请实施例中设备间实现镜像投屏时的交互界面示意图;
图3为本申请实施例提供的一种控制投屏的方法的流程示意图;
图4为本申请实施例提供的一种控制投屏的方法在应用时的界面示意图;
图5为本申请实施例提供的另一种控制投屏的方法的流程示意图;
图6为本申请实施例提供的另一种控制投屏的方法在应用时的界面示意图;
图7为本申请实施例提供的再一种控制投屏的方法的流程示意图;
图8为本申请实施例提供的再一种控制投屏的方法在应用时的界面示意图;
图9为本申请实施例提供的控制投屏的方法在应用时的界面示意图;
图10为本申请实施例提供的视频APP侧与电子设备侧交互进行投屏的示意性流程图;
图11为本申请实施例提供的一种控制投屏的装置的结构示意图;
图12为本申请实施例提供的另一种控制投屏的装置的结构示意图;
图13为本申请实施例提供的电子设备的结构示意图。
具体实施方式
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本文中术语“和/或”,是一种描述关联对象的关联关系,表示可以存在三种关系,例如, A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。本文中符号“/”表示关联对象是或者的关系,例如A/B表示A或者B。
本文中的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一操作和第二操作等是用于区别不同的操作,而不是用于描述操作的特定顺序。
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
在本申请实施例的描述中,除非另有说明,“多个”的含义是指两个或者两个以上,例如,多个处理单元是指两个或者两个以上的处理单元等;多个元件是指两个或者两个以上的元件等。
为便于理解本申请实施例,以下对本申请实施例的部分用语进行解释说明,以便于本领域技术人员理解。
(1)流媒体投屏:当投屏源设备1和投屏目标设备2处于同一局域网中时,投屏源设备1和投屏目标设备2可以基于数字生活网络联盟(digital living network alliance,DLNA)所授权的协议(简称为DLNA协议)实现流媒体投屏。
示例性地,假设投屏源设备1和投屏目标设备2均处于开机状态且处于同一局域网(例如Wi-Fi网络)中,当投屏源设备1播放网络视频时,响应于流媒体投屏指令,投屏源设备1可以基于DLNA协议与投屏目标设备2协商进行投屏,在协商完成后,投屏源设备1可以将投屏源设备1正在播放的网络视频的链接地址发送给投屏目标设备2,投屏目标设备2根据网络视频的链接地址从服务器获取视频资源,并在投屏目标设备2的屏幕上显示该视频资源,从而实现将投屏源设备1显示的网络视频投射到投屏目标设备2的屏幕上进行显示。
在上述投屏显示过程中,投屏源设备1的屏幕显示内容可以与投屏目标设备2的屏幕显示内容不一致,此时用户可以通过电视机观看投屏视频,同时在投屏源设备1上进行其他应用操作。
(2)镜像投屏:也称为系统投屏,当投屏源设备1(例如手机)和投屏目标设备2(例如电视机)处于同一局域网中时,投屏源设备1和投屏目标设备2可以基于Miracast/Cast+等协议实现镜像投屏。
示例性地,假设投屏源设备1和投屏目标设备2均处于开机状态且处于同一局域网(例如Wi-Fi网络)中,在投屏源设备1开启镜像投屏功能后,投屏源设备1可以搜索所有支持投屏的设备,在投屏源设备1发现投屏目标设备2后,投屏源设备1可以基于Miracast/Cast+协议与投屏目标设备2协商进行投屏,在协商完成后,投屏源设备1可以将投屏源设备1的屏幕显示的内容投射到投屏目标设备2的屏幕上进行显示。
在上述投屏显示过程中,由于投屏目标设备2的屏幕显示内容会随着投屏源设备1的屏幕显示内容变化而变化,且投屏目标设备2的屏幕显示内容与投屏源设备1的屏幕显示内容时刻保持一致,因此将这种投屏方式称为镜像投屏或者屏幕镜像。
从用途比较而言,流媒体投屏的内容包括流媒体形式的音频和/或视频资源,常用于将 音频和/或视频资源投屏到大屏投屏目标设备2进行观影。由于镜像投屏在内容上不受限制,因此在投屏源设备1进行游戏、直播、办公等业务时,投屏源设备1可以将屏幕显示内容镜像投屏到大屏投屏目标设备2上显示。
图1示出了本申请的各个示例性实施例所涉及的系统架构示意图。如图1中的(a)和(b)所示,该系统架构包括投屏源设备1、投屏目标设备2和服务器3。
下面以投屏源设备1发起在投屏目标设备2上投屏为例说明。在此情况下,投屏源设备1作为控制端,向投屏目标设备2发送用于投屏的视频资源,或者视频资源的获取地址,例如统一资源定位器(uniform resource locator,统一资源定位符)。投屏目标设备2作为受控端,接收投屏源设备1发送的用于投屏的视频资源,或者视频资源的获取地址。
其中,投屏源设备1可以为相对于投屏目标设备2屏幕较小的设备,例如投屏源设备1可以为手机。投屏目标设备2可以为相对于投屏源设备1屏幕较大的设备,例如投屏目标设备2可以为大屏电视机。投屏源设备1可以利用投屏源设备1上安装的视频APP播放视频。服务器3可以为与视频APP对应的流媒体服务器。
如图1中的(a)所示,示出了流媒体投屏场景的示意图,当投屏源设备1向投屏目标设备2发起流媒体投屏时,投屏源设备1将当前播放视频的链接地址发送给投屏目标设备2,投屏目标设备2需要根据投屏源设备1提供的视频链接地址,从流媒体服务器3获取视频资源,进而投屏目标设备2可以显示该视频资源,从而实现流媒体投屏显示。
这里,投屏源设备1当前播放的视频资源是从流媒体服务器3获取的。投屏目标设备2所要投屏显示的视频资源也是从流媒体服务器3获取的。也就是说,在投屏源设备1和投屏目标设备2之间不存在视频资源的数据传输。
如图1中的(b)所示,示出了镜像投屏场景的示意图,当投屏源设备1向投屏目标设备2发起镜像投屏时,投屏源设备1可以将当前播放的视频资源发送给投屏目标设备2,也就是说,投屏目标设备2可以直接从投屏源设备1获取视频资源,而无需从流媒体服务器3获取。
这里,投屏源设备1当前播放的视频资源可以是从服务器3获取的,也可以是从投屏源设备1本地获取的。
与流媒体投屏方式相比,在采用镜像投屏方式投屏时,投屏源设备1和投屏目标设备2之间需要传输视频资源。
下面结合图2介绍设备之间交互进行镜像投屏的可能实现方式。为了便于说明,下面以投屏源设备1为手机,投屏目标设备2为电视机,从手机向电视机投屏为例进行示例性说明。
首先,通常可以从手机系统入口向电视机发起镜像投屏,如图2中的(a)所示,示出了发起镜像投屏的界面示意图,投屏源设备1接收到用户在投屏源设备1上发起镜像投屏的操作,例如投屏源设备1接收到用户在投屏源设备1的下拉控制菜单11中的系统投屏控件12上的点击操作,响应于该用户操作,投屏源设备1开启镜像投屏功能,然后投屏源设备1搜索发现与投屏源设备1处于同一局域网中的投屏目标设备2,投屏源设备1与投屏目标设备2建立无线连接,并进行信息交互,针对投屏源设备1和投屏目标设备2能否支持投屏进行协商。如图2中的(a)所示,在投屏源设备1与投屏目标设备2建立连接并协商时,投屏目标设备2可以显示提示信息:您的手机正在连接电视机。
如图2中的(b)所示,在投屏源设备1与投屏目标设备2建立连接并协商完成后,投屏源设备1屏幕显示的内容会通过投屏目标设备2的屏幕显示出来,即,投屏目标设备2的屏幕显示内容与投屏源设备1的屏幕显示内容时刻保持一致。此时,投屏源设备1和投屏目标设备2处于镜像投屏状态。
如图2中的(c)所示,示出了发起播放视频的界面示意图,投屏源设备1接收到用户在投屏源设备1上触发播放视频的操作,例如投屏源设备1接收到用户在投屏源设备1上的视频APP界面的播放控件13上的点击操作,响应于该操作,投屏源设备1可以播放视频,投屏目标设备2播放与投屏源设备1同样的视频画面。
在实际应用中,通常在对视频进行镜像投屏时,需要手机切换为视频全屏显示,以保证电视机能够全屏显示视频。如图2中的(d)所示,通过镜像投屏方式,实现了将投屏源设备1播放的视频画面投射到投屏目标设备2的屏幕上进行全屏显示。在对视频进行镜像投屏的情况下,投屏目标设备2屏幕显示的视频画面会随着投屏源设备1屏幕显示的视频画面变化而变化。
在实际实现时,在对视频进行镜像投屏时有以下特点:由于实时编码传输,受手机编解码能力、手机与电视机的Wi-Fi芯片能力、近场Wi-Fi抖动等影响,导致视频易卡顿、视频画质不佳。此外,由于手机显示比例与电视机显示比例不一致,因此容易造成在投屏显示时电视机屏幕四周都有黑边。而且,由于手机侧音视频流两路编码传输,与电视机侧音视频流传输方式不同,因此容易造成在投屏显示时电视机视频声音和画面不同步。
对于用户体验影响较大的是,在镜像投屏播放视频时,需要手机屏幕一直保持处于视频播放界面。一旦手机屏幕退出视频播放界面,则电视机也会相应地退出视频播放界面。因此,这种镜像投屏方式无法满足用户在将手机视频画面投屏到电视机屏幕的同时,还能在手机进行其他应用操作的需求,影响用户体验。
针对上述场景存在的问题,本申请实施例提供了一种控制投屏的方法以及电子设备(例如投屏源设备),当投屏源设备(例如手机)和投屏目标设备(例如电视机)进行镜像投屏时,若投屏源设备播放视频则自动切换为流媒体投屏,如果投屏源设备中视频APP退到后台运行,那么可以控制投屏方式继续保持流媒体投屏,若需要切换到镜像投屏,则只需调出投屏菜单进行投屏切换操作即可。由于本申请方案在投屏菜单中提供了投屏快速切换入口,可以实现在镜像投屏和流媒体投屏之间自由切换,并且可以满足在投屏目标设备保持投屏播放视频的同时,用户还能够在投屏源设备进行其他应用操作的需求,提升了用户投屏体验。
在本申请实施例中,电子设备厂商与视频APP厂商关于设备视频投屏进行技术配合,以实现本申请方案:在投屏过程中,当满足某些条件(例如播放视频)时,可以支持在基于Miracast/Cast+协议的镜像投屏和基于DLNA协议的流媒体投屏之间进行切换。
需要说明的是,流媒投屏通常与视频APP相关,并且并非所有的视频APP都支持流媒投屏,具体到本申请实施例,流媒体投屏和镜像投屏之间能够切换的前提是待投屏的视频APP支持流媒体投屏。
下面结合附图对本申请第一实施例提供的技术方案进行详细介绍。
第一实施例
图3示出了本申请第一实施例提供的在镜像投屏和流媒体投屏之间进行切换的流程示 意图。如图3所示,该流程可以包括下述的步骤S101-S103。
S101,投屏源设备1和投屏目标设备2处于镜像投屏中。
示例性地,假设投屏目标设备2为开启状态且已连接Wi-Fi网络,当投屏源设备1接收到用户点击投屏源设备上的系统投屏控件的操作时,投屏源设备1与投屏目标设备2可以通过该Wi-Fi网络建立连接,并且投屏源设备1通过第一投屏方式向投屏目标设备2进行投屏。
可选地,在本申请实施例中,除了上述所采用的镜像投屏触发方式之外,投屏源设备1还可以通过一碰投功能实现在投屏目标设备2上镜像投屏,即投屏源设备1碰触投屏目标设备2,通过近场通信(near field communication,NFC)、Wi-Fi或者蓝牙等各种短距离通信方式,建立无线连接,并完成镜像投屏。
当然,投屏源设备1还可以通过诸如分享(share)功能等其他方式实现在投屏目标设备2上镜像投屏,实现不同电子设备之间的协同操作。具体可以根据实际使用需求确定,本申请实施例不作限定。
示例性地,假设投屏源设备1将当前播放的视频画面,通过镜像投屏方式,投射到投屏目标设备2屏幕上显示。此时,投屏源设备1和投屏目标设备2之间的投屏方式为镜像投屏。
需要说明的是,若投屏目标设备2处于关闭状态,则投屏源设备1是无法与投屏目标设备2建立连接的,因此也无法实现投屏。本申请实施例是基于投屏目标设备2处于开启状态的情况对投屏场景进行示例性描述的。
S102,当投屏源设备1打开视频APP并播放视频时,投屏源设备1和投屏目标设备2之间的投屏方式自动从镜像投屏切换为流媒体投屏。
这样,在镜像投屏状态下,一旦检测到投屏源设备1开始播放视频,则自动将镜像投屏切换为流媒体投屏,由于通过流媒体投屏播放视频的显示效果较好,因此可提升用户体验。
S103,当投屏源设备1中视频APP退到后台运行时,投屏源设备1和投屏目标设备2之间的投屏方式自动从流媒体投屏切换为镜像投屏。
通过第一实施例提供的上述方案,在投屏源设备1通过流媒体投屏在投屏目标设备2上播放视频时,一旦投屏源设备1中视频APP退到后台运行,投屏源设备1和投屏目标设备2之间的投屏方式会自动从流媒体投屏切换为镜像投屏,无法满足用户希望大屏持续显示投屏的视频画面的需求。
如图3中的虚线所示,在从流媒体投屏切换为镜像投屏之后,如果用户希望继续采用流媒体投屏方式播放视频,那么用户需要在投屏源设备1上操作,触发投屏源设备1再次打开视频APP,并触发投屏源设备1播放视频APP中的视频。相应地,当投屏源设备1接收到该用户操作之后,投屏源设备1播放视频APP中的视频,并且将投屏源设备1和投屏目标设备2之间的投屏方式从镜像投屏自动切换为流媒体投屏。
图4为基于图3实现的在镜像投屏和流媒体投屏之间进行切换的界面示意图。下面结合图4对图3所示流程图进行示例性描述。
如图4中的(a)所示,投屏源设备1和投屏目标设备2之间的投屏方式为镜像投屏。此时,投屏源设备1和投屏目标设备2在屏幕显示内容上完全一致。
如图4中的(b)所示,当检测到投屏源设备1开始播放视频APP的视频时,将投屏源设备1和投屏目标设备2之间的投屏方式自动切换为流媒体投屏。此时,投屏源设备1和投屏目标设备2在屏幕显示内容上可以不一致,例如投屏源设备1的屏幕显示内容为视频APP的界面,投屏目标设备2的屏幕显示内容为视频APP的视频画面,且显示效果可以为全屏显示。
如图4中的(c)所示,当投屏源设备1检测到视频APP退到后台时,将投屏源设备1和投屏目标设备2之间的投屏方式自动切换回镜像投屏。此时,投屏源设备1和投屏目标设备2在屏幕显示内容上完全一致,例如投屏源设备1和投屏目标设备2均显示桌面界面或者显示某一应用界面,也就是说,此时作为大屏的投屏目标设备2的投屏显示内容不再是视频APP的视频画面。
如图4中的(d)所示,在镜像投屏时,当投屏源设备1检测到视频APP被再次打开且播放视频APP中的视频时,投屏源设备1将投屏源设备1和投屏目标设备2之间的投屏方式自动切换为流媒体投屏。此时,投屏目标设备2显示视频APP的视频画面。
通过上述方案,可以实现在镜像投屏和流媒体投屏之间相互切换。不足之处在于:在投屏源设备1通过流媒体投屏在投屏目标设备2上播放视频时,一旦投屏源设备1中视频APP退到后台运行,投屏方式会自动从流媒体投屏切换为镜像投屏,这样投屏目标设备2与投屏源设备1显示内容保持一致且均停止播放视频,因此无法满足用户希望大屏持续显示投屏的视频画面的需求。
本申请还提供第二实施例,与第一实施例相比,第二实施例可以解决在通过流媒体投屏播放视频过程中,当视频APP退到后台时流媒体投屏会自动切换到镜像投屏,无法保证大屏持续显示投屏视频的问题。
第二实施例
图5示出了本申请第二实施例提供的在镜像投屏和流媒体投屏之间进行切换的流程示意图。如图5所示,该流程可以包括下述的步骤S201-S204。图5所示方案是基于图3的改进方案,解决了在通过流媒体投屏播放视频过程中,当视频APP退到后台时流媒体投屏会自动切换到镜像投屏,无法保证大屏持续显示投屏视频的问题。
S201,投屏源设备1和投屏目标设备2处于镜像投屏中。
示例性地,假设投屏源设备1将当前播放的视频画面,通过镜像投屏方式,投射到投屏目标设备2屏幕上显示。此时,投屏源设备1和投屏目标设备2之间的投屏方式为镜像投屏。
S202,当投屏源设备1打开视频APP并播放视频时,投屏源设备1和投屏目标设备2之间的投屏方式从镜像投屏切换为流媒体投屏。
S203,当投屏源设备1中视频APP退到后台运行时,投屏源设备1和投屏目标设备2之间的投屏方式保持流媒体投屏。
与上述第一实施例中正在以流媒体投屏的视频APP切至后台运行后自动切回镜像投屏的方案是不同,在本申请第二实施例中,当投屏源设备1和投屏目标设备2之间处于流媒体投屏状态时,即使投屏源设备1的视频APP切至后台运行,也可以保持流媒体投屏,此时投屏目标设备2仍然保持显示视频画面。也就是说,第二实施例提供的方案可以保证在通过流媒体投屏播放视频过程中,当视频APP退到后台时继续保持流媒体投屏,这样可 以确保大屏持续显示投屏视频,提升了用户体验。
S204,当投屏源设备1接收到用户的切换操作时,投屏源设备1和投屏目标设备2之间的投屏方式从流媒体投屏切换为镜像投屏。
在本申请实施例中,当投屏源设备1检测到用户从系统投屏菜单或者视频应用内停止流媒体投屏时,投屏源设备1将与投屏目标设备2之间的投屏方式从流媒体投屏切换为镜像投屏。
在本申请方案中,当投屏源设备1和投屏目标设备2之间处于流媒体投屏时,可以提供系统投屏菜单(也称为投屏菜单栏,或者投屏控制菜单)供用户操作,该系统投屏菜单中可以显示当前投屏界面入口,该当前投屏界面入口可以触发投屏源设备1跳转到投屏界面,例如视频应用的视频播放界面。
在一种可能实现方式中,当投屏源设备1接收到用户在视频播放界面上的停止播放操作时,投屏源设备1可以断开与投屏目标设备2之间的流媒体投屏连接,并重新建立与投屏目标设备2之间的镜像投屏连接。
在一种可能实现方式中,系统投屏菜单中可以显示有断开连接控件,当投屏源设备1接收到用户在断开连接控件上的操作时,投屏源设备1可以断开与投屏目标设备2之间的流媒体投屏连接,并重新建立与投屏目标设备2之间的镜像投屏连接。
在一种可能实现方式中,该系统投屏菜单中可以显示切换控件,该切换控件可以用于触发在流媒体投屏和镜像投屏间切换,供用户查看及操作,使用户可以根据实际使用需求在流媒体投屏和镜像投屏间进行切换。
如此,当投屏源设备1接收到用户在系统投屏菜单上的触发切换操作时,投屏源设备1和投屏目标设备2之间的投屏方式从流媒体投屏切换为镜像投屏。
与第一实施例不同的是,在本申请第二实施例中,在投屏源设备1和投屏目标设备2处于投屏状态(镜像投屏或者流媒体投屏)的情况下,投屏源设备1可以在屏幕上显示(例如悬浮显示)投屏图标,该投屏图标可以用于触发显示系统投屏菜单。
示例性地,投屏源设备1可以在桌面界面中悬浮显示投屏图标。当然,投屏源设备1还可以在除桌面界面之外的应用界面上悬浮显示投屏图标。
也就是说,在投屏源设备1处于投屏状态时,投屏源设备1的屏幕上可以持续显示投屏图标,供用户操作。用户可以根据实际使用需求,在需要切换投屏方式时,点击该投屏图标即可触发投屏源设备弹出系统投屏菜单,进而用户可以在系统投屏菜单上进行切换操作,从而可实现在镜像投屏和流媒体投屏之间便捷切换,提升用户体验。
通过上述第二实施例提供的上述方案,在投屏源设备1通过流媒体投屏在投屏目标设备2上播放视频时,若投屏源设备1中视频APP退到后台运行,则投屏源设备1和投屏目标设备2之间的投屏方式可以保持流媒体投屏,而不会自动切换到镜像投屏,也就是说,通过本申请第二实施例提供的上述方案,在投屏源设备1中视频APP退到后台运行之后,不管投屏源设备1前台运行哪些应用,投屏目标设备2可以持续显示投屏视频,因此本申请方案可以满足用户将手机视频画面持续投屏到电视机屏幕的同时,还能在手机进行其他应用操作的需求。
图6为基于图5实现的在镜像投屏和流媒体投屏之间进行切换的界面示意图。下面结合图6对图5所示流程图进行示例性描述。
如图6中的(a)所示,投屏源设备1和投屏目标设备2之间的投屏方式为镜像投屏。此时,投屏源设备1和投屏目标设备2在屏幕显示内容上完全一致。
如图6中的(b)所示,当检测到投屏源设备1开始播放视频APP的视频时,将投屏源设备1和投屏目标设备2之间的投屏方式自动切换为流媒体投屏。此时,投屏源设备1和投屏目标设备2在屏幕显示内容上可以不一致,例如投屏源设备1的屏幕显示内容为视频APP的界面,投屏目标设备2的屏幕显示内容为视频APP的视频画面,且显示效果可以为全屏显示。
如图6中的(c)所示,当投屏源设备1检测到视频APP退到后台时,将投屏源设备1和投屏目标设备2之间的投屏方式继续保持流媒体投屏。此时,投屏源设备1可以显示桌面界面或者某一应用界面,投屏目标设备2可以继续显示视频APP的视频画面。
从上述图6中的(b)和(c)可知,当投屏源设备1和投屏目标设备2之间处于流媒体投屏状态时,即使投屏源设备1的视频APP切至后台运行,也可以保持流媒体投屏,此时投屏目标设备2仍然保持显示视频画面。如果用户希望切回镜像投屏,用户可以在手机投屏菜单上进行操作以触发切回镜像投屏。
再如图6的(c)所示,投屏源设备1可以在屏幕上悬浮显示投屏图标14。当用户需要将投屏源设备1和投屏目标设备2之间的投屏方式从流媒体投屏切换为镜像投屏时,用户可以点击投屏图标14。
进一步地,如图6中的(d)所示,当投屏源设备1接收到用户在投屏图标14上的操作时,投屏源设备1可以在屏幕上弹框显示系统投屏菜单15,该系统投屏菜单15中可以显示当前投屏的视频APP入口16(例如提示“进入视频APP投屏界面”)以及切换控件17。
当投屏源设备1接收到用户在视频APP入口16上的操作时,投屏源设备1可以从当前界面(例如桌面界面)跳转到视频APP的当前投屏界面。
当投屏源设备1接收到用户在切换控件17上的操作时,投屏源设备1可以将当前投屏方式切换为另一投屏方式。例如,如图6中的(d)所示,假设当前投屏方式为流媒体投屏,切换控件17提示可切换到镜像投屏,当投屏源设备1接收到用户在切换控件17上的操作时,投屏源设备1可以将流媒体投屏切换为镜像投屏。这样即可返回到如图6中的(a)所示镜像投屏状态。
通过上述方案,不但可以满足用户将手机视频画面持续投屏到电视机屏幕的同时,还能在手机进行其他应用操作的需求,而且本申请方案提供了用于切换不同投屏方式的入口,在投屏菜单上操作即可触发切换,从而可以实现在镜像投屏和流媒体投屏之间自由切换,提升了用户体验。
本申请还提供了第三实施例,与第一实施例相比,第三实施例可以在通过流媒体投屏播放视频过程中,当视频APP退到后台时流媒体投屏自动切换到镜像投屏之后,可以支持用户通过调出投屏菜单进行触发切换操作,实现从镜像投屏切换到流媒体投屏,交互性更好,更加方便快捷,提升了用户体验。
第三实施例
图7示出了本申请第三实施例提供的在镜像投屏和流媒体投屏之间进行切换的流程示意图。如图7所示,该流程可以包括下述的步骤S301-S304。
S301,投屏源设备1和投屏目标设备2处于镜像投屏中。
示例性地,假设投屏源设备1将当前播放的视频画面,通过镜像投屏方式,投射到投屏目标设备2屏幕上显示。此时,投屏源设备1和投屏目标设备2之间的投屏方式为镜像投屏。
S302,当投屏源设备1打开视频APP并播放视频时,投屏源设备1和投屏目标设备2之间的投屏方式自动从镜像投屏切换为流媒体投屏。
S303,当投屏源设备1中视频APP退到后台运行时,投屏源设备1和投屏目标设备2之间的投屏方式自动从流媒体投屏切换为镜像投屏。
S304,当投屏源设备1接收到用户在系统投屏菜单上的触发切换操作时,投屏源设备1和投屏目标设备2之间的投屏方式从镜像投屏切换为流媒体投屏。
在实际实现时,当手机中视频APP通过流媒体投屏方式投屏到电视机显示时,若视频APP切至后台运行,电视机回到屏幕镜像,则此时从镜像投屏快速切换到流媒体投屏的解决方案可以为:用户可以通过在手机投屏菜单上操作触发切回流媒体投屏,让电视机继续播放视频。
在本申请第三实施例中,在投屏源设备1和投屏目标设备2处于投屏状态(镜像投屏或者流媒体投屏)的情况下,投屏源设备1可以在屏幕上显示(例如悬浮显示)投屏图标,该投屏图标可以用于触发显示系统投屏菜单。其中,对于投屏图标的说明,具体可以参见上述第二实施例中对投屏图标的详细描述,此处不再赘述。
具体地,在投屏源设备1处于投屏状态时,投屏源设备1的屏幕上可以持续显示投屏图标,供用户操作。用户可以根据实际使用需求,在需要切换投屏方式时,点击该投屏图标即可触发投屏源设备弹出系统投屏菜单,进而用户可以在系统投屏菜单上进行切换操作,从而可实现在镜像投屏和流媒体投屏之间便捷切换,提升用户体验。
图7所示方案同样是基于图3的改进方案,上述第三实施例中的步骤S301-S303与上述第一实施例中的步骤S101-S103相同,不同之处在于第三实施例的S304和第一实施例的S104。
具体地,根据第一实施例的S104,在通过流媒体投屏播放视频过程中,当视频APP退到后台时流媒体投屏自动切换到镜像投屏之后,需要重新触发打开视频APP才能实现从镜像投屏切换到流媒体投屏的方案。
相比而言,根据第三实施例的S304,在通过流媒体投屏播放视频过程中,当视频APP退到后台时流媒体投屏自动切换到镜像投屏之后,可以支持用户通过调出投屏菜单进行触发切换操作,实现从镜像投屏切换到流媒体投屏,交互性更好,更加方便快捷,提升了用户体验。
通过第三实施例提供的上述方案,在投屏源设备1通过流媒体投屏在投屏目标设备2上播放视频时,若投屏源设备1中视频APP退到后台运行,投屏源设备1和投屏目标设备2之间的投屏方式从流媒体投屏切换到镜像投屏,则用户可以通过调出投屏菜单进行触发切换操作,实现从镜像投屏切换到流媒体投屏,交互性更好,更加方便快捷,提升用户体验。
图8为基于图7实现的在镜像投屏和流媒体投屏之间进行切换的界面示意图。下面结合图8对图7所示流程图进行示例性描述。
如图8中的(a)所示,投屏源设备1和投屏目标设备2之间的投屏方式为镜像投屏。 此时,投屏源设备1和投屏目标设备2在屏幕显示内容上完全一致。
如图8中的(b)所示,当检测到投屏源设备1开始播放视频APP的视频时,将投屏源设备1和投屏目标设备2之间的投屏方式自动切换为流媒体投屏。此时,投屏源设备1和投屏目标设备2在屏幕显示内容上可以不一致,例如投屏源设备1的屏幕显示内容为视频APP的界面,投屏目标设备2的屏幕显示内容为视频APP的视频画面,且显示效果可以为全屏显示。
如图8中的(c)所示,当投屏源设备1检测到视频APP退到后台时,将投屏源设备1和投屏目标设备2之间的投屏方式自动切换回镜像投屏。此时,投屏源设备1和投屏目标设备2在屏幕显示内容上完全一致,例如投屏源设备1和投屏目标设备2均显示桌面界面或者显示某一应用界面,也就是说,此时作为大屏的投屏目标设备2停止播放视频APP的视频。
再如图8的(c)所示,投屏源设备1可以在屏幕上悬浮显示投屏图标18。当用户需要将投屏源设备1和投屏目标设备2之间的投屏方式从镜像投屏切换为流媒体投屏时,用户可以点击投屏图标18。
进一步地,如图8中的(d)所示,当投屏源设备1接收到用户在投屏图标18上的操作时,投屏源设备1可以在屏幕上弹框显示系统投屏菜单19,该系统投屏菜单19中可以显示当前投屏的视频APP入口19(例如“进入视频APP投屏界面”)以及切换控件20。
当投屏源设备1接收到用户在视频APP入口19上的操作时,投屏源设备1可以从当前界面(例如桌面界面)跳转到视频APP的最近一次投屏界面。
当投屏源设备1接收到用户在切换控件20上的操作时,投屏源设备1可以将当前投屏方式切换为另一投屏方式。例如,如图8中的(d)所示,假设当前投屏方式为镜像投屏,切换控件20提示可切换到流媒体投屏,当投屏源设备1接收到用户在切换控件20上的操作时,投屏源设备1可以将投屏方式切换为流媒体投屏。这样即返回到如图8中的(b)所示流媒体投屏状态。因此,本方案可以提升投屏视频观看体验。
但是需要说明的是,在投屏源设备1响应于用户在投屏菜单上的操作,将投屏方式切换为流媒体投屏之后,本申请实施例不限定投屏源设备1的显示内容,可以保持不变,例如如图8中的(d)所示,投屏源设备1可以继续显示投屏菜单19;也可以更新显示视频APP播放界面,例如如图8中的(b)所示,投屏源设备1可以跳转到视频APP的界面。
在本申请实施例中,需要说明的是,上述各个实施例中是以当投屏源设备1开始播放视频时,自动从镜像投屏切换为流媒体投屏为例进行示例性说明的,在实际实现时,本申请实施例还可以增加条件判断,在满足预设条件时,才会触发从镜像投屏切换为流媒体投屏。
其中,上述预设条件可以包括以下至少一项:投屏源设备1开始播放视频,投屏目标设备2所处网络质量较好,投屏源设备1的剩余电量小于或等于预设电量阈值。需要说明的是,这里预设条件为示例性地列举,预设条件还可以包括其他条件限定,具体可以根据实际使用情况是指,本申请实施例不作限定。
示例性地,当投屏源设备1和投屏目标设备2之间处于镜像投屏时,若判断出投屏源设备1和/或投屏目标设备2满足预设条件,例如若投屏源设备1开始播放视频且投屏目标设备2所处网络质量较好,则将投屏源设备1和投屏目标设备2之间的镜像投屏自动切换 成流媒体投屏,在流媒体投屏场景下投屏目标设备2从服务器获取视频资源实现投屏显示。
下面再结合图9示例性地描述通过投屏菜单跳转到视频APP界面的可能实现方式。
如图9中的(a)所示,在投屏源设备1弹出投屏菜单30的情况下,该投屏菜单30可以显示有当前投屏的视频APP入口31、用于触发切换投屏方式的控件32,以及用于触发断开连接的控件33。
当投屏源设备1接收到用户在视频APP入口31上的操作时,投屏源设备1可以先判断视频APP的进程是否还存在,进而根据判断结果执行不同的步骤。
如图9中的(b)所示,若发现视频APP的进程还存在,则投屏源设备1跳转到视频APP正在投屏界面。在此情况下,投屏源设备1屏幕上仍然显示投屏图标。
如图9中的(c)所示,若发现视频APP的进程已经不存在,则投屏源设备1重新启动视频APP。可选地,在此情况下,投屏源设备1屏幕上可以仍然显示投屏图标。
需要说明的是,由于在视频APP的进程已经不存在的情况下,投屏源设备1对投屏内容失去了控制,因此投屏源设备1的系统仅能拉起视频APP,使得视频APP重新启动,但投屏源设备1无法准确跳转到视频APP最近一次的投屏界面。在实际实现时,视频APP启动后的显示界面依赖于APP本身。
当投屏源设备1和投屏目标设备2处于投屏状态时,若投屏源设备1接收到用户点击视频APP的界面中的其他视频源,则投屏源设备1播放该视频源,相应地投屏目标设备2的投屏内容更新为该视频源。
可选地,当投屏源设备1接收到用户对控件33的操作时,投屏源设备1可以断开与投屏目标设备2的无线连接,取消无线投屏功能。在此情况下,投屏源设备1屏幕上可以取消显示投屏图标。
根据本申请实施例提供的方案,通过投屏菜单提供无线投屏的视频APP入口及切换控件,这样不管是在镜像投屏时,还是在流媒体投屏时,用户都可以通过在投屏菜单操作,实现在流媒体投屏和镜像投屏间自由切换,提升了用户投屏体验。
图10示出了第三方视频APP侧与电子设备侧交互实现投屏的示意性流程图。如图10所示,流程图包括下述的步骤S401-S410。
S401,播放视频APP的视频。
S402,判断电子设备是否已开启系统镜像投屏。
其中,这里所述的电子设备即发起投屏的电子设备,例如电子设备对应于上文中的投屏源设备1,例如手机。
S403,在电子设备已开启系统镜像投屏的情况下,获取与电子设备已连接的大屏设备信息。
其中,这里所述的大屏设备可以对应于上文中的投屏目标设备2,例如电视机。
S404,调用视频APP对应的DLNA接口。
S405,从镜像投屏切换到流媒体投屏。
根据上述S401-S405可知,当电子设备播放视频APP的视频且电子设备处于镜像投屏状态时,电子设备可以将投屏方式从镜像投屏自动切换到流媒体投屏,使得大屏设备通过流媒体投屏方式播放视频,符合用户使用需求,提升用户体验。
S406,在电子设备没有开启系统镜像投屏的情况下,当电子设备接收到用户开启流媒 体投屏的触发操作时,电子设备启动流媒体投屏功能。
S407,判断电子设备是否有已连接过的设备。
S408,若电子设备没有已连接过的设备,则电子设备搜索设备列表,当电子设备发现处于同一局域网中的大屏设备后,电子设备与该大屏设备建立无线连接并进行投屏协商。
S409,若电子设备有已连接过的设备,则电子设备直接连接该设备并进行投屏协商。
在电子设备与大屏设备进行投屏协商之后,电子设备可以将投屏协商结果广播通知给第三方视频APP。
S410,电子设备将已连接设备的信息写入数据库(data base,DB)中。
上述步骤S403中,可以从该DB中获取与电子设备已连接的大屏设备信息。
本申请实施例中,从上述步骤S401-S410可知,实现投屏的前提条件需要考虑到:手机和电视机是否处于连接状态、手机是否镜像投屏中、电视机是否曾经连接过。
需要说明的是,本申请各个实施提供的方案不但可以应用于上文示例的视频播放场景,还可以扩展应用于其他流媒体投屏的场景,例如图库、音乐等。具体可以根据实际使用需求确定,本申请实施例不作限定。
也需要说明的是,在本申请实施例中,“大于”可以替换为“大于或等于”,“小于或等于”可以替换为“小于”,或者,“大于或等于”可以替换为“大于”,“小于”可以替换为“小于或等于”。
本文中描述的各个实施例可以为独立的方案,也可以根据内在逻辑进行组合,这些方案都落入本申请的保护范围中。
可以理解的是,上述各个方法实施例中由电子设备实现的方法和操作,也可以由可用于电子设备的部件(例如芯片或者电路)实现。
上文描述了本申请提供的方法实施例,下文将描述本申请提供的装置实施例。应理解,装置实施例的描述与方法实施例的描述相互对应,因此,未详细描述的内容可以参见上文方法实施例,为了简洁,这里不再赘述。
上文主要从方法步骤的角度对本申请实施例提供的方案进行了描述。可以理解的是,为了实现上述功能,实施该方法的电子设备包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的保护范围。
本申请实施例可以根据上述方法示例,对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有其它可行的划分方式。下面以采用对应各个功能划分各个功能模块为例进行说明。
图11为本申请实施例提供的控制投屏的装置700的示意性框图。该装置700可以用于执行上文方法实施例中投屏源设备所执行的动作。该装置700包括投屏控制单元710和 显示单元720。
投屏控制单元710,用于响应于用户的第一操作,控制所述投屏源设备通过第一投屏方式向投屏目标设备进行投屏;
投屏控制单元710,还用于响应于用户点播第一应用中的流媒体文件的第二操作,控制所述投屏源设备通过第二投屏方式向所述投屏目标设备进行投屏,所述第一应用为所述投屏源设备中的流媒体应用;
显示单元720,用于响应于用户对所述投屏源设备的第三操作,在所述投屏源设备的屏幕上显示桌面界面,所述桌面界面中显示有投屏图标;其中,所述投屏源设备与所述投屏目标设备之间保持所述第二投屏方式;
显示单元720,还用于响应于用户对所述投屏图标的第四操作,在所述投屏源设备的屏幕上显示投屏菜单栏,所述投屏菜单栏中包括第一控件;
投屏控制单元710,还用于响应于用户对所述第一控件的第五操作,控制所述投屏源设备通过第一投屏方式向所述投屏目标设备进行投屏。
通过上述方案,当投屏源设备(例如手机)和投屏目标设备(例如电视机)进行镜像投屏时,若投屏源设备播放视频则自动切换为流媒体投屏,如果投屏源设备中视频APP退到后台运行,那么可以控制投屏方式继续保持流媒体投屏,若需要切换到镜像投屏,则只需调出投屏菜单进行投屏切换操作即可。由于本申请方案在投屏菜单中提供了投屏快速切换入口,可以实现在镜像投屏和流媒体投屏之间自由切换,并且可以满足在投屏目标设备保持投屏播放视频的同时,用户还能够在投屏源设备进行其他应用操作的需求,提升了用户投屏体验。
在一些可能实现方式中,所述第一投屏方式遵循第一投屏协议,所述第一投屏协议支持所述投屏目标设备从所述投屏源设备获取所述投屏源设备的屏显内容并显示所述屏显内容。示例性地,所述第一投屏协议包括镜像投屏Miracst协议或者Cast+协议。
在一些可能实现方式中,所述第二投屏方式遵循所述第二投屏协议,所述第二投屏协议支持所述投屏目标设备从服务器获取所述流媒体文件并播放所述流媒体文件。示例性地,所述第二投屏协议包括流媒体投屏DLNA协议。
可选地,如图11所示,装置700还包括收发单元730;
投屏控制单元710具体用于控制所述投屏源设备与所述投屏目标设备基于第一投屏协议建立连接;
收发单元730,用于所述投屏源设备向所述投屏目标设备发送所述投屏源设备的屏显内容,以使得所述投屏目标设备接收并显示所述投屏源设备的屏显内容。
在一些可能实现方式中,投屏控制单元710具体用于控制所述投屏源设备与所述投屏目标设备基于第二投屏协议建立连接;
收发单元730,用于所述投屏源设备向所述投屏目标设备发送所述流媒体文件的网络地址,以使得所述投屏目标设备根据所述流媒体文件的网络地址,从所述第一应用对应的服务器获取所述流媒体文件。
在一些可能实现方式中,上述第一控件可以是投屏切换控件,用于触发从第二投屏方式切换到第一投屏方式。在此情况下,投屏目标设备停止从第一应用的服务器获取用于投屏的流媒体数据,并且投屏目标设备接收投屏源设备发送的用于投屏的流媒体数据并进行 显示。因此通过在投屏菜单栏中的投屏切换控件上操作,可触发流媒体投屏停止,返回到镜像投屏。由于操作便捷,因此可提升用户的投屏体验。
在一些可能实现方式中,上述第一控件可以是断开连接控件,用于触发断开基于第二投屏协议建立的连接。在此情况下,投屏目标设备停止从第一应用的服务器获取用于投屏的流媒体数据。因此通过在投屏菜单栏中的断开连接控件上操作,可触发流媒体投屏停止,在基于第一投屏协议建立的连接未断开的情况下可返回到镜像投屏。由于操作便捷,因此可提升用户的投屏体验。
在一些可能实现方式中,所述投屏菜单栏中还包括至少一个投屏信息选项,所述至少一个投屏信息选项中的每个投屏信息选项指示一个流媒体应用的投屏事件。
可选地,如图11所示,装置700还包括感测单元740,该感测单元740用于接收用户在第一投屏信息选项上的第六操作,所述第一投屏信息选项指示所述第一应用的投屏事件;
投屏控制单元710,还用于响应于所述第六操作,判断所述第一应用是否处于运行状态;若所述第一应用处于运行状态,则在所述投屏源设备上显示所述第一应用正在投屏的第一界面;若所述第一应用处于关闭状态,则触发所述第一应用开启,并显示所述第一应用的第二界面;其中,第一应用处于已退出投屏的状态。
通过上述方案,用户只需在手机上调出投屏菜单并在投屏菜单上对投屏信息选项操作,即可触发手机快速跳转到正在投屏的视频应用界面。其中,对于视频应用已关闭的特殊情况,手机可以自动拉起视频应用,使得视频应用开启。由于操作便捷,因此可提升用户的投屏体验。
在一些可能实现方式中,感测单元740还用于接收用户在所述第一界面中的第二控件上的第七操作;
投屏控制单元710,还用于响应于所述第七操作,控制所述投屏源设备停止通过所述第二投屏方式向所述投屏目标设备进行投屏,并通过所述第一投屏方式向所述投屏目标设备进行投屏。
通过上述方案,可以通过在视频应用界面上操作,触发停止流媒体投屏,快速切换到镜像投屏。
在一些可能实现方式中,感测单元740还用于所述投屏源设备接收用户点播所述第一应用中的流媒体文件的第八操作;
投屏控制单元710,还用于响应于所述第八操作,控制所述投屏源设备通过所述第二投屏方式向所述投屏目标设备进行投屏。
通过上述方案,在手机可以自动拉起视频应用,使得视频应用开启的情况下,一旦检测到用户的点播视频操作,则手机等投屏源设备采用流媒体投屏方式在电视机等投屏目标设备上进行投屏。由于操作便捷,因此可提升用户的投屏体验。
在一些可能实现方式中,所述响应于用户点播第一应用中的流媒体文件的第二操作,所述投屏源设备通过第二投屏方式向所述投屏目标设备进行投屏,包括:
响应于用户点播所述第一应用中的流媒体文件的第二操作,若满足预设切换条件,则所述投屏源设备停止通过所述第一投屏方式向所述投屏目标设备进行投屏,并通过所述第二投屏方式向所述投屏目标设备进行投屏;
其中,所述预设切换条件包括:所述第一应用支持所述第二投屏方式,或者所述投屏 源设备的剩余电量低于或等于预设电量阈值,或者所述投屏目标设备所处网络的信号质量优于或等于预设信号质量。
通过上述方案,当判断投屏源设备播放音视频文件且满足预设切换条件时,可以从镜像投屏自动切换到流媒体投屏,无需用户操作。由于操作便捷,因此可提升用户的投屏体验。
在一些可能实现方式中,在所述投屏源设备显示所述桌面界面的情况下,所述第一应用切换到所述投屏源设备的后台运行。
在一些可能实现方式中,所述投屏源设备和所述投屏目标设备处于同一无线保真Wi-Fi网络中。
图12为本申请实施例提供的控制投屏的装置800的示意性框图。该装置800可以用于执行上文方法实施例中投屏源设备所执行的动作。该装置800包括投屏控制单元810和显示单元820。
投屏控制单元810,用于响应于用户对投屏源设备的第一操作,控制所述投屏源设备通过第一投屏方式向投屏目标设备进行投屏;
投屏控制单元810,还用于响应于用户点播第一应用中的流媒体文件的第二操作,所述投屏源设备通过第二投屏方式向所述投屏目标设备进行投屏,控制所述第一应用为所述投屏源设备中的流媒体应用;
显示单元820,用于响应于用户对所述投屏源设备的第三操作,所述投屏源设备显示桌面界面,所述桌面界面中显示有投屏图标;其中,所述投屏源设备与所述投屏目标设备之间的投屏方式从所述第二投屏方式切换到所述第一投屏方式;
显示单元820,还用于响应于用户对所述投屏图标的第四操作,所述投屏源设备显示投屏菜单栏,所述投屏菜单栏中包括第一控件;
投屏控制单元810,还用于响应于用户对所述第一控件的第五操作,控制所述投屏源设备通过第二投屏方式向所述投屏目标设备进行投屏。
通过上述方案,当投屏源设备(例如手机)和投屏目标设备(例如电视机)进行镜像投屏时,若投屏源设备播放视频则自动切换为流媒体投屏,当投屏源设备中视频APP退到后台运行时,投屏方式切回到镜像投屏,若需要从镜像投屏切换到流媒体投屏,则只需调出投屏菜单进行投屏切换操作即可。由于本申请方案在投屏菜单中提供了投屏快速切换入口,可以实现在镜像投屏和流媒体投屏之间自由切换,并且可以满足在投屏目标设备保持投屏播放视频的同时,用户还能够在投屏源设备进行其他应用操作的需求,提升了用户投屏体验。
在一些可能实现方式中,所述第一投屏方式遵循第一投屏协议,所述第一投屏协议支持所述投屏目标设备从所述投屏源设备获取所述投屏源设备的屏显内容并显示所述屏显内容。示例性地,所述第一投屏协议包括镜像投屏Miracst协议或者Cast+协议。
在一些可能实现方式中,所述第二投屏方式遵循所述第二投屏协议,所述第二投屏协议支持所述投屏目标设备从服务器获取所述流媒体文件并播放所述流媒体文件。示例性地,所述第二投屏协议包括流媒体投屏DLNA协议。
可选地,如图12所示,装置800还可以包括收发单元830。
在一些可能实现方式中,投屏控制单元810具体用于控制所述投屏源设备与所述投屏 目标设备基于第一投屏协议建立连接。收发单元830用于所述投屏源设备向所述投屏目标设备发送所述投屏源设备的屏显内容,以使得所述投屏目标设备接收并显示所述投屏源设备的屏显内容。
在一些可能实现方式中,投屏控制单元810具体用于控制所述投屏源设备与所述投屏目标设备基于第二投屏协议建立连接。收发单元830用于所述投屏源设备向所述投屏目标设备发送所述流媒体文件的网络地址,以使得所述投屏目标设备根据所述流媒体文件的网络地址,从所述第一应用对应的服务器获取所述流媒体文件。
在一些可能实现方式中,上述第一控件可以是投屏切换控件,用于触发从第一投屏方式切换到第二投屏方式。在此情况下,投屏目标设备停止接收投屏源设备发送的用于投屏的流媒体数据,并且投屏目标设备根据投屏源设备发送的用于流媒体投屏的网络地址,从第一应用的服务器获取用于投屏的流媒体数据并进行显示。因此通过在投屏菜单栏中的投屏切换控件上操作,可触发镜像投屏停止,返回到流媒体投屏。由于操作便捷,因此可提升用户的投屏体验。
在一些可能实现方式中,上述第一控件还可以是断开连接控件,用于触发断开基于第一投屏协议建立的连接。在此情况下,投屏源设备停止向投屏目标设备发送投屏数据。因此通过在投屏菜单栏中的断开连接控件上操作,可触发镜像投屏停止,在基于第二投屏协议建立的连接未断开的情况下可返回到流媒体投屏。由于操作便捷,因此可提升用户的投屏体验。
在一些可能实现方式中,上述第一控件还可以是投屏信息选项。所述投屏菜单栏中包括至少一个投屏信息选项,所述至少一个投屏信息选项中的每个投屏信息选项指示一个流媒体应用的投屏事件;
可选地,如图12所示,装置800还可以包括感测单元840,感测单元840用于所述投屏源设备接收用户在第一投屏信息选项上的第六操作,所述第一投屏信息选项指示所述第一应用的投屏事件,所述第一投屏信息选项作为所述第一控件;
投屏控制单元810,具体用于:响应于所述第六操作,在所述第一应用处于运行状态的情况下,所述投屏源设备停止通过所述第一投屏方式向所述投屏目标设备进行投屏,并通过所述第二投屏方式向所述投屏目标设备进行投屏。
通过上述方案,用户只需在手机上调出投屏菜单并在投屏菜单上对投屏信息选项操作,即可触发手机快速跳转到正在投屏的视频应用界面,并触发从镜像投屏快速切换到流媒体投屏。由于操作便捷,因此可提升用户的投屏体验。
在一些可能实现方式中,投屏控制单元810,还用于响应于所述第六操作,在所述第一应用处于关闭状态的情况下,控制所述第一应用开启。显示单元820用于显示所述第一应用的第二界面;其中,第一应用处于已退出投屏的状态。
通过上述方案,对于视频应用已关闭的特殊情况,手机可以自动拉起视频应用,使得视频应用开启。由于操作便捷,因此可提升用户的投屏体验。
在一些可能实现方式中,感测单元830还用于接收用户点播所述第一应用中的流媒体文件的第七操作。投屏控制单元810还用于响应于所述七操作,所述投屏源设备通过所述第二投屏方式向所述投屏目标设备进行投屏。
通过上述方案,在手机可以自动拉起视频应用,使得视频应用开启的情况下,一旦检 测到用户的点播视频操作,则手机等投屏源设备采用流媒体投屏方式在电视机等投屏目标设备上进行投屏。由于操作便捷,因此可提升用户的投屏体验。
在一些可能实现方式中,所述响应于用户点播第一应用中的流媒体文件的第二操作,所述投屏源设备通过第二投屏方式向所述投屏目标设备进行投屏,包括:
响应于用户点播所述第一应用中的流媒体文件的第二操作,若满足预设切换条件,则所述投屏源设备停止通过所述第一投屏方式向所述投屏目标设备进行投屏,并通过所述第二投屏方式向所述投屏目标设备进行投屏;
其中,所述预设切换条件包括:所述第一应用支持所述第二投屏方式,或者所述投屏源设备的剩余电量低于或等于预设电量阈值,或者所述投屏目标设备所处网络的信号质量优于或等于预设信号质量。
通过上述方案,当判断投屏源设备播放音视频文件且满足预设切换条件时,可以从镜像投屏自动切换到流媒体投屏,无需用户操作。由于操作便捷,因此可提升用户的投屏体验。
在一些可能实现方式中,在所述投屏源设备显示所述桌面界面的情况下,所述第一应用被切换到所述投屏源设备的后台运行。
在一些可能实现方式中,所述投屏源设备和所述投屏目标设备处于同一无线保真Wi-Fi网络中。
根据本申请实施例的装置800可对应于执行本申请实施例中描述的方法,并且装置800中的单元的上述和其它操作和/或功能分别为了实现方法的相应流程,为了简洁,在此不再赘述。
图13是本申请实施例提供的电子设备900的结构性示意性图。该电子设备900包括:处理器910、存储器920、通信接口930、总线940。
其中,该处理器910可以与存储器920连接。该存储器920可以用于存储该程序代码和数据。因此,该存储器920可以是处理器910内部的存储单元,也可以是与处理器910独立的外部存储单元,还可以是包括处理器910内部的存储单元和与处理器910独立的外部存储单元的部件。
可选的,电子设备900还可以包括总线940。其中,存储器920、通信接口930可以通过总线940与处理器910连接。总线940可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。该总线940可以分为地址总线、数据总线、控制总线等。为便于表示,图13中仅用一条线表示,但并不表示仅有一根总线或一种类型的总线。
应理解,在本申请实施例中,该处理器910可以采用中央处理单元(central processing unit,CPU)。该处理器还可以是其它通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field programmable gate Array,FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。或者该处理器910采用一个或多个集成电路,用于执行相关程序,以实现本申请实施例所提供的技术方案。
该存储器920可以包括只读存储器和随机存取存储器,并向处理器910提供指令和数 据。处理器910的一部分还可以包括非易失性随机存取存储器。例如,处理器910还可以存储设备类型的信息。
在电子设备900运行时,处理器910执行存储器920中的计算机执行指令以执行上述方法的操作步骤。
应理解,根据本申请实施例的电子设备900可对应于本申请实施例中的装置700或者装置800,电子设备900中的处理器910可对应于装置700中的投屏控制单元710或者装置800中的投屏控制单元810,电子设备900中的通信接口930可对应于装置700中的收发单元730或者装置800中的收发单元830。装置800中的各个单元的上述和其它操作和/或功能分别用于实现上述方法的相应流程,为了简洁,在此不再赘述。
可选地,在一些实施例中,本申请实施例还提供了一种芯片,包括处理器。处理器用于读取并执行存储器中存储的计算机程序,以执行上述各方面中的方法。
可选地,在一些实施例中,本申请实施例还提供了一种计算机可读介质,该计算机可读介质存储有程序代码,当计算机程序代码在计算机上运行时,使得计算机执行上述各方面中的方法。
可选地,在一些实施例中,本申请实施例还提供了一种计算机程序产品,该计算机程序产品包括:计算机程序代码,当计算机程序代码在计算机上运行时,使得计算机执行上述各方面中的方法。
在本申请实施例中,电子设备包括硬件层、运行在硬件层之上的操作系统层,以及运行在操作系统层上的应用层。其中,硬件层可以包括中央处理器(central processing unit,CPU)、内存管理单元(memory management unit,MMU)和内存(也称为主存)等硬件。操作系统层的操作系统可以是任意一种或多种通过进程(process)实现业务处理的计算机操作系统,例如,Linux操作系统、Unix操作系统、Android操作系统、iOS操作系统或windows操作系统等。应用层可以包含浏览器、通讯录、文字处理软件、即时通信软件等应用。
本申请实施例并未对本申请实施例提供的方法的执行主体的具体结构进行特别限定,只要能够通过运行记录有本申请实施例提供的方法的代码的程序,以根据本申请实施例提供的方法进行通信即可。例如,本申请实施例提供的方法的执行主体可以是电子设备,或者,是电子设备中能够调用程序并执行程序的功能模块。
本申请的各个方面或特征可以实现成方法、装置或使用标准编程和/或工程技术的制品。本文中使用的术语“制品”可以涵盖可从任何计算机可读器件、载体或介质访问的计算机程序。例如,计算机可读介质可以包括但不限于:磁存储器件(例如,硬盘、软盘或磁带等),光盘(例如,压缩盘(compact disc,CD)、数字通用盘(digital versatile disc,DVD)等),智能卡和闪存器件(例如,可擦写可编程只读存储器(erasable programmable read-only memory,EPROM)、卡、棒或钥匙驱动器等)。
本文描述的各种存储介质可代表用于存储信息的一个或多个设备和/或其它机器可读介质。术语“机器可读介质”可以包括但不限于:无线信道和能够存储、包含和/或承载指令和/或数据的各种其它介质。
应理解,本申请实施例中提及的处理器可以是中央处理单元(central processing unit,CPU),还可以是其他通用处理器、数字信号处理器(digital signal processor,DSP)、专 用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
还应理解,本申请实施例中提及的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM)。例如,RAM可以用作外部高速缓存。作为示例而非限定,RAM可以包括如下多种形式:静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。
需要说明的是,当处理器为通用处理器、DSP、ASIC、FPGA或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件时,存储器(存储模块)可以集成在处理器中。
还需要说明的是,本文描述的存储器旨在包括但不限于这些和任意其它适合类型的存储器。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的保护范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。此外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上,或者说对 现有技术做出贡献的部分,或者该技术方案的部分,可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,该计算机软件产品包括若干指令,该指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。前述的存储介质可以包括但不限于:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中在本申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (23)

  1. 一种控制投屏的方法,其特征在于,包括:
    响应于用户的第一操作,所述投屏源设备通过第一投屏方式向投屏目标设备进行投屏;
    响应于用户点播第一应用中的流媒体文件的第二操作,所述投屏源设备通过第二投屏方式向所述投屏目标设备进行投屏,所述第一应用为所述投屏源设备中的流媒体应用;
    响应于用户对所述投屏源设备的第三操作,所述投屏源设备显示桌面界面,所述桌面界面中显示有投屏图标;其中,所述投屏源设备与所述投屏目标设备之间保持所述第二投屏方式;
    响应于用户对所述投屏图标的第四操作,所述投屏源设备显示投屏菜单栏,所述投屏菜单栏中包括第一控件;
    响应于用户对所述第一控件的第五操作,所述投屏源设备通过第一投屏方式向所述投屏目标设备进行投屏。
  2. 根据权利要求1所述的方法,其特征在于,所述第一投屏方式遵循第一投屏协议,所述第一投屏协议包括镜像投屏Miracst协议或者Cast+协议;
    所述第二投屏方式遵循所述第二投屏协议,所述第二投屏协议包括流媒体投屏DLNA协议。
  3. 根据权利要求1或2所述的方法,其特征在于,所述响应于用户点播第一应用中的流媒体文件的第二操作,所述投屏源设备通过第二投屏方式向所述投屏目标设备进行投屏,包括:
    响应于用户点播所述第一应用中的流媒体文件的第二操作,若满足预设切换条件,则所述投屏源设备停止通过所述第一投屏方式向所述投屏目标设备进行投屏,并通过所述第二投屏方式向所述投屏目标设备进行投屏;
    其中,所述预设切换条件包括:所述第一应用支持所述第二投屏方式,或者所述投屏源设备的剩余电量低于或等于预设电量阈值,或者所述投屏目标设备所处网络的信号质量优于或等于预设信号质量。
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述方法还包括:
    在所述投屏源设备显示所述桌面界面的情况下,所述投屏源设备将所述第一应用切换到后台运行。
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,所述投屏菜单栏中还包括至少一个投屏信息选项,所述至少一个投屏信息选项中的每个投屏信息选项指示一个流媒体应用的投屏事件;
    所述方法还包括:
    所述投屏源设备接收到用户在第一投屏信息选项上的第六操作,所述第一投屏信息选项指示所述第一应用的投屏事件;
    响应于所述第六操作,所述投屏源设备判断所述第一应用是否处于运行状态;
    若所述第一应用处于运行状态,则所述投屏源设备显示所述第一应用正在投屏的 第一界面;
    若所述第一应用处于关闭状态,则所述投屏源设备触发所述第一应用开启,并显示所述第一应用的第二界面;其中,第一应用处于已退出投屏的状态。
  6. 根据权利要求5所述的方法,其特征在于,在所述投屏源设备显示所述第一应用正在投屏的第一界面之后,所述方法还包括:
    所述投屏源设备接收到用户在所述第一界面中的第二控件上的第七操作;
    响应于所述第七操作,所述投屏源设备停止通过所述第二投屏方式向所述投屏目标设备进行投屏,并通过所述第一投屏方式向所述投屏目标设备进行投屏。
  7. 根据权利要求5所述的方法,其特征在于,在所述投屏源设备触发所述第一应用开启,并显示所述第一应用的第二界面之后,所述方法还包括:
    所述投屏源设备接收到用户点播所述第一应用中的流媒体文件的第八操作;
    响应于所述第八操作,所述投屏源设备通过所述第二投屏方式向所述投屏目标设备进行投屏。
  8. 根据权利要求1至7中任一项所述的方法,其特征在于,所述投屏源设备通过第一投屏方式向投屏目标设备进行投屏,包括:
    所述投屏源设备与所述投屏目标设备基于第一投屏协议建立连接;
    所述投屏源设备向所述投屏目标设备发送所述投屏源设备的屏显内容,以使得所述投屏目标设备接收并显示所述投屏源设备的屏显内容。
  9. 根据权利要求1至8中任一项所述的方法,其特征在于,所述投屏源设备通过第二投屏方式向所述投屏目标设备进行投屏,包括:
    所述投屏源设备与所述投屏目标设备基于第二投屏协议建立连接;
    所述投屏源设备向所述投屏目标设备发送所述流媒体文件的网络地址,以使得所述投屏目标设备根据所述流媒体文件的网络地址,从所述第一应用对应的服务器获取所述流媒体文件。
  10. 根据权利要求1至9中任一项所述的方法,其特征在于,所述投屏源设备和所述投屏目标设备处于同一无线保真Wi-Fi网络中。
  11. 一种控制投屏的方法,其特征在于,包括:
    响应于用户的第一操作,所述投屏源设备通过第一投屏方式向投屏目标设备进行投屏;
    响应于用户点播第一应用中的流媒体文件的第二操作,所述投屏源设备通过第二投屏方式向所述投屏目标设备进行投屏,所述第一应用为所述投屏源设备中的流媒体应用;
    响应于用户对所述投屏源设备的第三操作,所述投屏源设备显示桌面界面,所述桌面界面中显示有投屏图标;其中,所述投屏源设备与所述投屏目标设备之间的投屏方式从所述第二投屏方式切换到所述第一投屏方式;
    响应于用户对所述投屏图标的第四操作,所述投屏源设备显示投屏菜单栏,所述投屏菜单栏中包括第一控件;
    响应于用户对所述第一控件的第五操作,所述投屏源设备通过第二投屏方式向所述投屏目标设备进行投屏。
  12. 根据权利要求11所述的方法,其特征在于,所述第一投屏方式遵循第一投屏协议,所述第一投屏协议包括镜像投屏Miracst协议或者Cast+协议;
    所述第二投屏方式遵循所述第二投屏协议,所述第二投屏协议包括流媒体投屏DLNA协议。
  13. 根据权利要求11或12所述的方法,其特征在于,所述响应于用户点播第一应用中的流媒体文件的第二操作,所述投屏源设备通过第二投屏方式向所述投屏目标设备进行投屏,包括:
    响应于用户点播所述第一应用中的流媒体文件的第二操作,若满足预设切换条件,则所述投屏源设备停止通过所述第一投屏方式向所述投屏目标设备进行投屏,并通过所述第二投屏方式向所述投屏目标设备进行投屏;
    其中,所述预设切换条件包括:所述第一应用支持所述第二投屏方式,或者所述投屏源设备的剩余电量低于或等于预设电量阈值,或者所述投屏目标设备所处网络的信号质量优于或等于预设信号质量。
  14. 根据权利要求11至13中任一项所述的方法,其特征在于,所述方法还包括:
    在所述投屏源设备显示所述桌面界面的情况下,所述投屏源设备将所述第一应用切换到后台运行。
  15. 根据权利要求11至14中任一项所述的方法,其特征在于,所述投屏菜单栏中包括至少一个投屏信息选项,所述至少一个投屏信息选项中的每个投屏信息选项指示一个流媒体应用的投屏事件;
    所述响应于用户对所述第一控件的第五操作,所述投屏源设备通过第二投屏方式向所述投屏目标设备进行投屏,包括:
    所述投屏源设备接收到用户在第一投屏信息选项上的第六操作,所述第一投屏信息选项指示所述第一应用的投屏事件,所述第一投屏信息选项作为所述第一控件;
    响应于所述第六操作,在所述第一应用处于运行状态的情况下,所述投屏源设备停止通过所述第一投屏方式向所述投屏目标设备进行投屏,并通过所述第二投屏方式向所述投屏目标设备进行投屏。
  16. 根据权利要求15所述的方法,其特征在于,所述方法还包括:
    响应于所述第六操作,在所述第一应用处于关闭状态的情况下,所述投屏源设备触发所述第一应用开启,并显示所述第一应用的第二界面;其中,第一应用处于已退出投屏的状态。
  17. 根据权利要求16所述的方法,其特征在于,在所述投屏源设备触发所述第一应用开启,并显示所述第一应用的第二界面之后,所述方法还包括:
    所述投屏源设备接收到用户点播所述第一应用中的流媒体文件的第七操作;
    响应于所述七操作,所述投屏源设备通过所述第二投屏方式向所述投屏目标设备进行投屏。
  18. 根据权利要求11至17中任一项所述的方法,其特征在于,所述投屏源设备通过第一投屏方式向投屏目标设备进行投屏,包括:
    所述投屏源设备与所述投屏目标设备基于第一投屏协议建立连接;
    所述投屏源设备向所述投屏目标设备发送所述投屏源设备的屏显内容,以使得所 述投屏目标设备接收并显示所述投屏源设备的屏显内容。
  19. 根据权利要求11至18中任一项所述的方法,其特征在于,所述投屏源设备通过第二投屏方式向所述投屏目标设备进行投屏,包括:
    所述投屏源设备与所述投屏目标设备基于第二投屏协议建立连接;
    所述投屏源设备向所述投屏目标设备发送所述流媒体文件的网络地址,以使得所述投屏目标设备根据所述流媒体文件的网络地址,从所述第一应用对应的服务器获取所述流媒体文件。
  20. 根据权利要求11至19中任一项所述的方法,其特征在于,所述投屏源设备和所述投屏目标设备处于同一无线保真Wi-Fi网络中。
  21. 一种电子设备,其特征在于,包括处理器,所述处理器与存储器耦合,所述处理器用于执行所述存储器中存储的计算机程序或指令,以使得所述电子设备实现如权利要求1至10中任一项所述的方法。
  22. 一种芯片系统,其特征在于,所述芯片系统与存储器耦合,所述芯片系统用于读取并执行所述存储器中存储的计算机程序,以实现如权利要求1至10中任一项所述的方法。
  23. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,当所述计算机程序在电子设备上运行时,使得所述电子设备执行如权利要求1至10中任一项所述的方法。
PCT/CN2022/090018 2021-08-17 2022-04-28 控制投屏的方法、电子设备及计算机可读存储介质 Ceased WO2023020008A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110945404.8A CN113810760B (zh) 2021-08-17 2021-08-17 控制投屏的方法、电子设备及计算机可读存储介质
CN202110945404.8 2021-08-17

Publications (1)

Publication Number Publication Date
WO2023020008A1 true WO2023020008A1 (zh) 2023-02-23

Family

ID=78893778

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/090018 Ceased WO2023020008A1 (zh) 2021-08-17 2022-04-28 控制投屏的方法、电子设备及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN113810760B (zh)
WO (1) WO2023020008A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116456137A (zh) * 2023-04-28 2023-07-18 京东方科技集团股份有限公司 一种投屏方法以及电子设备
CN117724669A (zh) * 2023-06-30 2024-03-19 荣耀终端有限公司 一种投屏显示方法及电子设备
CN118842889A (zh) * 2024-07-24 2024-10-25 稻兴光学(厦门)有限公司 一种控制大屏设备显示的方法、系统和设备

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113810760B (zh) * 2021-08-17 2023-04-21 荣耀终端有限公司 控制投屏的方法、电子设备及计算机可读存储介质
CN114546311B (zh) * 2021-12-30 2022-08-09 北京联合永道软件股份有限公司 用于智慧课堂的多显示终端投屏系统和方法
CN116708912B (zh) * 2022-02-28 2025-09-19 荣耀终端股份有限公司 投屏方法、系统及电子设备
CN114785848B (zh) * 2022-03-02 2024-09-27 阿里巴巴(中国)有限公司 电子设备之间的协同交互和协同方法、装置和系统
CN115174990B (zh) * 2022-06-30 2024-06-11 深圳创维-Rgb电子有限公司 语音投屏方法、装置、设备及计算机可读存储介质
CN115623068B (zh) * 2022-09-14 2025-01-14 深圳市湘凡科技有限公司 一种视频投屏播放方法及装置
CN121173991A (zh) * 2024-06-19 2025-12-19 华为技术有限公司 投屏方法及设备
CN121193982A (zh) * 2024-06-20 2025-12-23 华为技术有限公司 一种多设备协同方法与电子设备

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150095510A1 (en) * 2013-09-30 2015-04-02 Cavium, Inc. Protocol Switching over Multi-Network Interface
US20150179130A1 (en) * 2013-12-20 2015-06-25 Blackberry Limited Method for wirelessly transmitting content from a source device to a sink device
CN111966314A (zh) * 2020-08-11 2020-11-20 北京小米移动软件有限公司 图像投屏方法、图像投屏装置、移动终端以及投屏设备
CN112019893A (zh) * 2019-05-30 2020-12-01 北京小米移动软件有限公司 终端的投屏方法和终端的投屏装置
CN112350981A (zh) * 2019-08-09 2021-02-09 华为技术有限公司 一种切换通信协议的方法、装置和系统
CN113014972A (zh) * 2021-01-28 2021-06-22 维沃移动通信有限公司 投屏方法、装置和系统
CN113810760A (zh) * 2021-08-17 2021-12-17 荣耀终端有限公司 控制投屏的方法、电子设备及计算机可读存储介质

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018144027A1 (en) * 2017-02-06 2018-08-09 Hewlett-Packard Development Company, L.P. Mirroring of screens
CN109922205A (zh) * 2018-11-29 2019-06-21 努比亚技术有限公司 投屏实现方法、移动终端及计算机可读存储介质
CN110177399A (zh) * 2019-04-30 2019-08-27 深圳市鹰硕技术有限公司 一种同屏网络连接方法、装置、智能设备及存储介质
CN110515579A (zh) * 2019-08-28 2019-11-29 北京小米移动软件有限公司 投屏方法、装置、终端及存储介质
CN110995923B (zh) * 2019-11-22 2021-08-20 维沃移动通信(杭州)有限公司 一种投屏控制方法及电子设备
CN111314768A (zh) * 2020-02-24 2020-06-19 北京小米移动软件有限公司 投屏方法、投屏装置、电子设备以及计算机可读存储介质
CN111432070B (zh) * 2020-03-17 2022-04-08 阿波罗智联(北京)科技有限公司 应用投屏控制方法、装置、设备和介质
CN111628847B (zh) * 2020-05-06 2022-04-08 上海幻电信息科技有限公司 数据传输方法及装置
CN111787392A (zh) * 2020-08-06 2020-10-16 北京字节跳动网络技术有限公司 一种视频投屏方法、装置、电子设备和存储介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150095510A1 (en) * 2013-09-30 2015-04-02 Cavium, Inc. Protocol Switching over Multi-Network Interface
US20150179130A1 (en) * 2013-12-20 2015-06-25 Blackberry Limited Method for wirelessly transmitting content from a source device to a sink device
CN112019893A (zh) * 2019-05-30 2020-12-01 北京小米移动软件有限公司 终端的投屏方法和终端的投屏装置
CN112350981A (zh) * 2019-08-09 2021-02-09 华为技术有限公司 一种切换通信协议的方法、装置和系统
CN111966314A (zh) * 2020-08-11 2020-11-20 北京小米移动软件有限公司 图像投屏方法、图像投屏装置、移动终端以及投屏设备
CN113014972A (zh) * 2021-01-28 2021-06-22 维沃移动通信有限公司 投屏方法、装置和系统
CN113810760A (zh) * 2021-08-17 2021-12-17 荣耀终端有限公司 控制投屏的方法、电子设备及计算机可读存储介质

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116456137A (zh) * 2023-04-28 2023-07-18 京东方科技集团股份有限公司 一种投屏方法以及电子设备
CN117724669A (zh) * 2023-06-30 2024-03-19 荣耀终端有限公司 一种投屏显示方法及电子设备
CN118842889A (zh) * 2024-07-24 2024-10-25 稻兴光学(厦门)有限公司 一种控制大屏设备显示的方法、系统和设备

Also Published As

Publication number Publication date
CN113810760A (zh) 2021-12-17
CN113810760B (zh) 2023-04-21

Similar Documents

Publication Publication Date Title
CN113810760B (zh) 控制投屏的方法、电子设备及计算机可读存储介质
JP7628140B2 (ja) 共有方法、装置及び電子機器
US10725972B2 (en) Continuous and concurrent device experience in a multi-device ecosystem
KR101511881B1 (ko) 원격 장치 상에서의 적응성 미디어 콘텐츠 스크러빙
WO2022028561A1 (zh) 一种视频投屏方法、装置、电子设备和存储介质
EP3276973B1 (en) Content projection method and mobile terminal
CN115396521A (zh) 一种切换通信协议的方法、装置和系统
WO2014201792A1 (zh) 多屏互动方法、装置及终端设备
US11523146B2 (en) Live broadcast method and apparatus, electronic device, and storage medium
US20220007074A1 (en) Method and apparatus for playing videos, and electronic device and storage medium thereof
CN114173183B (zh) 投屏方法和电子设备
CN106131615A (zh) 视频播放方法及装置
US9350852B1 (en) Intelligent auto screen lock
CN112616053A (zh) 直播视频的转码方法、装置及电子设备
CN108134957A (zh) 一种投屏方法、终端和计算机存储介质
CN114095764B (zh) 投屏方法和电子设备
CN112788362B (zh) 一种视频播放方法、视频播放装置及存储介质
CN114915810B (zh) 一种媒资推送方法及智能终端
WO2024255294A1 (zh) 投屏方法、终端设备以及存储介质
CN114915818B (zh) 一种媒资推送方法及智能终端
US11889125B2 (en) Omnidirectional media playback method and device and computer readable storage medium thereof
CN115695873A (zh) 一种分屏交互方法、电子设备、存储介质和系统
CN106254651B (zh) 一种图片下载方法及通信终端
CN119729067B (zh) 一种显示设备及投屏模式切换方法
CN104965884A (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: 22857326

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22857326

Country of ref document: EP

Kind code of ref document: A1