WO2024067114A1 - 一种投屏方法、装置、电子设备及存储介质 - Google Patents

一种投屏方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2024067114A1
WO2024067114A1 PCT/CN2023/118712 CN2023118712W WO2024067114A1 WO 2024067114 A1 WO2024067114 A1 WO 2024067114A1 CN 2023118712 W CN2023118712 W CN 2023118712W WO 2024067114 A1 WO2024067114 A1 WO 2024067114A1
Authority
WO
WIPO (PCT)
Prior art keywords
screen projection
projection
screen
mode
local area
Prior art date
Application number
PCT/CN2023/118712
Other languages
English (en)
French (fr)
Inventor
余振华
沈显超
Original Assignee
抖音视界有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN202211175867.1A external-priority patent/CN115695928B/zh
Application filed by 抖音视界有限公司 filed Critical 抖音视界有限公司
Publication of WO2024067114A1 publication Critical patent/WO2024067114A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/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/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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Definitions

  • the embodiments of the present disclosure relate to the field of computer technology, for example, to a screen projection method, device, electronic device and storage medium.
  • the main application scenario of screen projection technology is to project the content of a small screen onto a large screen for display, which can not only improve the user's viewing experience, but also facilitate more users to watch at the same time.
  • screen projection technology has long been widely used in family life and daily office work in enterprises.
  • the present disclosure provides a screen projection method, device, electronic device and storage medium to achieve automatic switching of screen projection modes during the screen projection process.
  • an embodiment of the present disclosure provides a screen projection method, including:
  • the embodiments of the present disclosure further provide a screen projection device, including:
  • a network environment detection module configured to detect a current network environment of a screen projection-associated device during a screen projection process using the first screen projection mode
  • a screen projection switching module configured to switch the first screen projection mode to a second screen projection mode in response to detecting that the current network environment meets the screen projection switching condition
  • the second screen projection module is configured to use the second screen projection method to project the screen.
  • an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:
  • processors one or more processors
  • a storage device configured to store one or more programs
  • the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors implement the screen projection method as described in any embodiment of the present disclosure.
  • an embodiment of the present disclosure further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the screen projection method as described in any embodiment of the present disclosure.
  • FIG1 is an application scenario diagram of the screen projection method provided by an embodiment of the present disclosure.
  • FIG2 is a schematic diagram of a flow chart of a screen projection method provided by an embodiment of the present disclosure
  • FIG3 is a flow chart of a screen projection method provided by an embodiment of the present disclosure.
  • FIG4 is a schematic diagram of a cloud screen projection method provided by an embodiment of the present disclosure.
  • FIG5 is a schematic diagram of a screen projection switching method provided by an embodiment of the present disclosure.
  • FIG6 is a flow chart of a screen projection method provided by an embodiment of the present disclosure.
  • FIG7 is a schematic diagram of a screen projection switching method provided by an embodiment of the present disclosure.
  • FIG8 is a schematic structural diagram of a screen projection device provided by an embodiment of the present disclosure.
  • FIG. 9 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure.
  • the application scenario includes a screen projection transmitter 010 and a screen projection receiver 020; the screen projection transmitter 010 is communicatively connected with the screen projection receiver 020, and both the screen projection transmitter 010 and the screen projection receiver 020 are electronic devices, and the electronic devices may include but are not limited to personal computers, laptops, smart phones, tablet computers, Internet of Things devices, and portable wearable devices, etc.
  • the Internet of Things devices may be smart TVs, smart car-mounted devices, etc.
  • the smart wearable devices may be smart watches and head-mounted devices, etc.
  • the screen projection sending end 010 is configured to send screen projection data, wherein the screen projection data may be pre-stored by the screen projection sending end, or generated in real time, and there is no limitation on this.
  • the screen projection receiving end 020 is configured to receive and display the screen projection data, wherein the screen projection sending end 010 and the screen projection receiving end 020 can realize the transmission of screen projection data through a variety of screen projection methods.
  • a screen projection method is disclosed that automatically switches to another screen projection method during the screen projection process of one screen projection method, without the need for manual switching operations. It should be noted that the screen projection method provided in the embodiment of the present disclosure can be executed by any device connected to the screen projection.
  • the screen projection sending end 010 can be executed by the screen projection sending end 010 or by the screen projection receiving end 020, and there is no limitation on this.
  • the screen projection sending end 010 and the screen projection receiving end 020 in Figure 1 are only examples, and are not limitations on the number of screen projection sending ends 010 and screen projection receiving ends 020.
  • the number of screen projection receiving ends 020 can be multiple, that is, multiple screen projection receiving ends can receive screen projection data for display.
  • Figure 2 is a flow chart of a screen projection method provided by an embodiment of the present disclosure.
  • the embodiment of the present disclosure is applicable to the situation where screen projection display is performed between electronic devices.
  • the method can be executed by a screen projection device, and the screen projection device can be implemented in the form of software and/or hardware, for example, by an electronic device, which can be a mobile terminal, a PC or a server, etc.
  • the method includes:
  • the first screen projection mode is switched to the second screen projection mode.
  • the first screen projection mode refers to the screen projection mode currently used by the screen projection associated device. Refers to the screen projection mode after the screen projection associated device is switched.
  • the specific screen projection mode of the first screen projection mode or the second screen projection mode is not limited here.
  • the specific screen projection mode includes but is not limited to LAN screen projection and Internet screen projection, wherein LAN screen projection is a screen projection mode implemented by the screen projection associated device through the LAN, that is, a screen projection associated device transmits the screen projection data to other screen projection associated devices through the LAN; Internet screen projection is a screen projection mode implemented by the screen projection associated device through the Internet, that is, a screen projection associated device transmits the screen projection data to the network server through the LAN, and transmits the screen projection data to other screen projection associated devices through the network server.
  • LAN screen projection and Internet screen projection may include wired screen projection and/or wireless screen projection, respectively, wherein wired screen projection can be realized through HDMI cable, etc.; wireless screen projection can be WIFI screen projection, cloud screen projection, etc.
  • Screen projection associated device refers to an associated electronic device that can perform screen projection, and the screen projection associated device may include a screen projection sending end and a screen projection receiving end. The number of associated electronic devices may be two or more, which is not limited here.
  • the screen projection associated device may include a first electronic device and a second electronic device, and the first electronic device is communicatively connected to the second electronic device.
  • the first electronic device and the second electronic device are used to distinguish one electronic device from another electronic device.
  • Both the first electronic device and the second electronic device are electronic devices, but they are not the same electronic devices.
  • the first electronic device in the present disclosure may be a mobile phone terminal, as a screen projection transmitter;
  • the second electronic device may be a television, as a screen projection receiver;
  • the first electronic device in the present disclosure may be a terminal device such as a computer, and the second electronic device may be a terminal device such as a mobile phone, a computer, etc., and the number of the second electronic devices may be multiple.
  • the current network environment of the screen projection associated device refers to the network communication environment of the screen projection associated device at the time of network environment detection.
  • Different network environments of the screen projection associated device can support different screen projection methods. For example, when the screen projection associated device is connected to a local area network, it can support a local area network screen projection method.
  • the screen projection associated device When the screen projection associated device is connected to the Internet, it can support an Internet screen projection method, such as a cloud platform method.
  • the screen projection associated device projects the screen through the first screen projection method.
  • the first screen projection method can be a screen projection method randomly selected from multiple screen projection methods, or can be a screen projection method switched to through other screen projection methods, or can be a screen projection method manually selected at the time of screen projection start, and there is no limitation on this.
  • Any electronic device among the screen projection associated devices detects the current network environment of multiple screen projection associated devices during the screen projection process using the first screen projection method. For example, the electronic device detects the current network environment in real time, or it can detect the current network environment periodically.
  • the screen projection mode of the screen projection associated device is switched, wherein the screen projection switching condition refers to the pre-set condition for the screen projection associated device to switch the screen projection mode.
  • the communication mode, communication quality and other network environment information of the screen projection associated device can be obtained, so that it is possible to judge whether the screen projection switching conditions are met based on the communication mode, communication quality and other network environment information of the screen projection associated device; when the current network environment meets the screen projection switching conditions, the screen projection mode can be automatically switched to the screen projection mode corresponding to the current network environment, which improves the adaptability of the screen projection associated device to the current network environment, thereby ensuring the quality of screen projection, imperceptible switching, and automatic switching without interrupting the screen projection process, without the need for the user to wait.
  • a first electronic device when a first electronic device establishes a connection with a second electronic device based on a first screen projection method, the first electronic device and/or the second electronic device can detect the current network environment.
  • the current network environment meets the screen projection switching conditions, a connection between the first electronic device and the second electronic device based on a second screen projection method can be established according to the current network environment, and the screen can be projected using the second screen projection method.
  • the second screen projection mode may be a screen projection mode determined in real time according to the current network environment.
  • the second screen projection mode is a screen projection mode adapted to the current network environment, which can effectively improve the adaptability of the screen projection-related device to the current network environment, thereby ensuring the screen projection quality.
  • the second screen projection mode may be a fixed screen projection mode pre-specified by the user.
  • the screen projection switching condition is that the priority of the second screen projection mode supported by the current network environment is higher than the priority of the first screen projection mode.
  • the priority of the second screen projection method supported by the current network environment is higher than the priority of the first screen projection method.
  • the second screen projection method is selected first to improve the projection quality.
  • the basis may include but is not limited to screen projection stability, screen projection cost, screen projection quality, screen projection speed, etc., which are not limited here.
  • the priority of the second screen projection method is set higher than that of the first screen projection method; or, if the screen projection cost of the second screen projection method is lower than that of the first screen projection method, and no traffic cost is incurred, the priority of the second screen projection method is set higher than that of the first screen projection method; or, if the screen projection speed of the second screen projection method is higher than that of the first screen projection method, and the screen projection delay is small, the priority of the second screen projection method is set higher than that of the first screen projection method.
  • the priority of the screen projection method can be based on one or more settings of screen projection stability, screen projection cost, screen projection quality, and screen projection speed, which are not limited.
  • the priority of the screen projection method can be updated according to user needs, and the updated screen projection method priority is stored for easy call when the screen is switched.
  • the screen projection associated device can detect the current network environment of the screen projection associated device, determine the screen projection methods supported by the current network environment, and when the priority of the second screen projection method supported by the current network environment is higher than the priority of the first screen projection method, the screen projection method can be switched to the second screen projection method with a higher priority, and the screen can be projected according to the second screen projection method to improve the screen projection quality.
  • the screen projection method with the highest priority among the screen projection methods supported by the current network environment may be determined as the second screen projection method.
  • the second projection mode may be a projection mode specified by a user detected by the projection-associated device.
  • the projection mode specified by the user is the projection mode with the highest priority. It is understandable that in order to improve the user experience, the priority of the projection mode can be customized according to the user's needs.
  • the screen projection switching condition includes: the current network environment changes to a network environment that does not support the first screen projection method.
  • the screen projection-associated device can detect the current network environment of the screen projection-associated device.
  • the screen projection method can be switched to the second screen projection method, and the second screen projection method can be used for screen projection.
  • the second screen projection method can be one of the screen projection methods supported by the current network environment, for example, it can be the screen projection method with the highest priority among the screen projection methods supported by the current network environment. It can be understood that the current network environment does not meet the screen projection conditions of the first screen projection method, indicating that there may be problems with the network environment required by the first screen projection method, and the screen projection method under other network environments can be changed to ensure the quality of the screen projection.
  • the current network environment may be WIFI screen projection.
  • the screen projection-related device may be replaced with other network connections to ensure the quality of screen projection.
  • Other networks may include cellular networks, satellite communications, etc., which are not limited here.
  • the second screen projection mode when switching to the second screen projection mode, the second screen projection mode is used for screen projection, and the screen projection process of the first screen projection mode is stopped.
  • the screen projection-associated device can project the screen according to the switched screen projection mode.
  • the screen projection sending end determines the screen projection data sending mode under the second screen projection mode, and sends the screen projection data.
  • the screen projection receiving end determines the screen projection data receiving mode under the second screen projection mode, and receives the screen projection data for display.
  • the specific implementation method of the second screen projection mode is not limited here.
  • the technical solution of the disclosed embodiment detects the current network environment of the projection-related device during the projection process using the first projection mode. If it is detected that the current network environment meets the projection switching condition, the first projection mode is switched to the second projection mode, and the second projection mode is used for projection.
  • the automatic switching of the projection mode of the projection-related device is realized, and the projection mode is automatically switched to the projection mode corresponding to the current network environment, thereby improving the adaptability of the projection-related device to the current network environment.
  • Figure 3 is a flowchart of a screen projection method provided in an embodiment of the present disclosure.
  • the method of this embodiment can be combined with multiple example schemes in the screen projection method provided in the above embodiments.
  • the screen projection method provided in this embodiment is refined.
  • the second screen projection method is a local area network screen projection method;
  • the screen projection associated device includes: a screen projection sending end and a screen projection receiving end, and
  • the screen projection switching condition includes: the screen projection sending end and the screen projection receiving end are located in the same local area network.
  • the method includes:
  • the screen projection mode is switched to the local area network screen projection mode.
  • the screen projection sending end refers to an electronic device that sends the projection data.
  • the screen projection receiving end refers to an electronic device that receives and displays the projection data.
  • the projection data may include but is not limited to pictures, audio, video and other content.
  • the LAN screen projection method refers to a screen projection method that uses a local area network for screen projection and display, which may include a wired LAN screen projection method and a wireless LAN screen projection method.
  • the wireless LAN screen projection method may be a WIFI screen projection. It can be understood that when using a local area network for screen projection, the screen projection sending end and the screen projection receiving end are located in the same local area network.
  • the current network environment of the screen projection sender and the screen projection receiver can be detected in real time.
  • the screen projection method can be switched to the local area network screen projection method.
  • the local area network screen projection method has the characteristics of low latency and no traffic consumption. Screen projection through the local area network screen projection method can improve the screen projection quality and reduce traffic consumption.
  • the priority of the local area network screen projection method is higher than the priority of the first screen projection method, or the current network environment of the screen projection-associated device does not support the first screen projection method.
  • the first screen projection method may be a cloud screen projection method.
  • detecting the current network environment of the screen projection associated device includes: searching for the screen projection associated device based on the local area network; when all the screen projection associated devices are searched in the same local area network, determining that the current network environment meets the screen projection switching conditions of the local area network screen projection mode.
  • the screen projection sending end searches for electronic devices located in the same local area network. If the search results include a screen projection receiving end connected to the screen projection sending end through a first screen projection method, it indicates that the current network environment meets the screen projection switching conditions of the local area network screen projection method, and then a local area network connection between the screen projection sending end and the screen projection receiving end can be established, and the screen projection data can be transmitted through the local area network to achieve screen projection. For example, the screen projection receiving end searches for electronic devices located in the same local area network.
  • the search results include a screen projection sending end connected to the screen projection receiving end through a first screen projection method, it indicates that the current network environment meets the screen projection switching conditions of the local area network screen projection method, and then a local area network connection between the screen projection sending end and the screen projection receiving end can be established, and the screen projection data can be transmitted through the local area network to achieve screen projection.
  • searching for screen projection associated devices based on a local area network includes: sending a search request based on the current local area network; receiving device information feedback from devices in the current local area network, and verifying whether the devices in the current local area network are screen projection associated devices based on the received device information.
  • device information refers to the identification information of the device, which is unique.
  • the device information can be used to verify whether the device corresponding to the device information is the screen projection associated device.
  • a search request can be sent to the devices in the current local area network.
  • the search request can be sent in the form of a broadcast, and the search request can include the device information/address information of the current device itself, so that the device receiving the search request can provide information feedback.
  • the devices in the current local area network respond to the search request and provide device information feedback to the screen projection sending end; the device sending the request can verify the received device information, for example, comparing the received device information with the device information of the device connected in the first screen projection mode.
  • the device receiving the search request in the current local area network is a screen projection associated device. If the received device information is different from the device information of the device connected in the first screen projection mode, then the device receiving the search request in the current local area network is not a screen projection associated device.
  • the device information includes a device identifier and a screen projection conference identifier; based on the received device information, verifying whether the device in the current local area network is a screen projection associated device, including: comparing the screen projection conference identifier in the device information with the screen projection conference identifier of the current device, and matching the device identifier in the device information with the device identifier of the screen projection associated device in the first screen projection mode; if the screen projection conference identifier in the device information is the same as the screen projection conference identifier of the current device, and the device identifier in the device information successfully matches the device identifier of the screen projection associated device in the first screen projection mode, then it is determined that the device in the current local area network is a screen projection associated device.
  • the device identifier refers to the identification information that can be used to identify the device, which is unique.
  • the device identifier may include but is not limited to information such as IP and port.
  • the projection conference identifier refers to the projection conference identifier information that can be used for cloud projection.
  • the projection conference identifier can be a ROOM ID.
  • the ROOM ID can be in the form of a QR code, text or string, etc., which is not limited here.
  • the projection (conference) room can be joined through the projection conference identifier.
  • the projection conference identifier is pre-stored at the start time of the projection, and the projection conference identifier stored in the projection-related devices connected to the same projection process is the same.
  • the projection conference identifier can be requested by any device in the projection-related devices, and the projection conference identifier is stored by the projection-related devices through display or data transmission. It should be noted that this embodiment verifies the devices in the current local area network through the device identifier and the projection conference identifier, which improves the reliability of the verification of the projection-related devices.
  • the device in the current local area network can be determined as a screen projection-associated device.
  • the screen projection associated devices when all the screen projection associated devices are searched in the same local area network, it also includes: connecting the screen projection associated devices to the local area network; when any screen projection associated device fails to connect, determining that the current network environment does not meet the screen projection switching conditions of the local area network screen projection mode.
  • the screen projection-related device can be connected to the LAN. Due to factors such as device movement and LAN signal fluctuations, the screen projection-related device may be unable to connect to the LAN.
  • the current network environment can be determined as not meeting the screen projection switching conditions for the LAN screen projection mode, and the screen projection mode will not be switched, thereby avoiding the situation where the screen projection quality decreases.
  • the first screen projection method is a cloud screen projection method
  • determining the second screen projection method corresponding to the current network environment includes: leaving the cloud screen projection room, and sending a LAN screen projection instruction to the projection-associated device, so that the projection-associated device receives the LAN screen projection instruction and leaves the cloud screen projection room.
  • the cloud screen projection method refers to a screen projection method that projects and displays the screen through a wide area network or the Internet. Compared with a local area network, a wide area network or the Internet has a wider communication range, which can make the application scenarios of the screen projection method richer.
  • the cloud screen projection method can realize screen projection through any network, but the cloud screen projection method has a high delay and will incur upstream and downstream traffic charges. It is understandable that when the screen projection sender and the screen projection receiver cannot access the same local area network, or the local area network signal of one of the screen projection sender and the screen projection receiver is poor, the cloud screen projection method can be used as an alternative screen projection method to ensure the quality of the screen projection.
  • FIG4 is a schematic diagram of a cloud screen projection method provided by an embodiment of the present disclosure.
  • the steps of the cloud screen projection method include: 0.
  • the screen projection receiving end starts the cloud screen projection; 1.
  • the screen projection receiving end applies for the screen projection conference identifier (ROOM ID) from the cloud conference server, and the screen projection conference identifier can be a PIN code or a QR code; 2.
  • the cloud conference server returns the screen projection conference identifier to the screen projection receiving end; 3.
  • the screen projection receiving end joins the screen projection room according to the screen projection conference identifier; 4.
  • the screen projection receiving end displays the screen projection conference identifier; 5.
  • the screen projection sending end starts the cloud screen projection; 6.
  • the screen projection sending end joins the screen projection room by scanning or entering the screen projection conference identifier; 7.
  • the cloud conference server returns the successful joining result to the screen projection sending end; 8.
  • the screen projection sending end captures the screen recording and encodes it to generate an audio and video stream; 9.
  • the screen projection sending end sends the audio and video stream to the cloud conference server; 10.
  • the cloud conference server transmits the audio and video stream to the screen projection receiving end; 11.
  • the screen projection receiving end decodes and displays the audio and video stream.
  • FIG. 5 is a schematic diagram of a screen projection switching method provided by an embodiment of the present disclosure.
  • the screen projection mode is switched from the cloud screen projection mode to the LAN screen projection mode.
  • the steps of the screen projection switching method include: 0.
  • the screen projection sending end detects that a LAN connection can be made; 1.
  • the screen projection sending end starts a LAN service search and sends a search request; 2.
  • the screen projection receiving end responds to the search request and returns the IP, port and screen projection conference identifier of the screen projection receiving end; 3.
  • the screen projection sending end initiates a LAN connection to the screen projection receiving end; 4.
  • the screen projection sending end detects the LAN connection result and leaves the cloud screen projection room; 5.
  • the screen projection sending end sends a LAN screen projection instruction to the screen projection receiving end; 6.
  • the screen projection receiving end leaves the cloud screen projection room and receives the LAN screen projection instruction; 7.
  • the screen projection sending end captures the screen recording and encodes it to generate an audio and video stream; 8.
  • the screen projection sending end sends the audio and video stream to the screen projection receiving end; 9.
  • the screen projection receiving end decodes and displays the audio and video stream.
  • the screen projection mode is switched to the local area network screen projection mode, and the screen is projected according to the local area network screen projection mode, thereby improving the screen projection quality.
  • Figure 6 is a flowchart of a screen projection method provided in an embodiment of the present disclosure.
  • the method of this embodiment can be combined with multiple example schemes in the screen projection method provided in the above embodiments.
  • the screen projection method provided in this embodiment is refined.
  • the first screen projection method is a local area network screen projection method
  • the second screen projection method is a cloud screen projection method
  • the screen projection switching condition of the cloud screen projection method is: the local area network of the screen projection associated device is disconnected, and Internet access is supported.
  • the method includes:
  • LAN disconnection refers to the screen projection-associated device disconnecting from the LAN. It is understandable that when the LAN of the screen projection-associated device is disconnected and Internet access is supported, switching the screen projection mode to the cloud screen projection mode can avoid screen projection interruption, thereby ensuring the continuity of the screen projection display.
  • the screen projection associated device pre-stores a screen projection conference identifier of the cloud screen projection mode; determining the second screen projection mode corresponding to the current network environment includes: based on the screen projection conference identifier, joining the screen projection conference room of the cloud screen projection mode.
  • the projection-associated device pre-stores the projection conference identifier of the cloud projection mode, which can ensure that after the LAN connection is disconnected, the projection mode can be switched based on the data and join the same projection conference room, thereby improving the speed of switching the projection mode and the accuracy of the projection connection.
  • the method for determining the projection conference identifier includes: any device connected to the projection screen sends a meeting request to the cloud conference server, and receives the projection conference identifier fed back by the cloud conference server; any device connected to the projection screen displays the projection conference identifier or sends the projection conference identifier to other devices connected to the projection screen.
  • any device in the screen projection associated devices can send a conference request to the cloud conference server, and the cloud conference server will feedback the screen projection conference identifier to multiple devices in the screen projection associated devices.
  • Multiple devices in the screen projection associated devices will store the screen projection conference identifier locally on the device, so that when the LAN is disconnected, they can join the screen projection conference room according to the screen projection conference identifier, thereby realizing seamless switching of screen projection and ensuring the continuity of the projection display image.
  • this process does not require user participation, thereby improving the user experience.
  • Figure 7 is a schematic diagram of a screen projection switching method provided by an embodiment of the present disclosure.
  • the steps of the screen projection switching method include: 1.
  • the screen projection sending end initiates a LAN service search; 2.
  • the screen projection receiving end responds to the search request and returns information such as IP, port and screen projection conference identifier; 3.
  • the screen projection sending end initiates a LAN connection to the screen projection receiving end, and the screen projection receiving end returns the joining result; 4.
  • the screen projection sending end sends a LAN screen projection instruction to the screen projection receiving end, and the screen projection receiving end returns the joining result; 5.
  • the screen projection sending end captures the screen recording and encodes it to generate an audio and video stream; 8.
  • the screen projection sending end sends the audio and video stream to the screen projection receiving end; 6.
  • the screen projection receiving end decodes and displays the audio and video stream. For example, A0.
  • the screen projection sending end detects a LAN disconnection event; A1.
  • the screen projection sending end detects and disconnects the LAN screen projection, and obtains the screen projection conference identifier; A2.
  • the screen projection sending end joins the screen projection conference room according to the screen projection conference identifier, and the cloud conference server returns the joining result to the screen projection sending end; B0.
  • the screen projection receiving end detects a LAN disconnection event; B1: The screen projection receiving end detects and disconnects the LAN screen projection, and obtains the screen projection conference identifier; B2: The screen projection receiving end joins the screen projection conference room according to the screen projection conference identifier, and the cloud conference server returns the joining result to the screen projection receiving end; A3.
  • the screen projection sending end captures the screen recording and encodes it to generate an audio and video stream; A4.
  • the screen projection sending end sends the audio and video stream to the cloud conference server; A5.
  • the cloud conference server transmits the audio and video stream to the screen projection receiving end; A6.
  • the screen projection receiving end decodes and displays the audio and video stream.
  • the technical solution of the disclosed embodiment switches the screen projection mode to the cloud screen projection mode when the local area network of the screen projection associated device is disconnected and supports Internet access. This can avoid screen projection interruption and ensure the continuity of the projection display.
  • FIG8 is a schematic diagram of the structure of a screen projection device provided in an embodiment of the present disclosure. As shown in FIG8 , the device includes: a network environment detection module 710 , a screen projection switching module 720 and a second screen projection module 730 .
  • the network environment detection module 710 is configured to detect the current network environment of the screen projection associated device during the screen projection process using the first screen projection mode
  • the screen projection switching module 720 is configured to switch the first screen projection mode to the second screen projection mode if it is detected that the current network environment meets the screen projection switching condition;
  • the second screen projection module 730 is configured to use the second screen projection method to project the screen.
  • the technical solution of the disclosed embodiment detects the current network environment of the projection-related device during the projection process using the first projection mode. If it is detected that the current network environment meets the projection switching condition, the first projection mode is switched to the second projection mode, and the second projection mode is used for projection.
  • the automatic switching of the projection mode of the projection-related device is realized, and the projection mode is automatically switched to the projection mode corresponding to the current network environment, thereby improving the adaptability of the projection-related device to the current network environment.
  • the screen projection switching condition is that the priority of the second screen projection mode supported by the current network environment is higher than the priority of the first screen projection mode.
  • the screen projection switching condition includes: the current network environment changes to a network environment that does not support the first screen projection mode.
  • the second screen projection mode is a local area network screen projection mode
  • the screen projection associated device includes: a screen projection sending end and a screen projection receiving end, and the screen projection switching condition includes: the screen projection sending end and the screen projection receiving end are located in the same local area network.
  • the network environment detection module 710 includes:
  • a screen projection associated device search unit configured to search for screen projection associated devices based on a local area network
  • the screen projection switching condition determination unit is configured to determine whether the current network environment meets the screen projection switching conditions of the local area network screen projection mode when all screen projection-related devices are searched within the same local area network.
  • the screen projection associated device search unit includes:
  • a search request sending subunit configured to send a search request based on the current local area network
  • the information verification subunit is configured to receive device information fed back by the device in the current local area network, and verify whether the device in the current local area network is a screen projection associated device based on the received device information.
  • the device information includes a device identifier and a projection conference identifier; the information verification subunit is configured to:
  • the projection conference identifier in the device information is compared with the projection conference identifier of the current device, and the device identifier in the device information is matched with the device identifier of the projection-associated device in the first projection mode;
  • the device in the current local area network is determined to be a projection-associated device.
  • the screen projection switching condition determination unit is further configured to:
  • the first screen projection mode is a cloud screen projection mode
  • the screen projection switching module 720 is configured as follows:
  • the first screen projection mode is a local area network screen projection mode
  • the second screen projection mode is a cloud screen projection mode
  • the screen projection switching conditions of the cloud screen projection mode are: the local area network of the screen projection associated device is disconnected and Internet access is supported.
  • the screen projection associated device pre-stores a screen projection conference identifier of the cloud screen projection mode; the screen projection switching module 720 is further configured to:
  • the method for determining the projection conference identifier includes:
  • Any device connected to the screen projection sends a meeting request to the cloud conference server, receives the screen projection meeting identifier fed back by the cloud conference server, and displays the screen projection meeting identifier, or sends it to other devices connected to the screen projection.
  • the screen projection device provided in the embodiments of the present disclosure can execute the screen projection method provided in any embodiment of the present disclosure, and has corresponding functional modules and beneficial effects for executing the screen projection method.
  • FIG9 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure.
  • the terminal device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (e.g., vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc.
  • the electronic device shown in FIG9 is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
  • the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503.
  • a processing device e.g., a central processing unit, a graphics processing unit, etc.
  • RAM random access memory
  • various programs and data required for the operation of the electronic device 500 are also stored.
  • the processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504.
  • An edit/output (I/O) interface 505 is also connected to the bus 504.
  • the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 508 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 509.
  • the communication devices 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data.
  • FIG. 9 shows an electronic device 500 with a variety of devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.
  • an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart.
  • the computer program can be downloaded and installed from a network through a communication device 509, or installed from a storage device 508, or installed from a ROM 502.
  • the processing device 501 the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
  • the electronic device provided in the embodiment of the present disclosure and the screen projection method provided in the above embodiment belong to the same concept.
  • the technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
  • An embodiment of the present disclosure provides a computer storage medium on which a computer program is stored.
  • the program is executed by a processor, the screen projection method provided in the above embodiment is implemented.
  • the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above.
  • Computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device.
  • a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried.
  • This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above.
  • Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media that can send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device.
  • the code may be transmitted using any appropriate medium, including but not limited to: wire, optical cable, RF (radio frequency), etc., or any suitable combination of the above.
  • the client and server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network).
  • HTTP HyperText Transfer Protocol
  • Examples of communication networks include a local area network ("LAN”), a wide area network ("WAN”), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
  • the computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
  • the computer-readable medium carries one or more programs.
  • the electronic device When the one or more programs are executed by the electronic device, the electronic device:
  • the above-mentioned computer-readable medium carries one or more programs.
  • the electronic device When the above-mentioned one or more programs are executed by the electronic device, the electronic device: during the screen projection process using the first screen projection method, detects the current network environment of the screen projection associated device; if it is detected that the current network environment meets the screen projection switching conditions, switches the first screen projection method to the second screen projection method; and uses the second screen projection method to project the screen.
  • Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages.
  • the program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server.
  • the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
  • LAN local area network
  • WAN wide area network
  • Internet service provider e.g., AT&T, MCI, Sprint, EarthLink, MSN, GTE, etc.
  • each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function.
  • the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved.
  • each square box in the block diagram and/or flow chart, and the combination of the square boxes in the block diagram and/or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, constitute a limitation on the unit itself.
  • exemplary types of hardware logic components include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
  • FPGAs field programmable gate arrays
  • ASICs application specific integrated circuits
  • ASSPs application specific standard products
  • SOCs systems on chip
  • CPLDs complex programmable logic devices
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment.
  • a machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • a machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing.
  • a more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
  • RAM random access memory
  • ROM read-only memory
  • EPROM or flash memory erasable programmable read-only memory
  • CD-ROM portable compact disk read-only memory
  • CD-ROM compact disk read-only memory
  • magnetic storage device or any suitable combination of the foregoing.
  • Example 1 provides a screen projection method, including:
  • the first screen projection mode is switched to the second screen projection mode
  • Example 2 provides a screen projection method, wherein a screen projection switching condition is that the priority of the second screen projection method supported by the current network environment is higher than the priority of the first screen projection method.
  • Example 3 provides a screen projection method, wherein:
  • the screen projection switching condition includes: the current network environment changes to a network environment that does not support the first screen projection method.
  • Example 4 provides a screen projection method, wherein:
  • the second screen projection mode is a local area network screen projection mode
  • the screen projection associated device includes: a screen projection sending end and a screen projection receiving end, and the screen projection switching condition includes: the screen projection sending end and the screen projection receiving end are located in the same local area network.
  • Example 5 provides a screen projection method, wherein:
  • the detecting the current network environment of the screen projection associated device includes:
  • Example 6 provides a screen projection method, wherein:
  • the searching for screen projection-related devices based on the local area network includes:
  • Example 7 provides a screen projection method, wherein:
  • the device information includes a device identifier and a projection conference identifier
  • the verifying whether the device in the current local area network is a screen projection associated device based on the received device information includes:
  • the projection conference identifier in the device information is compared with the projection conference identifier of the current device, and the device identifier in the device information is matched with the device identifier of the projection-associated device in the first projection mode;
  • the device in the current local area network is determined to be a projection-associated device.
  • Example 8 provides a screen projection method.
  • Example 9 provides a screen projection method, wherein:
  • the first screen projection mode is a cloud screen projection mode
  • the switching the first screen projection mode to the second screen projection mode includes:
  • Example 10 provides a screen projection method, wherein:
  • the first screen projection mode is a local area network screen projection mode
  • the second screen projection mode is a cloud screen projection mode
  • the screen projection switching conditions of the cloud screen projection mode are: the local area network of the screen projection associated device is disconnected and Internet access is supported.
  • Example 11 provides a screen projection method, wherein:
  • the screen projection associated device pre-stores a screen projection conference identifier of the cloud screen projection mode
  • the determining the second screen projection mode corresponding to the current network environment includes:
  • Example 12 provides a screen projection method, wherein:
  • the method for determining the projection conference identifier includes:
  • Any device connected to the screen projection sends a meeting request to the cloud conference server, receives the screen projection meeting identifier fed back by the cloud conference server, and displays the screen projection meeting identifier, or sends it to other devices connected to the screen projection.
  • Example 13 provides a screen projection device, the device comprising:
  • a network environment detection module configured to detect a current network environment of a screen projection-associated device during a screen projection process using the first screen projection mode
  • a screen projection switching module configured to switch the first screen projection mode to the second screen projection mode if it is detected that the current network environment meets the screen projection switching condition
  • the second screen projection module is configured to use the second screen projection method to project the screen.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Transforming Electric Information Into Light Information (AREA)

