CN115065851A - Screen projection method supporting multi-device connection, electronic device and readable storage medium - Google Patents

Screen projection method supporting multi-device connection, electronic device and readable storage medium Download PDF

Info

Publication number
CN115065851A
CN115065851A CN202210648485.XA CN202210648485A CN115065851A CN 115065851 A CN115065851 A CN 115065851A CN 202210648485 A CN202210648485 A CN 202210648485A CN 115065851 A CN115065851 A CN 115065851A
Authority
CN
China
Prior art keywords
screen projection
connection
preset
channel
miracast service
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.)
Granted
Application number
CN202210648485.XA
Other languages
Chinese (zh)
Other versions
CN115065851B (en
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.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics 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 Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202210648485.XA priority Critical patent/CN115065851B/en
Publication of CN115065851A publication Critical patent/CN115065851A/en
Application granted granted Critical
Publication of CN115065851B publication Critical patent/CN115065851B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • H04N21/43072Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen of multiple content streams on the same device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/43615Interfacing a Home Network, e.g. for connecting the client to a plurality of 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
    • H04N21/4363Adapting the video stream to a specific local network, e.g. a Bluetooth® network
    • H04N21/43637Adapting the video stream to a specific local network, e.g. a Bluetooth® network involving a wireless protocol, e.g. Bluetooth, RF or wireless LAN [IEEE 802.11]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application discloses a screen projection method supporting multi-device connection, electronic equipment and a readable storage medium, which are applied to the technical field of intelligent televisions, wherein the screen projection method supporting multi-device connection comprises the following steps: creating a Miracast service, and broadcasting a signal to be connected according to the Miracast service; receiving connection requests sent by each screen projection request device, and establishing connection with each screen projection request device according to each connection request, wherein the connection requests are generated by the screen projection request devices in response to the signals to be connected; and playing screen projection data sent by each connected screen projection request device. The application solves the technical problem that in the prior art, screen throwing convenience of multiple devices is poor.

Description

Screen projection method supporting multi-device connection, electronic device and readable storage medium
Technical Field
The application relates to the field of smart televisions, in particular to a screen projection method supporting multi-device connection, electronic equipment and a readable storage medium.
Background
With the rapid development of science and technology and the continuous improvement of user requirements, screen projection becomes the mainstream mode of large and small screen interaction for users. However, in the existing market, the existing screen projection equipment cannot adaptively support multiple devices to project screens simultaneously, and in the existing screen projection technology supporting multiple devices, the screen projection display equipment cannot display the pictures of all the screen projection requesting equipment simultaneously under the condition that the screen projection requesting equipment is too many, so that the screen projection experience of a user is poor.
Disclosure of Invention
The application mainly aims to provide a screen projection method supporting multi-device connection, an electronic device and a readable storage medium, and aims to solve the technical problem that in the prior art, multi-device screen projection convenience is poor.
In order to achieve the above object, the present application provides a screen projection method supporting multi-device connection, which is applied to a screen projection display device, and the screen projection method supporting multi-device connection includes:
creating a Miracast service, and broadcasting a signal to be connected according to the Miracast service;
receiving connection requests sent by each screen projection request device, and establishing connection with each screen projection request device according to each connection request, wherein the connection requests are generated by the screen projection request devices in response to the signals to be connected;
and playing screen projection data sent by each connected screen projection request device.
Optionally, the signal to be connected includes beacon frame information,
the step of creating the Miracast service and broadcasting the signal to be connected according to the Miracast service comprises the following steps:
determining a preset Miracast service working channel, and creating the Miracast service according to the preset Miracast service working channel;
and broadcasting beacon frame information according to the preset Miracast service working channel and the Miracast service.
Optionally, the step of determining a preset Miracast service working channel includes:
acquiring WiFi router channel information, and determining a WiFi frequency band according to the WiFi router channel information;
and determining the preset Miracast service working channel according to the WiFi router channel information and the WiFi frequency band.
Optionally, the step of determining the preset Miracast service working channel according to the WiFi router channel information and the WiFi frequency band includes:
if the WiFi frequency band is a preset first frequency band, determining the preset Miracast service working channel according to the WiFi router channel;
if the WiFi frequency band is a preset second frequency band, determining whether the WiFi router channel is a DFS (Dynamic frequency selection) channel;
if the WiFi router channel is not a DFS channel, determining the preset Miracast service working channel according to the WiFi router channel;
and if the WiFi router channel is a DFS channel, taking a 5G channel as the preset Miracast service working channel.
Optionally, before the step of determining the preset Miracast service working channel, the screen projection method supporting multi-device connection further includes:
acquiring a connection state between the screen projection display equipment and the WiFi;
if the connection state is connected, executing the following steps: determining the preset Miracast service working channel;
if the connection state is not connected, taking a 5G channel as the preset Miracast service working channel, and executing the following steps: and establishing the Miracast service according to the preset Miracast service working channel.
Optionally, the screen projection method supporting multi-device connection further includes:
when the screen projection request equipment is not connected, detecting whether WiFi connection is abnormal or not;
if the WiFi connection is disconnected or switched, determining whether historical Miracast service exists;
if the history Miracast service exists, deleting the history Miracast service, and executing the following steps: and determining a preset Miracast service working channel.
Optionally, the step of receiving and playing the screen projection data sent by the connected screen projection request device includes:
receiving screen projection data sent by the screen projection request equipment;
and when screen projection data which are simultaneously sent by a plurality of screen projection equipment are received, the screen projection data are synchronously played according to a preset arrangement mode.
In order to achieve the above object, the present application further provides a screen projection apparatus supporting multi-device connection, where the screen projection apparatus supporting multi-device connection is applied to a screen projection device supporting multi-device connection, and the screen projection apparatus supporting multi-device connection includes:
the system comprises a signal sending module, a signal receiving module and a signal sending module, wherein the signal sending module is used for creating a Miracast service and broadcasting a signal to be connected according to the Miracast service;
the screen projection connection module is used for receiving connection requests sent by each screen projection request device and establishing connection with each screen projection request device according to each connection request, wherein the connection requests are generated by the screen projection request devices in response to the signals to be connected;
and the data receiving module is used for playing the screen projection data sent by each connected screen projection request device.
Optionally, the signal to be connected includes beacon frame information, and the signal sending module is further configured to:
the step of creating the Miracast service and broadcasting the signal to be connected according to the Miracast service comprises the following steps:
determining a preset Miracast service working channel, and creating the Miracast service according to the preset Miracast service working channel;
and broadcasting beacon frame information according to the preset Miracast service working channel and the Miracast service.
Optionally, the signal sending module is further configured to:
acquiring WiFi router channel information, and determining a WiFi frequency band according to the WiFi router channel information;
and determining the preset Miracast service working channel according to the WiFi router channel information and the WiFi frequency band.
Optionally, the signal sending module is further configured to:
if the WiFi frequency band is a preset first frequency band, determining the preset Miracast service working channel according to the WiFi router channel;
if the WiFi frequency band is a preset second frequency band, determining whether the WiFi router channel is a DFS channel;
if the WiFi router channel is not a DFS channel, determining the preset Miracast service working channel according to the WiFi router channel;
and if the WiFi router channel is a DFS channel, taking a 5G channel as the preset Miracast service working channel.
Optionally, the signal sending module is further configured to:
acquiring a connection state between the screen projection display equipment and the WiFi;
if the connection state is connected, executing the following steps: determining the preset Miracast service working channel;
if the connection state is not connected, taking a 5G channel as the preset Miracast service working channel, and executing the following steps: and establishing the Miracast service according to the preset Miracast service working channel.
Optionally, the screen projection device supporting multi-device connection is further configured to:
when the screen projection request equipment is not connected, detecting whether WiFi connection is abnormal or not;
if the WiFi connection is disconnected or switched, determining whether historical Miracast service exists;
if the history Miracast service exists, deleting the history Miracast service, and executing the following steps: and determining a preset Miracast service working channel.
Optionally, the data receiving module is further configured to:
receiving screen projection data sent by the screen projection request equipment;
and when screen projection data which are simultaneously sent by a plurality of screen projection equipment are received, the screen projection data are synchronously played according to a preset arrangement mode.
The present application further provides an electronic device, the electronic device including: a memory, a processor and a program of the multi-device connection supporting screen projection method stored on the memory and executable on the processor, which when executed by the processor, may implement the steps of the multi-device connection supporting screen projection method as described above.
The present application also provides a readable storage medium, which is a computer-readable storage medium having a program for implementing a multi-device connection supporting screen projecting method stored thereon, where the program for implementing the multi-device connection supporting screen projecting method implements the steps of the multi-device connection supporting screen projecting method as described above when executed by a processor.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the screen projection method supporting multiple device connections as described above.
The application provides a screen projection method, electronic equipment and a readable storage medium supporting multi-equipment connection, namely, a Miracast service is established, and a signal to be connected is broadcasted according to the Miracast service; receiving connection requests sent by each screen projection request device, and establishing connection with each screen projection request device according to each connection request, wherein the connection requests are generated by the screen projection request devices in response to the signals to be connected; the screen-casting data sent by each connected screen-casting request device is played, the display device is used as an initiating end of the Miracast service, each screen-casting request device is used as a client to add the Miracast service, so that a plurality of devices are supported to be connected with the screen casting at the same time, the screen-casting data of each device are displayed at the same time according to the preset arrangement mode, the multi-device screen-casting display is achieved, and the convenience of a user in using the screen casting is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a schematic flowchart of a first embodiment of a screen projection method supporting multiple device connections according to the present application;
fig. 2 is a schematic device structure diagram of a hardware operating environment related to a screen projection method supporting multiple device connections in an embodiment of the present application.
The objectives, features, and advantages of the present application will be further described with reference to the accompanying drawings.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. It should be apparent that the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
In a first embodiment of the screen projecting method for supporting multi-device connection according to the present application, referring to fig. 1, the screen projecting method for supporting multi-device connection includes:
step S10, creating a Miracast service, and broadcasting a signal to be connected according to the Miracast service;
step S20, receiving connection requests sent by each screen projection request device, and establishing connection with each screen projection request device according to each connection request, wherein the connection requests are generated by the screen projection request devices responding to the signals to be connected;
and step S30, playing the screen projection data sent by each connected screen projection request device.
In this embodiment, it should be noted that Miracast is a wireless display standard established by the Wi-Fi alliance in 2012, and the underlying transport is based on WiFi direct connection. Devices supporting the standard, such as smart phones, computers and the like, can transmit audio and video to display devices in a wireless mode. The technology allows devices to be connected with each other without Access Points (APs), and performs wireless screen projection anytime and anywhere, so as to replace a wired connection and audio/video data transmission mode (such as HDMI); the screen projection request equipment scans whether a signal to be connected exists nearby, and when the signal to be connected is scanned, a connection request is initiated to the display equipment according to the signal to be connected.
Illustratively, the steps S10 to S30 include:
the method comprises the steps of establishing a Miracast service according to a Miracast protocol, and periodically sending out a signal to be connected according to related information of the Miracast service; receiving the connection requests sent by each screen projection request device, establishing session and connection with the screen projection request device according to the connection requests, so that the screen projection request device transmits audio and video streaming data needing screen projection to the display device through the Miracast service, wherein the connection requests are scanned to the signals to be connected by the screen projection request device, and are generated by responding when the connection requests are sent to the display device according to the signals to be connected; and playing screen projection data sent by each connected screen projection request device.
Specifically, the step of creating the Miracast service includes: a P2P (Peer-to-Peer) connection is created, the negotiation process of the standard P2P connection is skipped, the display device is used as GO (Group Owner) to directly create a P2P Group, and other request screen devices supporting P2P are used as GC (Group client). The method comprises the steps that a go _ intent attribute exists in P2P connection, the range is 1-15, multi-device connection screen projection can be supported only if the intent value of a display device is larger than that of a screen projection request device, if the intent value of the display device is smaller than that of the screen projection request device, the display device can only be used as a GC to be connected with P2P, multiple screen projection request devices cannot be connected with the display device simultaneously, and when the number of the connected screen projection request devices is multiple, the display device can play audio and video data transmitted by the multiple screen projection request devices simultaneously according to a preset arrangement mode.
In step S10, the signal to be connected includes beacon frame information,
the step of creating the Miracast service and broadcasting the signal to be connected according to the Miracast service comprises the following steps:
step S11, determining a preset Miracast service working channel, and creating the Miracast service according to the preset Miracast service working channel;
step S12, according to the preset Miracast service working channel and the Miracast service broadcast beacon frame information.
In this embodiment, the Channel is also called a Channel (Channel) and a frequency band, and is a data signal transmission Channel in which a radio signal (electromagnetic wave) is used as a transmission carrier. Wireless networks (routers, AP hotspots, computer wireless network cards) can operate on multiple channels. Various wireless network devices within the coverage area of wireless signals should try to use different channels to avoid interference between signals; the wireless router periodically sends out a channel frame, i.e., a Beacon frame, which includes some Basic information of the wireless router, such as ESSID (Extended Service Set Identifier), BSSID (Basic Service Set Identifier, MAC address of access point), encryption scheme, supported transmission rate, etc.
Illustratively, the steps S11 to S12 include:
determining the preset Miracast service working channel according to WiFi router channel information and a WiFi frequency band, and establishing Miracast service according to the preset Miracast service working channel; and periodically broadcasting beacon frame information to the determined preset Miracast working channel according to the Miracast service.
It should be noted that two roles, GO (Group Owner) and GC (Group client), are defined in P2P Group in the P2P connection, where only one GO may exist in a Group, but multiple GCs may exist, and in the negotiation process, a Response frame includes a GO _ Intent attribute, which represents the desirability of a device to become GO, and the maximum value is 15(15 indicates that the device must become GO), and it is determined who becomes GO by comparing values of the Group Owner attributes between devices, but in the present application, the negotiation process of establishing P2P connection needs to be skipped, and the display device is used as a GO-forced-on GO mode to directly create a P2P Group, and if the Intent value of the display device is smaller than that of the screen-requesting device, the display device will open the GC mode, at this time, the present application cannot support simultaneous connection and screen-casting of multiple devices.
After the display equipment sends the beacon frame information, if the equipment to be screened receives the beacon frame information, responding to the display equipment, sending the beacon frame information to the display equipment, and then completing the connection between the display equipment and the equipment to be screened.
In step S11, the step of determining the preset Miracast service working channel includes:
step S111, obtaining WiFi router channel information, and determining a WiFi frequency band according to the WiFi router channel information;
step S112, determining the preset Miracast service working channel according to the WiFi router channel information and the WiFi frequency band.
In this embodiment, it should be noted that the WiFi frequency band is generally divided into 2.4GHz and 5GHz, and the WiFi frequency band is simultaneously divided into 14 channels.
Exemplarily, the steps S111 to S112 include:
acquiring WiFi router channel information, determining a used WiFi frequency band by the WiFi router channel information, and determining the preset Mircast service working channel according to the WiFi router channel and the WiFi frequency band; and establishing the Miracast service according to the preset Mircast service working channel, and determining the Miracast service working channel through a WiFi router channel, so that the network transmission stability when the network and the screen projection are used simultaneously is ensured.
In step S111, the step of determining the preset Miracast service operating channel according to the WiFi router channel information and the WiFi frequency band includes:
step A10, if the WiFi frequency band is a preset first frequency band, determining the preset Miracast service working channel according to the WiFi router channel;
step A20, if the WiFi frequency band is a preset second frequency band, determining whether the WiFi router channel is a DFS channel;
step A30, if the WiFi router channel is not a DFS channel, determining the preset Miracast service working channel according to the WiFi router channel;
step a40, if the WiFi router channel is a DFS channel, taking a 5G channel as the preset Miracast service working channel.
In this embodiment, it should be noted that the preset first frequency band is usually 2.4GHz, the preset second frequency band is usually 5GHz, and the DFS channel is a dynamic frequency selection channel and occupies a part of a 5GHz spectrum in which an existing radar is deployed.
Illustratively, steps a10 through a40 include:
determining a Miracast service working channel according to the acquired router channel and the WiFi frequency band, and if the WiFi frequency band is 2.4GHz, directly setting the applied router channel as the Miracast service working channel; if the WiFi frequency band is 5GHz, determining whether the router channel is a DFS channel; if the router channel is not the DFS channel, the router channel of the application is directly set as a Miracast service working channel; and if the channel is the DFS channel, setting the 5G channel as a Miracast service working channel.
In step S11, before the step of determining the preset Miracast service working channel, the screen casting method supporting multi-device connection further includes:
step B10, acquiring the connection state between the screen projection display equipment and the WiFi;
step B20, if the connection status is connected, executing the steps of: determining the preset Miracast service working channel;
step B30, if the connection status is not connected, taking the 5G channel as the preset Miracast service working channel, and executing the steps of: and establishing the Miracast service according to the preset Miracast service working channel.
Illustratively, steps B10 through B30 include:
acquiring a connection state between the screen projection display equipment and the WiFi; if the WiFi is connected, executing the following steps: determining the preset Miracast service working channel; if the WiFi is not connected, directly setting a 5G channel as the preset Miracast service working channel, and executing the following steps: according to preset Miracast service working channel and establish the Miracast service, the screen can be thrown under the condition that no router exists, and the screen throwing method is added to the screen throwing method.
The screen projection method supporting multi-device connection further comprises the following steps:
step C10, when the screen projection request equipment is not connected, detecting whether the WiFi connection is abnormal;
step C20, if the WiFi connection is disconnected or switched, whether the historical Miracast service exists is determined;
step C30, if the history Miracast service exists, deleting the history Miracast service, and executing the steps of: and determining a preset Miracast service working channel.
Illustratively, the step C10 through step C30 include:
when the connected request screen projection equipment does not exist, if abnormal conditions such as disconnection or switching occur in the WiFi connection, whether historical Miracast service exists or not needs to be confirmed; if the Miracast service exists, deleting the historical Miracast service, then reestablishing the Miracast service, and executing the following steps: and determining the preset Miracast service working channel, and establishing the Miracast service according to the preset Miracast service working channel.
In step S30, the step of receiving and playing the screen projection data sent by the connected screen projection request device includes:
step S31, screen projection data sent by the screen projection request equipment is received;
and step S32, when screen projection data sent by a plurality of screen projection devices at the same time are received, the screen projection data are synchronously played according to a preset arrangement mode.
It should be noted that, when the display device is connected to multiple screen projection requesting devices at the same time, the display device may simultaneously display audio and video data to be projected by the multiple screen projection requesting devices, where the audio and video data are displayed according to a preset arrangement mode, and the preset arrangement mode simultaneously projects multiple screens according to the screen projection requesting devices, so as to optimize a UI interface displayed by the screen projection requesting devices, and avoid abnormal screens such as black edges.
Illustratively, the steps S31 to S32 include:
receiving screen projection data sent by screen projection equipment; when screen projection data sent by one screen recording device are received, the screen projection data are directly played; when screen projection data which are simultaneously sent by a plurality of screen projection devices are received, the screen projection data are simultaneously displayed on the display device according to a preset display arrangement mode. In the prior art, because the length-width ratios of the television and the mobile phones are different, a large area of black edges can be generated when a single screen projection device is required to project the screen, the television screen can be fully utilized by applying a preset arrangement mode, the screen projection devices such as a plurality of mobile phones are supported to be displayed simultaneously, and the user experience is improved.
The application provides a screen projection method, electronic equipment and a readable storage medium supporting multi-equipment connection, namely, a Miracast service is established, and a signal to be connected is broadcasted according to the Miracast service; receiving connection requests sent by each screen projection request device, and establishing connection with each screen projection request device according to each connection request, wherein the connection requests are generated by the screen projection request devices in response to the signals to be connected; the screen-casting data sent by each connected screen-casting request device is played, the display device is used as an initiating terminal of the Miracast service, each screen-casting request device is used as a client terminal to add the Miracast service, so that a plurality of devices are connected to the screen-casting request device simultaneously, the screen-casting data of each device are displayed simultaneously according to a preset arrangement mode, multi-device screen-casting display is achieved, and convenience of users in screen casting is improved.
Example two
The embodiment of the present application further provides a screen projecting device supporting multi-device connection, where the screen projecting device supporting multi-device connection is applied to a screen projecting device supporting multi-device connection, and the screen projecting device supporting multi-device connection includes:
the system comprises a signal sending module, a signal receiving module and a signal sending module, wherein the signal sending module is used for creating a Miracast service and broadcasting a signal to be connected according to the Miracast service;
the screen projection connection module is used for receiving connection requests sent by each screen projection request device and establishing connection with each screen projection request device according to each connection request, wherein the connection requests are generated by the screen projection request devices in response to the signals to be connected;
and the data receiving module is used for playing the screen projection data sent by each connected screen projection request device.
Optionally, the signal to be connected includes beacon frame information, and the signal sending module is further configured to:
the step of creating the Miracast service and broadcasting the signal to be connected according to the Miracast service comprises the following steps:
determining a preset Miracast service working channel, and creating the Miracast service according to the preset Miracast service working channel;
and broadcasting beacon frame information according to the preset Miracast service working channel and the Miracast service.
Optionally, the signal sending module is further configured to:
acquiring WiFi router channel information, and determining a WiFi frequency band according to the WiFi router channel information;
and determining the preset Miracast service working channel according to the WiFi router channel information and the WiFi frequency band.
Optionally, the signal sending module is further configured to:
if the WiFi frequency band is a preset first frequency band, determining the preset Miracast service working channel according to the WiFi router channel;
if the WiFi frequency band is a preset second frequency band, determining whether the WiFi router channel is a DFS channel;
if the WiFi router channel is not a DFS channel, determining the preset Miracast service working channel according to the WiFi router channel;
and if the WiFi router channel is a DFS channel, taking a 5G channel as the preset Miracast service working channel.
Optionally, the signal sending module is further configured to:
acquiring a connection state between the screen projection display equipment and the WiFi;
if the connection state is connected, executing the following steps: determining the preset Miracast service working channel;
if the connection state is not connected, taking a 5G channel as the preset Miracast service working channel, and executing the following steps: and establishing the Miracast service according to the preset Miracast service working channel.
Optionally, the screen projection device supporting multi-device connection is further configured to:
when the screen projection request equipment is not connected, detecting whether WiFi connection is abnormal or not;
if the WiFi connection is disconnected or switched, determining whether historical Miracast service exists;
if the history Miracast service exists, deleting the history Miracast service, and executing the following steps: and determining a preset Miracast service working channel.
Optionally, the data receiving module is further configured to:
receiving screen projection data sent by the screen projection request equipment;
and when screen projection data which are simultaneously sent by a plurality of screen projection equipment are received, the screen projection data are synchronously played according to a preset arrangement mode.
The screen projection device supporting multi-device connection provided by the invention adopts the screen projection method supporting multi-device connection in the first embodiment, so that the technical problem of poor convenience in multi-device screen projection is solved. Compared with the prior art, the beneficial effects of the screen projection device supporting multi-device connection provided by the embodiment of the invention are the same as the beneficial effects of the screen projection method supporting multi-device connection provided by the embodiment, and other technical features of the screen projection device supporting multi-device connection are the same as those disclosed by the embodiment method, which are not described herein again.
EXAMPLE III
An embodiment of the present invention provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the storage stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the screen projection method supporting multi-device connection in the first embodiment.
Referring now to FIG. 2, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 2 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 2, the electronic device may include a processing apparatus (e.g., a central processing unit, a graphic processor, etc.) that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) or a program loaded from a storage apparatus into a Random Access Memory (RAM). In the RAM, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device, the ROM, and the RAM are connected to each other by a bus. An input/output (I/O) interface is also connected to the bus.
Generally, the following systems may be connected to the I/O interface: input devices including, for example, touch screens, touch pads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, and the like; output devices including, for example, Liquid Crystal Displays (LCDs), speakers, vibrators, and the like; storage devices including, for example, magnetic tape, hard disk, etc.; and a communication device. The communication means may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While the figures illustrate an electronic device with various systems, it is to be understood that not all illustrated systems are required to be implemented or provided. More or fewer systems may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means, or installed from a storage means, or installed from a ROM. The computer program, when executed by a processing device, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
The electronic device provided by the invention adopts the screen projection method supporting multi-device connection in the first embodiment, so that the technical problem of poor convenience in multi-device screen projection is solved. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the invention are the same as the beneficial effects of the screen projection method supporting multi-device connection provided by the first embodiment, and other technical features of the electronic device are the same as those disclosed in the embodiment method, which are not described herein again.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the foregoing description of embodiments, the particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
Example four
The present embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon for executing the method for screen projection supporting multi-device connection in the first embodiment.
The computer readable storage medium provided by the embodiments of the present invention may be, for example, a USB flash disk, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or any combination thereof. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present embodiment, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer-readable storage medium may be embodied in an electronic device; or may be present alone without being incorporated into the electronic device.
The computer readable storage medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: creating a Miracast service, and broadcasting a signal to be connected according to the Miracast service; receiving connection requests sent by each screen projection request device, and establishing connection with each screen projection request device according to each connection request, wherein the connection requests are generated by the screen projection request devices in response to the signals to be connected; and playing screen projection data sent by each connected screen projection request device.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the names of the modules do not in some cases constitute a limitation of the unit itself.
The computer-readable storage medium provided by the invention stores the computer-readable program instructions for executing the screen projection method supporting multi-device connection, and solves the technical problem of poor convenience in multi-device screen projection. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment of the present invention are the same as the beneficial effects of the screen projection method supporting multi-device connection provided by the first embodiment, and are not described herein again.
EXAMPLE five
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the screen projection method supporting multiple device connections as described above.
The computer program product provided by the application solves the technical problem of poor screen projection convenience of multiple devices. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present invention are the same as the beneficial effects of the screen projection method supporting multi-device connection provided by the first embodiment, and are not described herein again.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. A screen projection method supporting multi-device connection is applied to screen projection display equipment, and comprises the following steps:
creating a Miracast service, and broadcasting a signal to be connected according to the Miracast service;
receiving connection requests sent by each screen projection request device, and establishing connection with each screen projection request device according to each connection request, wherein the connection requests are generated by the screen projection request devices in response to the signals to be connected;
and playing screen projection data sent by each connected screen projection request device.
2. The screen-casting method supporting multi-device connection of claim 1, wherein the signal to be connected includes beacon frame information,
the step of creating the Miracast service and broadcasting the signal to be connected according to the Miracast service comprises the following steps:
determining a preset Miracast service working channel, and creating the Miracast service according to the preset Miracast service working channel;
and broadcasting beacon frame information according to the preset Miracast service working channel and the Miracast service.
3. The screen-casting method supporting multi-device connection according to claim 2, wherein the step of determining a preset Miracast service working channel comprises:
acquiring WiFi router channel information, and determining a WiFi frequency band according to the WiFi router channel information;
and determining the preset Miracast service working channel according to the WiFi router channel information and the WiFi frequency band.
4. The screen projecting method supporting multi-device connection of claim 3, wherein the step of determining the preset Miracast service operating channel according to the WiFi router channel information and the WiFi frequency band comprises:
if the WiFi frequency band is a preset first frequency band, determining the preset Miracast service working channel according to the WiFi router channel;
if the WiFi frequency band is a preset second frequency band, determining whether the WiFi router channel is a DFS channel;
if the WiFi router channel is not a DFS channel, determining the preset Miracast service working channel according to the WiFi router channel;
and if the WiFi router channel is a DFS channel, taking a 5G channel as the preset Miracast service working channel.
5. The screen projecting method for supporting multi-device connection according to claim 2, wherein before the step of determining the preset Miracast service working channel, the screen projecting method for supporting multi-device connection further comprises:
acquiring a connection state between the screen projection display equipment and the WiFi;
if the connection state is connected, executing the following steps: determining the preset Miracast service working channel;
if the connection state is not connected, taking a 5G channel as the preset Miracast service working channel, and executing the following steps: and establishing the Miracast service according to the preset Miracast service working channel.
6. The multi-device connection enabled screen projection method of claim 1, wherein the multi-device connection enabled screen projection method further comprises:
when the screen projection request equipment is not connected, detecting whether WiFi connection is abnormal or not;
if the WiFi connection is disconnected or switched, determining whether historical Miracast service exists;
if the history Miracast service exists, deleting the history Miracast service, and executing the following steps: and determining a preset Miracast service working channel.
7. The screen-casting method supporting multi-device connection according to claim 1, wherein the step of receiving and playing the screen-casting data transmitted by the connected screen-casting-requesting device comprises:
receiving screen projection data sent by the screen projection request equipment;
and when screen projection data which are simultaneously sent by a plurality of screen projection equipment are received, the screen projection data are synchronously played according to a preset arrangement mode.
8. A screen projection device supporting multi-device connection, comprising:
the system comprises a signal sending module, a signal receiving module and a signal sending module, wherein the signal sending module is used for creating a Miracast service and broadcasting a signal to be connected according to the Miracast service;
the screen projection connection module is used for receiving connection requests sent by each screen projection request device and establishing connection with each screen projection request device according to each connection request, wherein the connection requests are generated by the screen projection request devices in response to the signals to be connected;
and the data receiving module is used for playing the screen projection data sent by each connected screen projection request device.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the multi-device connection enabled screen projection method of any of claims 1-7.
10. A computer-readable storage medium, having a program for implementing a multi-device connection-enabled screen projection method stored thereon, the program being executed by a processor to implement the multi-device connection-enabled screen projection method steps as recited in any one of claims 1 to 7.
CN202210648485.XA 2022-06-09 2022-06-09 Screen projection method supporting multi-device connection, electronic device and readable storage medium Active CN115065851B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210648485.XA CN115065851B (en) 2022-06-09 2022-06-09 Screen projection method supporting multi-device connection, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210648485.XA CN115065851B (en) 2022-06-09 2022-06-09 Screen projection method supporting multi-device connection, electronic device and readable storage medium