Abstract

本公开实施例提供了一种投屏方法、装置、电子设备及存储介质。该投屏方法包括:在采用第一投屏方式的投屏过程中,检测投屏关联设备的当前网络环境;响应于检测到当前网络环境满足投屏切换条件,将所述第一投屏方式切换为第二投屏方式;采用所述第二投屏方式进行投屏。

Description

一种投屏方法、装置、电子设备及存储介质
本申请要求在2022年9月26日提交中国专利局、申请号为202211175867.1的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。
技术领域
本公开实施例涉及计算机技术领域,例如涉及一种投屏方法、装置、电子设备及存储介质。
背景技术
投屏技术主要的应用场景,就是把小屏幕的内容投射到大屏幕上显示,既可以提高用户的观看体验,同时也便于更多的用户同时一起观看。目前,投屏技术早已广泛应用于家庭生活和企业日常办公。
在实现本公开的过程中,申请人发现相关技术中至少存在以下情况:在投屏过程中通过人工选择的一种投屏方式进行投屏,在出现投屏中断或者存在切换需求的情况下,通过人为操作的方式实现投屏方式的切换,人为操作过程会导致存在等待时间。
发明内容
本公开提供一种投屏方法、装置、电子设备及存储介质,以实现在投屏过程中进行投屏方式的自动切换。
第一方面,本公开实施例提供了一种投屏方法,包括:
在采用第一投屏方式的投屏过程中,检测投屏关联设备的当前网络环境;
响应于检测到当前网络环境满足投屏切换条件,将所述第一投屏方式切换为第二投屏方式;
采用所述第二投屏方式进行投屏。
第二方面,本公开实施例还提供了一种投屏装置,包括:
网络环境检测模块,设置为在采用第一投屏方式的投屏过程中,检测投屏关联设备的当前网络环境;
投屏切换模块,设置为响应于检测到当前网络环境满足投屏切换条件,将所述第一投屏方式切换为第二投屏方式;
第二投屏模块,设置为采用所述第二投屏方式进行投屏。
第三方面,本公开实施例还提供了一种电子设备,所述电子设备包括:
一个或多个处理器;
存储装置,设置为存储一个或多个程序,
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如本公开任一实施例所述的投屏方法。
第四方面,本公开实施例还提供了一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如本公开任一实施例所述的投屏方法。
附图说明
贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。
图1是本公开实施例所提供的投屏方法的应用场景图;
图2是本公开实施例所提供的一种投屏方法的流程示意图;
图3是本公开实施例所提供的一种投屏方法的流程示意图;
图4是本公开实施例所提供的一种云投屏方法的示意图;
图5是本公开实施例所提供的一种投屏切换方法的示意图;
图6是本公开实施例所提供的一种投屏方法的流程示意图;
图7是本公开实施例所提供的一种投屏切换方法的示意图;
图8是本公开实施例所提供的一种投屏装置的结构示意图;
图9是本公开实施例所提供的一种电子设备的结构示意图。
具体实施方式
应当理解,本公开的方法实施方式中记载的多个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。
本公开实施例所提供的投屏方法,可以应用于如图1所示的应用场景中。如图1所示,该应用场景包括投屏发送端010和投屏接收端020;投屏发送端010与投屏接收端020通信连接,投屏发送端010和投屏接收端020两者都是电子设备,电子设备可以包括但不限于个人计算机、笔记本电脑、智能手机、平板电脑、物联网设备和便携式可穿戴设备等,物联网设备可以为智能电视、智能车载设备等,智能可穿戴设备可以为智能手表和头戴设备等。
投屏发送端010设置为进行投屏数据的发送,其中,投屏数据可以是投屏发送端预先存储的,或者实时生成的,对此不作限定,投屏接收端020设置为接收投屏数据并展示,其中,投屏发送端010和投屏接收端020可以通过多种投屏方式实现投屏数据的传输,本实施例中公开了在一种投屏方式的投屏过程中,自动切换至另一种投屏方式的投屏方法,无需人为的切换操作。需要说明的是,本公开实施例所提供的投屏方法可以由接入投屏的任一设备执行,换而言之,可以由投屏发送端010执行,也可以由投屏接收端020执行,在此不做限定。此外,图1中投屏发送端010和投屏接收端020仅是举例说明,并非对投屏发送端010和投屏接收端020数量的限定,在一些实施例中,投屏接收端020的数量可以为多个,即多个投屏接收端可接收投屏数据进行展示。
图2为本公开实施例所提供的一种投屏方法的流程示意图,本公开实施例适用于电子设备之间进行投屏显示的情形,该方法可以由投屏装置来执行,该投屏装置可以通过软件和/或硬件的形式实现,例如,通过电子设备来实现,该电子设备可以是移动终端、PC端或服务器等。
如图2所示,所述方法包括:
S110、在采用第一投屏方式的投屏过程中,检测投屏关联设备的当前网络环境。
S120、若检测到当前网络环境满足投屏切换条件,则将所述第一投屏方式切换为第二投屏方式。
S130、采用所述第二投屏方式进行投屏。
在本实施例中,第一投屏方式是指投屏关联设备当前所使用的投屏方式。第二投屏方式 是指投屏关联设备切换后的投屏方式。第一投屏方式或者第二投屏方式的具体投屏方式在此不做限定。示例性的,具体投屏方式包括但不限于局域网投屏和互联网投屏,其中,局域网投屏为投屏关联设备通过局域网实现的投屏方式,即一个投屏关联设备通过局域网将投屏数据传输至其他投屏关联设备的投屏方式;互联网投屏为投屏关联设备通过互联网实现的投屏方式,即一个投屏关联设备通过局域网将投屏数据传输网络服务器,通过网络服务器将投屏数据传输至其他投屏关联设备的投屏方式。例如,局域网投屏和互联网投屏分别可以包括有线投屏和/或无线投屏,其中,可以通过HDMI线等实现有线投屏;无线投屏可以为WIFI投屏、云投屏等。投屏关联设备是指可以进行投屏的关联电子设备,投屏关联设备可以包括投屏发送端和投屏接收端,关联电子设备的数量可以为两个或者两个以上,在此不做限定。
示例性的,投屏关联设备可以包括第一电子设备和第二电子设备,第一电子设备与第二电子设备通信连接。其中,第一电子设备与第二电子设备用于将一个电子设备与另一个电子设备进行区分。第一电子设备和第二电子设备两者都是电子设备,但其不是同一电子设备。例如,本公开中的第一电子设备可以为手机终端,作为投屏发送端;第二电子设备可以为电视,作为投屏接收端;例如,本公开中的第一电子设备可以为计算机等的终端设备,第二电子设备可以为手机、计算机等的终端设备,且第二电子设备的数量可以是为多个。
在本实施中,投屏关联设备的当前网络环境是指投屏关联设备在网络环境的检测时刻的网络通信环境。投屏关联设备的不同网络环境可支持不同的投屏方式,例如,投屏关联设备接入局域网内,可支持局域网投屏方式,投屏关联设备接入互联网内,可支持互联网投屏方式,例如云平台方式。
投屏关联设备通过第一投屏方式进行投屏,投屏过程中,检测多个投屏关联设备的当前网络环境,其中,第一投屏方式可以是在多个投屏方式中随机选择的一种投屏方式,或者,可以是通过其他投屏方式切换到的投屏方式,或者,可以是在投屏启动时刻,人工选择的一种投屏方式,对此不作限定。投屏关联设备中的任一电子设备,在采用第一投屏方式的投屏过程中,检测多个投屏关联设备的当前网络环境。例如,该电子设备实时进行当前网络环境的检测,还可以是周期性的进行当前网络环境的检测。在检测到投屏关联设备的当前网络环境满足投屏切换条件的情况下,进行投屏关联设备的投屏方式的切换,其中,投屏切换条件是指预先设置的投屏关联设备进行投屏方式切换的条件。
需要说明的是,通过检测投屏关联设备的当前网络环境,可以得知投屏关联设备的通信方式、通信质量等网络环境信息,从而可以根据投屏关联设备的通信方式、通信质量等网络环境信息,判断是否满足投屏切换条件;在当前网络环境满足投屏切换条件的情况下,可以将投屏方式自动切换为与当前网络环境对应的投屏方式,提高了投屏关联设备与当前网络环境的适应性,从而保证了投屏质量,无感知切换,在不中断投屏过程的情况下进行自动切换,无需用户的等待过程。
示例性的,在第一电子设备与第二电子设备建立基于第一投屏方式的连接的情况下,第一电子设备和/或第二电子设备可以检测当前网络环境,在当前网络环境满足投屏切换条件的情况下,可以根据当前网络环境,建立第一电子设备与第二电子设备基于第二投屏方式的连接,并采用第二投屏方式进行投屏。
在一些实施方式中,第二投屏方式可以是根据当前网络环境实时确定的投屏方式,换而言之,第二投屏方式为与当前网络环境所适应的投屏方式,可以有效提高投屏关联设备与当前网络环境的适应性,从而保证了投屏质量。在一些实施方式中,第二投屏方式可以是用户预先指定的固定投屏方式。
在一些实施方式中,投屏切换条件为当前网络环境支持的第二投屏方式的优先级高于第一投屏方式的优先级。
可以理解的是,当前网络环境支持的第二投屏方式的优先级高于第一投屏方式的优先级,换而言之,投屏关联设备在进行投屏时,优先选取第二投屏方式,提升投屏质量。
在投屏之前,可以预先配置多种投屏方式,并对多种投屏方式设置优先级。设置优先级 的依据可以包括但不限于投屏稳定性、投屏费用、投屏质量、投屏速度等,在此不做限定。示例性的,若第二投屏方式的稳定性高于第一投屏方式,不会出现显示画面卡顿的情况,则设置第二投屏方式的优先级高于第一投屏方式的优先级;或者,若第二投屏方式的投屏费用低于第一投屏方式,不会产生流量费用,则设置第二投屏方式的优先级高于第一投屏方式的优先级;或者,若第二投屏方式的投屏速度高于第一投屏方式,投屏延迟小,则设置第二投屏方式的优先级高于第一投屏方式的优先级。例如,投屏方式的优先级可以是基于投屏稳定性、投屏费用、投屏质量、投屏速度的一项或多项设置的,对此不作限定。其中,投屏方式的优先级可根据用户需求进行更新,更新后的投屏方式优先级进行存储,便于在投屏切换的情况下进行调用。
例如,在采用第一投屏方式的投屏过程中,投屏关联设备可以检测投屏关联设备的当前网络环境,确定当前网络环境支持的投屏方式,在当前网络环境支持的第二投屏方式的优先级高于第一投屏方式的优先级的情况下,可以将投屏方式切换为优先级高的第二投屏方式,并根据第二投屏方式进行投屏,提升投屏质量。其中,当前网络环境支持的投屏方式可以是多种,在优先级高于第一投屏方式的优先级的情况下,可以是将当前网络环境支持的投屏方式中优先级最高的投屏方式确定为第二投屏方式。
在一些实施例中,第二投屏方式可以是投屏关联设备检测到的用户指定的投屏方式,换而言之,用户指定的投屏方式为优先级最高的投屏方式。可以理解的是,为了提升用户体验,投屏方式的优先级可以根据用户的需求进行定制。
在一些实施方式中,投屏切换条件包括:当前网络环境变化为不支持所述第一投屏方式的网络环境。
可以理解的是,在当前网络环境的通信质量差的情况下,例如通信连接断开、通信传输速率慢等情况,表明当前网络环境无法以第一投屏方式继续进行投屏,需要进行投屏方式的更换,以提高投屏质量。
例如,在采用第一投屏方式的投屏过程中,投屏关联设备可以检测投屏关联设备的当前网络环境,在当前网络环境不满足第一投屏方式的投屏条件的情况下,可以将投屏方式切换为第二投屏方式,并采用第二投屏方式进行投屏。其中,第二投屏方式可以是与当前网络环境支持的投屏方式中的一种,例如可以是当前网络环境支持的投屏方式中优先级最高的投屏方式。可以理解的是,当前网络环境不满足第一投屏方式的投屏条件,表明第一投屏方式所需的网络环境可能存在问题,可以更换其他网络环境下的投屏方式,以保证投屏质量。
示例性的,当前网络环境可以为WIFI投屏,在WIFI中断的情况下,投屏关联设备可以更换为其他网络连接,以保证投屏质量。其中,其他网络可以包括蜂巢式网络、卫星通讯等,在此不做限定。
需要说明的是,在切换为第二投屏方式的情况下,采用第二投屏方式进行投屏,并停止第一投屏方式的投屏过程。投屏关联设备可根据切换后的投屏方式进行投屏,例如,投屏发送端确定第二投屏方式下的投屏数据发送方式,并进行投屏数据的发送,投屏接收端确定第二投屏方式下的投屏数据接收方式,并接收投屏数据进行展示。此处对第二投屏方式的具体实现方式不作限定。
本公开实施例的技术方案,通过在采用第一投屏方式的投屏过程中,检测投屏关联设备的当前网络环境,若检测到当前网络环境满足投屏切换条件,则将第一投屏方式切换为第二投屏方式,采用第二投屏方式进行投屏。通过上述技术方案,实现了投屏关联设备投屏方式的自动切换,并将投屏方式自动切换为与当前网络环境对应的投屏方式,提高了投屏关联设备与当前网络环境的适应性。
图3为本公开实施例提供的一种投屏方法的流程示意图,本实施例的方法与上述实施例中提供的投屏方法中多个示例方案可以结合。本实施例提供的投屏方法进行了细化。例如,所述第二投屏方式为局域网投屏方式;所述投屏关联设备包括:投屏发送端与投屏接收端,所述投屏切换条件包括:所述投屏发送端与所述投屏接收端位于同一局域网内。
如图3所示,该方法包括:
S210、在采用第一投屏方式的投屏过程中,检测投屏关联设备的当前网络环境,其中,所述投屏关联设备包括:投屏发送端与投屏接收端。
S220、若所述投屏发送端与所述投屏接收端位于同一局域网内,则将投屏方式切换为局域网投屏方式。
S230、采用所述局域网投屏方式进行投屏。
在本实施例中,投屏发送端是指发送投屏数据的电子设备。投屏接收端是指接收并展示投屏数据的电子设备。其中,投屏数据可以包括但不限于图片、音频、视频等内容。局域网投屏方式是指利用局域网进行投屏显示的投屏方式,可以包括有线局域网投屏方式和无线局域网投屏方式,例如无线局域网投屏方式可以为WIFI投屏。可以理解的是,在利用局域网进行投屏的情况下,投屏发送端与投屏接收端位于同一局域网内。
例如,在采用第一投屏方式的投屏过程中,可以实时检测投屏发送端和投屏接收端的当前网络环境,在当前网络环境的检测结果为投屏发送端与投屏接收端位于同一局域网内的情况下,可以将投屏方式切换为局域网投屏方式。需要说明的是,局域网投屏方式具有延迟低、不消耗流量的特点,通过局域网投屏方式进行投屏,可以提升投屏质量并降低流量消耗。例如,局域网投屏方式的优先级高于第一投屏方式的优先级,或者,投屏关联设备的当前网络环境不支持第一投屏方式。示例性的,第一投屏方式可以是云投屏方式。
在一些实施方式中,检测投屏关联设备的当前网络环境,包括:基于局域网对投屏关联设备进行搜索;在同一局域网内搜索到全部的投屏关联设备的情况下,确定当前网络环境满足局域网投屏方式的投屏切换条件。
例如,投屏发送端搜索位于同一局域网内的电子设备,若搜索结果中包含与投屏发送端通过第一投屏方式连接的投屏接收端,则表明当前网络环境满足局域网投屏方式的投屏切换条件,进而可以建立投屏发送端与投屏接收端的局域网连接,并通过局域网进行投屏数据的传输,实现投屏。例如,投屏接收端搜索位于同一局域网内的电子设备,若搜索结果中包含与投屏接收端通过第一投屏方式连接的投屏发送端,则表明当前网络环境满足局域网投屏方式的投屏切换条件,进而可以建立投屏发送端与投屏接收端的局域网连接,并通过局域网进行投屏数据的传输,实现投屏。
在一些实施方式中,基于局域网对投屏关联设备进行搜索,包括:基于当前局域网发送搜索请求;接收当前局域网内设备反馈的设备信息,基于接收的设备信息验证当前局域网内的设备是否为投屏关联设备。
其中,设备信息是指设备的标识信息,具有唯一性。换而言之,在已知投屏关联设备的设备信息的前提下,通过设备信息可以验证设备信息对应的设备是否为投屏关联设备。
示例性的,当投屏关联设备中的任一电子设备在连接到局域网的情况下,可以向当前局域网内的设备发送搜索请求,示例性的,该搜索请求可以是以广播的形式发送,该搜索请求中可以包括当前设备本身的设备信息/地址信息,便于接收到搜索请求的设备进行信息反馈。当前局域网内设备响应搜索请求并向投屏发送端反馈设备信息;发送所述请求的设备可以对接收的设备信息进行验证,例如将接收的设备信息与第一投屏方式中接入的设备的设备信息进行比较,若接收的设备信息与第一投屏方式中接入的设备的设备信息相同,则当前局域网内接收到搜索请求的设备为投屏关联设备,若接收的设备信息与第一投屏方式中接入的设备的设备信息不同,则当前局域网内接收到搜索请求的设备不为投屏关联设备。
在一些实施方式中,设备信息包括设备标识和投屏会议标识;基于接收的设备信息验证当前局域网内的设备是否为投屏关联设备,包括:将设备信息中的投屏会议标识与当前设备的投屏会议标识进行比对,以及,将设备信息中的设备标识与第一投屏方式中投屏关联设备的设备标识进行匹配;若设备信息中的投屏会议标识与当前设备的投屏会议标识相同,且设备信息中的设备标识与第一投屏方式中投屏关联设备的设备标识匹配成功,则确定当前局域网内的设备为投屏关联设备。
其中,设备标识是指可用于识别设备的标识信息,具有唯一性,设备标识可以包括但不限于IP、端口等信息。投屏会议标识是指可用于云投屏的投屏会议标识信息,例如,投屏会议标识可以为ROOM ID,ROOM ID可为二维码、文本或者字符串等形式,在此不做限定。需要说明的是,通过投屏会议标识可以加入投屏(会议)房间,该投屏会议标识为在投屏的起始时刻预先存储得到,其中接入同一投屏过程的投屏关联设备中存储的投屏会议标识相同,该投屏会议标识可以是由投屏关联设备中的任一设备请求的,通过展示的方式或者数据传输的方式,实现投屏关联设备对投屏会议标识的存储。需要说明的是,本实施例通过设备标识和投屏会议标识对当前局域网内的设备进行验证,提升了投屏关联设备验证的可靠性。
示例性的,在投屏发送端接收的IP、端口完全与之前通过第一投屏方式连接的投屏接收端的IP、端口相同,且接收的ROOM ID与之前通过第一投屏方式所使用的ROOM ID相同的情况下,可以将当前局域网内的设备确定为投屏关联设备。
在一些实施方式中,在同一局域网内搜索到全部的投屏关联设备的情况下,还包括:对投屏关联设备进行局域网连接;在任一投屏关联设备连接失败的情况下,确定当前网络环境不满足局域网投屏方式的投屏切换条件。
可以理解的是,在确定投屏关联设备之后,可以对投屏关联设备进行局域网连接,由于设备移动、局域网信号波动等因素影响,可能导致投屏关联设备无法连入局域网,可以将当前网络环境确定为不满足局域网投屏方式的投屏切换条件,不进行投屏方式的切换,从而避免投屏质量下降的情况发生。通过对投屏关联设备进行局域网连接,保证了投屏方式顺畅地切换为局域网投屏方式,可在局域网投屏方式进行正常投屏。
在一些实施方式中,第一投屏方式为云投屏方式;确定当前网络环境对应的第二投屏方式,包括:离开云投屏的投屏房间,并向投屏关联设备发送局域网投屏指令,以使投屏关联设备接收局域网投屏指令,并离开云投屏的投屏房间。
在本实施中,云投屏方式是指通过广域网或者互联网进行投屏显示的投屏方式。与局域网相比,广域网或者互联网具有更广的通信范围,可以使投屏方法的应用场景下更加丰富。云投屏方式可以通过任意网络实现投屏,但云投屏方式延迟较高且会产生上下行流量费用。可以理解的是,在投屏发送端与投屏接收端无法接入同一局域网,或者投屏发送端和投屏接收端其中一端的局域网信号差的情况下,云投屏方式可以作为备选投屏方式,保证投屏质量。
示例性的,图4是本公开实施例所提供的一种云投屏方法的示意图。云投屏方法步骤包括:0.投屏接收端启动云投屏;1.投屏接收端向云会议服务器申请投屏会议标识(ROOM ID),投屏会议标识可以为PIN码或者二维码;2.云会议服务器向投屏接收端返回投屏会议标识;3.投屏接收端根据投屏会议标识加入投屏房间;4.投屏接收端展示投屏会议标识;5.投屏发送端开始云投屏;6.投屏发送端通过扫描或者输入投屏会议标识加入投屏房间;7.云会议服务器将加入成功结果返回至投屏发送端;8.投屏发送端抓屏录音编码生成音视频流;9.投屏发送端将音视频流发送至云会议服务器;10.云会议服务器将音视频流传输至投屏接收端;11.投屏接收端对音视频流进行解码并展示。
图5是本公开实施例所提供的一种投屏切换方法的示意图。图5中由云投屏方式切换为局域网投屏方式,在云投屏方式的投屏过程中,投屏切换方法的步骤包括:0.投屏发送端检测到可以进行局域网连接;1.投屏发送端启动局域网业务搜索,发送搜索请求;2.投屏接收端响应搜索请求,并返回投屏接收端的IP、端口和投屏会议标识等信息;3.投屏发送端向投屏接收端发起局域网连接;4.投屏发送端检测局域网连接结果,并离开云投屏房间;5.投屏发送端向投屏接收端发送局域网投屏指令;6.投屏接收端离开云投屏房间,接收局域网投屏指令;7.投屏发送端抓屏录音编码生成音视频流;8.投屏发送端将音视频流发送至投屏接收端;9.投屏接收端对音视频流进行解码并展示。
本公开实施例的技术方案,若投屏发送端与投屏接收端位于同一局域网内,则将投屏方式切换为局域网投屏方式,并根据局域网投屏方式进行投屏,提高了投屏质量。
图6为本公开实施例提供的一种投屏方法的流程示意图,本实施例的方法与上述实施例中提供的投屏方法中多个示例方案可以结合。本实施例提供的投屏方法进行了细化。例如,所述第一投屏方式为局域网投屏方式,所述第二投屏方式为云投屏方式;所述云投屏方式的投屏切换条件为:投屏关联设备的局域网断连,且支持互联网接入。
如图6所示,该方法包括:
S310、在采用局域网投屏方式的投屏过程中,检测投屏关联设备的当前网络环境。
S320、若投屏关联设备的局域网断连,且支持互联网接入,则将投屏方式切换为云投屏方式。
S330、采用所述云投屏方式进行投屏。
在本实施例中,局域网断连是指投屏关联设备断开与局域网的连接。可以理解的是,在投屏关联设备的局域网断连,且支持互联网接入的情况下,将投屏方式切换为云投屏方式,可以避免投屏中断的情况发生,从而保证了投屏显示画面的连贯性。
在一些实施方式中,投屏关联设备预先存储有云投屏方式的投屏会议标识;确定当前网络环境对应的第二投屏方式,包括:基于投屏会议标识,加入云投屏方式的投屏会议房间。
可以理解的是,投屏关联设备预先存储云投屏方式的投屏会议标识,可以确保在局域网连接断开后,使投屏方式切换有据可依,并加入同一投屏会议房间,提升了投屏方式切换的速度和投屏连接的准确性。
在一些实施方式中,投屏会议标识的确定方式包括:接入投屏的任一设备,向云会议服务器发送会议申请,并接收云会议服务器反馈的投屏会议标识;接入投屏的任一设备展示投屏会议标识或者将投屏会议标识发送至接入投屏的其他设备。
示例性的,在投屏关联设备通过局域网投屏方式进行投屏的情况下,投屏关联设备中的任一设备可以向云会议服务器发送会议申请,云会议服务器向投屏关联设备内多个设备反馈投屏会议标识,投屏关联设备内多个设备将投屏会议标识存储在设备本地,以便在局域网断连时,根据投屏会议标识加入投屏会议房间,实现了投屏的无缝切换,保证了投屏显示画面的连贯性,并且该过程无需用户参与,提升了用户体验。
示例性的,图7是本公开实施例所提供的一种投屏切换方法的示意图。投屏切换方法的步骤包括:1.投屏发送端启动局域网业务搜索;2.投屏接收端响应搜索请求,并返回IP、端口和投屏会议标识等信息;3.投屏发送端向投屏接收端发起局域网连接,投屏接收端返回加入结果;4.投屏发送端向投屏接收端发送局域网投屏指令,投屏接收端返回加入结果;5.投屏发送端抓屏录音编码生成音视频流;8.投屏发送端将音视频流发送至投屏接收端;6.投屏接收端对音视频流进行解码并展示。例如,A0.在投屏发送端检测到局域网断连事件情况下;A1.投屏发送端检测并断开局域网投屏,获取投屏会议标识;A2.投屏发送端根据投屏会议标识加入投屏会议房间,云会议服务器向投屏发送端返回加入结果;B0.投屏接收端检测到局域网断连事件;B1:投屏接收端检测并断开局域网投屏,获取投屏会议标识;B2:投屏接收端根据投屏会议标识加入投屏会议房间,云会议服务器向投屏接收端返回加入结果;A3.投屏发送端抓屏录音编码生成音视频流;A4.投屏发送端将音视频流发送至云会议服务器;A5.云会议服务器将音视频流传输至投屏接收端;A6.投屏接收端对音视频流进行解码并展示。
本公开实施例的技术方案在投屏关联设备的局域网断连,且支持互联网接入的情况下,将投屏方式切换为云投屏方式,可以避免投屏中断的情况发生,从而保证了投屏显示画面的连贯性。
图8为本公开实施例所提供的一种投屏装置结构示意图,如图8所示,所述装置包括:网络环境检测模块710、投屏切换模块720以及第二投屏模块730。
网络环境检测模块710,设置为在采用第一投屏方式的投屏过程中,检测投屏关联设备的当前网络环境;
投屏切换模块720,设置为若检测到当前网络环境满足投屏切换条件,则将所述第一投屏方式切换为第二投屏方式;
第二投屏模块730,设置为采用所述第二投屏方式进行投屏。
本公开实施例的技术方案,通过在采用第一投屏方式的投屏过程中,检测投屏关联设备的当前网络环境,若检测到当前网络环境满足投屏切换条件,则将第一投屏方式切换为第二投屏方式,采用第二投屏方式进行投屏。通过上述技术方案,实现了投屏关联设备投屏方式的自动切换,并将投屏方式自动切换为与当前网络环境对应的投屏方式,提高了投屏关联设备与当前网络环境的适应性。
在一些实施方式中,投屏切换条件为所述当前网络环境支持的第二投屏方式的优先级高于所述第一投屏方式的优先级。
在一些实施方式中,所述投屏切换条件包括:当前网络环境变化为不支持所述第一投屏方式的网络环境。
在一些实施方式中,所述第二投屏方式为局域网投屏方式;
所述投屏关联设备包括:投屏发送端与投屏接收端,所述投屏切换条件包括:所述投屏发送端与所述投屏接收端位于同一局域网内。
在一些实施方式中,所述网络环境检测模块710,包括:
投屏关联设备搜索单元,设置为基于局域网对投屏关联设备进行搜索;
投屏切换条件确定单元,设置为在同一局域网内搜索到全部的投屏关联设备的情况下,确定当前网络环境满足局域网投屏方式的投屏切换条件。
在一些实施方式中,投屏关联设备搜索单元,包括:
搜索请求发送子单元,设置为基于当前局域网发送搜索请求;
信息验证子单元,设置为接收所述当前局域网内设备反馈的设备信息,基于接收的所述设备信息验证所述当前局域网内的设备是否为投屏关联设备。
在一些实施方式中,所述设备信息包括设备标识和投屏会议标识;信息验证子单元,设置为:
对于所述设备信息中的投屏会议标识,与当前设备的投屏会议标识进行比对,以及,将所述设备信息中的设备标识与所述第一投屏方式中投屏关联设备的设备标识进行匹配;
若所述设备信息中的投屏会议标识与当前设备的投屏会议标识相同,且所述设备信息中的设备标识与所述第一投屏方式中投屏关联设备的设备标识匹配成功,则确定当前局域网内的设备为投屏关联设备。
在一些实施方式中,投屏切换条件确定单元,还设置为:
对所述投屏关联设备进行局域网连接;
在任一所述投屏关联设备连接失败的情况下,确定当前网络环境不满足局域网投屏方式的投屏切换条件。
在一些实施方式中,所述第一投屏方式为云投屏方式;投屏切换模块720,设置为:
离开云投屏的投屏房间,并向所述投屏关联设备发送局域网投屏指令,以使所述投屏关联设备接收所述局域网投屏指令,并离开云投屏的投屏房间。
在一些实施方式中,所述第一投屏方式为局域网投屏方式,所述第二投屏方式为云投屏方式;
所述云投屏方式的投屏切换条件为:投屏关联设备的局域网断连,且支持互联网接入。
在一些实施方式中,所述投屏关联设备预先存储有云投屏方式的投屏会议标识;投屏切换模块720,还设置为:
基于所述投屏会议标识,加入云投屏方式的投屏会议房间。
在一些实施方式中,所述投屏会议标识的确定方式包括:
接入投屏的任一设备,向云会议服务器发送会议申请,接收所述云会议服务器反馈的投屏会议标识,并展示所述投屏会议标识,或者,发送至接入投屏的其他设备。
本公开实施例所提供的投屏装置可执行本公开任意实施例所提供的投屏方法,具备执行投屏方法相应的功能模块和有益效果。
值得注意的是,上述装置所包括的多个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,多个功能单元的具体名称也只是为了便于相互区分,并不用于限制本公开实施例的保护范围。
图9为本公开实施例所提供的一种电子设备的结构示意图。下面参考图9,其示出了适于用来实现本公开实施例的电子设备(例如图9中的终端设备或服务器)500的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图9示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图9所示,电子设备500可以包括处理装置(例如中央处理器、图形处理器等)501,其可以根据存储在只读存储器(ROM)502中的程序或者从存储装置508加载到随机访问存储器(RAM)503中的程序而执行多种适当的动作和处理。在RAM 503中,还存储有电子设备500操作所需的多种程序和数据。处理装置501、ROM 502以及RAM 503通过总线504彼此相连。编辑/输出(I/O)接口505也连接至总线504。
通常,以下装置可以连接至I/O接口505:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置506;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置507;包括例如磁带、硬盘等的存储装置508;以及通信装置509。通信装置509可以允许电子设备500与其他设备进行无线或有线通信以交换数据。虽然图9示出了具有多种装置的电子设备500,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置509从网络上被下载和安装,或者从存储装置508被安装,或者从ROM 502被安装。在该计算机程序被处理装置501执行时,执行本公开实施例的方法中限定的上述功能。
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。
本公开实施例提供的电子设备与上述实施例提供的投屏方法属于同一构思,未在本实施例中详尽描述的技术细节可参见上述实施例,并且本实施例与上述实施例具有相同的有益效果。
本公开实施例提供了一种计算机存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述实施例所提供的投屏方法。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代 码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。
在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:在采用第一投屏方式的投屏过程中,检测投屏关联设备的当前网络环境;若检测到当前网络环境满足投屏切换条件,则将所述第一投屏方式切换为第二投屏方式;采用所述第二投屏方式进行投屏。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开多种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
根据本公开的一个或多个实施例,【示例一】提供了一种投屏方法,包括:
在采用第一投屏方式的投屏过程中,检测投屏关联设备的当前网络环境;
若检测到当前网络环境满足投屏切换条件,则将所述第一投屏方式切换为第二投屏方式;
采用所述第二投屏方式进行投屏。
根据本公开的一个或多个实施例,【示例二】提供了一种投屏方法,其中,投屏切换条件为所述当前网络环境支持的第二投屏方式的优先级高于所述第一投屏方式的优先级。
根据本公开的一个或多个实施例,【示例三】提供了一种投屏方法,其中,
所述投屏切换条件包括:当前网络环境变化为不支持所述第一投屏方式的网络环境。
根据本公开的一个或多个实施例,【示例四】提供了一种投屏方法,其中,
所述第二投屏方式为局域网投屏方式;
所述投屏关联设备包括:投屏发送端与投屏接收端,所述投屏切换条件包括:所述投屏发送端与所述投屏接收端位于同一局域网内。
根据本公开的一个或多个实施例,【示例五】提供了一种投屏方法,其中,
所述检测投屏关联设备的当前网络环境,包括:
基于局域网对投屏关联设备进行搜索;
在同一局域网内搜索到全部的投屏关联设备的情况下,确定当前网络环境满足局域网投屏方式的投屏切换条件。
根据本公开的一个或多个实施例,【示例六】提供了一种投屏方法,其中,
所述基于局域网对投屏关联设备进行搜索,包括:
基于当前局域网发送搜索请求;
接收所述当前局域网内设备反馈的设备信息,基于接收的所述设备信息验证所述当前局域网内的设备是否为投屏关联设备。
根据本公开的一个或多个实施例,【示例七】提供了一种投屏方法,其中,
所述设备信息包括设备标识和投屏会议标识;
所述基于接收的所述设备信息验证所述当前局域网内的设备是否为投屏关联设备,包括:
对于所述设备信息中的投屏会议标识,与当前设备的投屏会议标识进行比对,以及,将所述设备信息中的设备标识与所述第一投屏方式中投屏关联设备的设备标识进行匹配;
若所述设备信息中的投屏会议标识与当前设备的投屏会议标识相同,且所述设备信息中的设备标识与所述第一投屏方式中投屏关联设备的设备标识匹配成功,则确定当前局域网内的设备为投屏关联设备。
根据本公开的一个或多个实施例,【示例八】提供了一种投屏方法,
在同一局域网内搜索到全部的投屏关联设备的情况下,还包括:
对所述投屏关联设备进行局域网连接;
在任一所述投屏关联设备连接失败的情况下,确定当前网络环境不满足局域网投屏方式的投屏切换条件。
根据本公开的一个或多个实施例,【示例九】提供了一种投屏方法,其中,
所述第一投屏方式为云投屏方式;
所述将所述第一投屏方式切换为第二投屏方式,包括:
离开云投屏的投屏房间,并向所述投屏关联设备发送局域网投屏指令,以使所述投屏关联设备接收所述局域网投屏指令,并离开云投屏的投屏房间。
根据本公开的一个或多个实施例,【示例十】提供了一种投屏方法,其中,
所述第一投屏方式为局域网投屏方式,所述第二投屏方式为云投屏方式;
所述云投屏方式的投屏切换条件为:投屏关联设备的局域网断连,且支持互联网接入。
根据本公开的一个或多个实施例,【示例十一】提供了一种投屏方法,其中,
所述投屏关联设备预先存储有云投屏方式的投屏会议标识;
所述确定所述当前网络环境对应的第二投屏方式,包括:
基于所述投屏会议标识,加入云投屏方式的投屏会议房间。
根据本公开的一个或多个实施例,【示例十二】提供了一种投屏方法,其中,
所述投屏会议标识的确定方式包括:
接入投屏的任一设备,向云会议服务器发送会议申请,接收所述云会议服务器反馈的投屏会议标识,并展示所述投屏会议标识,或者,发送至接入投屏的其他设备。
根据本公开的一个或多个实施例,【示例十三】提供了一种投屏装置,该装置包括:
网络环境检测模块,设置为在采用第一投屏方式的投屏过程中,检测投屏关联设备的当前网络环境;
投屏切换模块,设置为若检测到当前网络环境满足投屏切换条件,则将所述第一投屏方式切换为第二投屏方式;
第二投屏模块,设置为采用所述第二投屏方式进行投屏。
此外,虽然采用特定次序描绘了多种操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的多种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。