Publications (2)

Publication Number Publication Date
CN115065851A true CN115065851A (en) 2022-09-16
CN115065851B CN115065851B (en) 2024-05-31

Family

ID=83201303

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210648485.XA Active CN115065851B (en) 2022-06-09 2022-06-09 Screen projection method supporting multi-device connection, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN115065851B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120134349A1 (en) * 2010-11-25 2012-05-31 Samsung Electronics Co. Ltd. Device discovery method and apparatus of wi-fi p2p device
CN105100907A (en) * 2014-04-28 2015-11-25 宇龙计算机通信科技(深圳)有限公司 Selective screen projection method and device thereof
US20160234031A1 (en) * 2015-02-05 2016-08-11 Qualcomm Incorporated Centralized Application Level Multicasting with Peer-Assisted Application Level Feedback for Scalable Multimedia Data Distribution in WiFi Miracast
CN106569758A (en) * 2015-10-10 2017-04-19 阿里巴巴集团控股有限公司 Wireless projection screen method and device
CN106792823A (en) * 2016-12-28 2017-05-31 青岛海信电器股份有限公司 A kind of terminal connection method and device based on Miracast
WO2017101419A1 (en) * 2015-12-15 2017-06-22 乐视控股(北京)有限公司 Screen projection method
CN107809663A (en) * 2017-11-06 2018-03-16 深圳创维-Rgb电子有限公司 Miracast serving starting methods, intelligent television and storage medium
US20180359497A1 (en) * 2015-07-27 2018-12-13 Lg Electronics Inc. Method and device for transmitting metadata in wfd
CN111386749A (en) * 2018-10-25 2020-07-07 三星电子株式会社 Method for establishing point-to-point service sessions over infrastructure links
CN111787377A (en) * 2020-08-19 2020-10-16 青岛海信传媒网络技术有限公司 Display device and screen projection method
CN114339385A (en) * 2021-12-28 2022-04-12 海宁奕斯伟集成电路设计有限公司 Device and method for establishing connection for screen projection
CN114422845A (en) * 2021-12-20 2022-04-29 瑞芯微电子股份有限公司 Method for transceiving audio and video data and transfer equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120134349A1 (en) * 2010-11-25 2012-05-31 Samsung Electronics Co. Ltd. Device discovery method and apparatus of wi-fi p2p device
CN105100907A (en) * 2014-04-28 2015-11-25 宇龙计算机通信科技(深圳)有限公司 Selective screen projection method and device thereof
US20160234031A1 (en) * 2015-02-05 2016-08-11 Qualcomm Incorporated Centralized Application Level Multicasting with Peer-Assisted Application Level Feedback for Scalable Multimedia Data Distribution in WiFi Miracast
US20180359497A1 (en) * 2015-07-27 2018-12-13 Lg Electronics Inc. Method and device for transmitting metadata in wfd
CN106569758A (en) * 2015-10-10 2017-04-19 阿里巴巴集团控股有限公司 Wireless projection screen method and device
WO2017101419A1 (en) * 2015-12-15 2017-06-22 乐视控股(北京)有限公司 Screen projection method
CN106792823A (en) * 2016-12-28 2017-05-31 青岛海信电器股份有限公司 A kind of terminal connection method and device based on Miracast
CN107809663A (en) * 2017-11-06 2018-03-16 深圳创维-Rgb电子有限公司 Miracast serving starting methods, intelligent television and storage medium
CN111386749A (en) * 2018-10-25 2020-07-07 三星电子株式会社 Method for establishing point-to-point service sessions over infrastructure links
CN111787377A (en) * 2020-08-19 2020-10-16 青岛海信传媒网络技术有限公司 Display device and screen projection method
CN114422845A (en) * 2021-12-20 2022-04-29 瑞芯微电子股份有限公司 Method for transceiving audio and video data and transfer equipment
CN114339385A (en) * 2021-12-28 2022-04-12 海宁奕斯伟集成电路设计有限公司 Device and method for establishing connection for screen projection