Claims (15)

  1. 一种投屏方法,包括:
    在采用第一投屏方式的投屏过程中,检测投屏关联设备的当前网络环境;
    响应于检测到所述当前网络环境满足投屏切换条件,将所述第一投屏方式切换为第二投屏方式;
    采用所述第二投屏方式进行投屏。
  2. 根据权利要求1所述的方法,其中,所述投屏切换条件为所述当前网络环境支持的所述第二投屏方式的优先级高于所述第一投屏方式的优先级。
  3. 根据权利要求1所述的方法,其中,所述投屏切换条件包括:所述当前网络环境变化为不支持所述第一投屏方式的网络环境。
  4. 根据权利要求1所述的方法,其中,所述第二投屏方式为局域网投屏方式;
    所述投屏关联设备包括:投屏发送端与投屏接收端,所述投屏切换条件包括:所述投屏发送端与所述投屏接收端位于同一局域网内。
  5. 根据权利要求4所述的方法,其中,所述检测投屏关联设备的当前网络环境,包括:
    基于局域网对投屏关联设备进行搜索;
    在同一局域网内搜索到全部的投屏关联设备的情况下,确定所述当前网络环境满足局域网投屏方式的投屏切换条件。
  6. 根据权利要求5所述的方法,其中,所述基于局域网对投屏关联设备进行搜索,包括:
    基于当前局域网发送搜索请求;
    接收所述当前局域网内设备反馈的设备信息,基于接收的所述设备信息验证所述当前局域网内的设备是否为投屏关联设备。
  7. 根据权利要求6所述的方法,其中,所述设备信息包括设备标识和投屏会议标识;
    所述基于接收的所述设备信息验证所述当前局域网内的设备是否为投屏关联设备,包括:
    将所述设备信息中的投屏会议标识与当前设备的投屏会议标识进行比对,以及,将所述设备信息中的设备标识与所述第一投屏方式中投屏关联设备的设备标识进行匹配;
    响应于确定所述设备信息中的投屏会议标识与当前设备的投屏会议标识相同,且所述设备信息中的设备标识与所述第一投屏方式中投屏关联设备的设备标识匹配成功,确定当前局域网内的设备为投屏关联设备。
  8. 根据权利要求5所述的方法,在同一局域网内搜索到全部的投屏关联设备的情况下,还包括:
    对所述投屏关联设备进行局域网连接;
    在任一所述投屏关联设备连接失败的情况下,确定所述当前网络环境不满足局域网投屏方式的投屏切换条件。
  9. 根据权利要求4所述的方法,其中,所述第一投屏方式为云投屏方式;
    所述将所述第一投屏方式切换为第二投屏方式,包括:
    离开云投屏的投屏房间,并向所述投屏关联设备发送局域网投屏指令,以使所述投屏关联设备接收所述局域网投屏指令,并离开云投屏的投屏房间。
  10. 根据权利要求1所述的方法,其中,所述第一投屏方式为局域网投屏方式,所述第二投屏方式为云投屏方式;
    所述云投屏方式的投屏切换条件为:投屏关联设备的局域网断连,且支持互联网接入。
  11. 根据权利要求10所述的方法,其中,所述投屏关联设备预先存储有所述云投屏方式的投屏会议标识;
    所述第二投屏方式通过以下方式确定:
    基于所述投屏会议标识,加入云投屏方式的投屏会议房间。
  12. 根据权利要求11所述的方法,其中,所述投屏会议标识的确定方式包括:
    接入投屏的任一设备,向云会议服务器发送会议申请,并接收所述云会议服务器反馈的投屏会议标识;
    接入投屏的任一设备,展示所述投屏会议标识,或者,将所述投屏会议标识发送至接入投屏的其他设备。
  13. 一种投屏装置,包括:
    网络环境检测模块,设置为在采用第一投屏方式的投屏过程中,检测投屏关联设备的当前网络环境;
    投屏切换模块,设置为响应于检测到当前网络环境满足投屏切换条件,将所述第一投屏方式切换为第二投屏方式;
    第二投屏模块,设置为采用所述第二投屏方式进行投屏。
  14. 一种电子设备,包括:
    一个或多个处理器;
    存储装置,设置为存储一个或多个程序,
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-12中任一所述的投屏方法。
  15. 一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如权利要求1-12中任一所述的投屏方法。
PCT/CN2023/118712 2022-09-26 2023-09-14 一种投屏方法、装置、电子设备及存储介质 WO2024067114A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211175867.1 2022-09-26
CN202211175867.1A CN115695928B (zh) 2022-09-26 一种投屏方法、装置、电子设备及存储介质

Publications (1)

Publication Number Publication Date
WO2024067114A1 true WO2024067114A1 (zh) 2024-04-04

Family

ID=85062750

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/118712 WO2024067114A1 (zh) 2022-09-26 2023-09-14 一种投屏方法、装置、电子设备及存储介质

Country Status (1)

Country Link
WO (1) WO2024067114A1 (zh)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150120916A1 (en) * 2004-08-20 2015-04-30 Extreme Networks, Inc. System, method and apparatus for traffic mirror setup, service and security in communication networks
CN109922205A (zh) * 2018-11-29 2019-06-21 努比亚技术有限公司 投屏实现方法、移动终端及计算机可读存储介质
CN110515572A (zh) * 2018-05-21 2019-11-29 腾讯科技(深圳)有限公司 投屏方法、装置、存储介质和计算机设备
CN110602087A (zh) * 2019-09-10 2019-12-20 腾讯科技(深圳)有限公司 智能投屏方法、装置、智能终端及服务器
CN111787588A (zh) * 2020-07-10 2020-10-16 Oppo广东移动通信有限公司 无线投屏方法、装置、相关设备及存储介质
CN113438354A (zh) * 2020-03-06 2021-09-24 华为技术有限公司 数据传输方法、装置、电子设备和存储介质
KR102327520B1 (ko) * 2021-06-04 2021-11-17 주식회사 한성정보시스템 무중단 네트워크 미러링 솔루션 시스템 및 그 방법
CN113676269A (zh) * 2020-05-15 2021-11-19 华为技术有限公司 电子设备的数据传输方法及其介质和电子设备
CN114442971A (zh) * 2020-10-30 2022-05-06 华为技术有限公司 无线投屏方法、移动设备及计算机可读存储介质
CN114499618A (zh) * 2022-02-24 2022-05-13 Oppo广东移动通信有限公司 投屏方法、装置、电子设备和计算机可读存储介质
CN115695928A (zh) * 2022-09-26 2023-02-03 抖音视界有限公司 一种投屏方法、装置、电子设备及存储介质

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150120916A1 (en) * 2004-08-20 2015-04-30 Extreme Networks, Inc. System, method and apparatus for traffic mirror setup, service and security in communication networks
CN110515572A (zh) * 2018-05-21 2019-11-29 腾讯科技(深圳)有限公司 投屏方法、装置、存储介质和计算机设备
CN109922205A (zh) * 2018-11-29 2019-06-21 努比亚技术有限公司 投屏实现方法、移动终端及计算机可读存储介质
CN110602087A (zh) * 2019-09-10 2019-12-20 腾讯科技(深圳)有限公司 智能投屏方法、装置、智能终端及服务器
CN113438354A (zh) * 2020-03-06 2021-09-24 华为技术有限公司 数据传输方法、装置、电子设备和存储介质
CN113676269A (zh) * 2020-05-15 2021-11-19 华为技术有限公司 电子设备的数据传输方法及其介质和电子设备
CN111787588A (zh) * 2020-07-10 2020-10-16 Oppo广东移动通信有限公司 无线投屏方法、装置、相关设备及存储介质
CN114442971A (zh) * 2020-10-30 2022-05-06 华为技术有限公司 无线投屏方法、移动设备及计算机可读存储介质
KR102327520B1 (ko) * 2021-06-04 2021-11-17 주식회사 한성정보시스템 무중단 네트워크 미러링 솔루션 시스템 및 그 방법
CN114499618A (zh) * 2022-02-24 2022-05-13 Oppo广东移动通信有限公司 投屏方法、装置、电子设备和计算机可读存储介质
CN115695928A (zh) * 2022-09-26 2023-02-03 抖音视界有限公司 一种投屏方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN115695928A (zh) 2023-02-03

Similar Documents

Publication Publication Date Title
US20140244854A1 (en) Content Streaming Between Devices
WO2023279891A1 (zh) 投屏设备的发现方法、装置、电子设备和存储介质
CN112312060B (zh) 屏幕共享方法、装置和电子设备
CN108684206B (zh) 一种搜索方法及装置
CN111901341B (zh) 状态同步方法及设备
CN115396521A (zh) 一种切换通信协议的方法、装置和系统
US20230199873A1 (en) Information interaction method and apparatus, and electronic device
WO2022007553A1 (zh) 建立多媒体通话的方法、装置和电子设备
CN111432001B (zh) 用于跳转场景的方法、装置、电子设备和计算机可读介质
WO2023165371A1 (zh) 音频播放方法、装置、电子设备及存储介质
WO2021254168A1 (zh) 会议控制方法、装置、可读介质及电子设备
WO2023193574A1 (zh) 投屏方法、系统、设备及存储介质
WO2022083589A1 (zh) 终端的控制方法、装置、终端和存储介质
US20140370814A1 (en) Connecting wireless devices
WO2024067114A1 (zh) 一种投屏方法、装置、电子设备及存储介质
CN111328061B (zh) 一种音频资源的控制方法、车载终端和系统
JP2018505572A (ja) ビデオ通信終了方法および装置
WO2023083367A1 (zh) 文件后台续传方法、装置、存储介质及电子设备
CN115695928B (zh) 一种投屏方法、装置、电子设备及存储介质
WO2022194025A1 (zh) 互动视频连接方法、装置、电子设备及存储介质
CN113596328B (zh) 摄像头调用方法、装置和电子设备
WO2022042592A1 (zh) 投屏方法、装置、电子设备及计算机可读介质
CN112256611B (zh) 扩展坞和系统
WO2020049352A1 (zh) 近场文件传输方法及其装置
CN114063795A (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: 23870351

Country of ref document: EP

Kind code of ref document: A1