Also Published As

Publication number Publication date
CN115065851B (en) 2024-05-31

Similar Documents

Publication Publication Date Title
US11888914B2 (en) Multiple flinging devices in a media fling system
US11178232B2 (en) Method and apparatus for sharing function of external device through complex network
US10887932B2 (en) Electronic device and method of registering personal cloud apparatus in user portal server thereof
CN105335112B (en) Multi-screen display information processing and main control end content sending method and device
KR20130103684A (en) Method and apparatus for providing a wi-fi display session in a wi-fi display network, and system thereof
EP3273712A1 (en) Information processing device, information processing method, and program
US10158690B2 (en) Method and system for streaming multimedia content in a wireless fidelity display network environment
CN105718227A (en) Screen transmission method and related device
US10908889B2 (en) Method, user equipment, and application server for downloading application
US11435973B2 (en) Communication apparatus, communication method, and storage medium
CN103648015A (en) Data display method and apparatus
US10912013B2 (en) Communication apparatus, control method, and storage medium
WO2023000888A1 (en) Cloud application implementing method and apparatus, electronic device, and storage medium
CN112153457A (en) Wireless screen projection connection method and device, computer storage medium and electronic equipment
CN110324413B (en) Method, device and storage medium for special effect synchronization
KR100790155B1 (en) System and method for emboding a multimedia service in mobile terminal through a remote apparatus
US20130042018A1 (en) Apparatus and method for providing streaming service
KR102162360B1 (en) Terminal for User, Driving Method Thereof, and Computer Readable Recording Medium
CN106550493B (en) Media resource sharing method and mobile terminal
CN115065851B (en) Screen projection method supporting multi-device connection, electronic device and readable storage medium
WO2017092323A1 (en) Main control device, playing device and data transmission method therefor
CN113507750B (en) Terminal control method and device, terminal and storage medium
KR20140122599A (en) Device and method performing source/sink role switch in wifi display communication
CN105653219A (en) Screen transmission control method, apparatus, system and related equipment
US10298673B2 (en) Roaming to share a communication channel

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant