WO2024082435A1 - 信息提示方法和装置 - Google Patents

信息提示方法和装置 Download PDF

Info

Publication number
WO2024082435A1
WO2024082435A1 PCT/CN2022/141959 CN2022141959W WO2024082435A1 WO 2024082435 A1 WO2024082435 A1 WO 2024082435A1 CN 2022141959 W CN2022141959 W CN 2022141959W WO 2024082435 A1 WO2024082435 A1 WO 2024082435A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
local area
area network
wireless local
prompt
Prior art date
Application number
PCT/CN2022/141959
Other languages
English (en)
French (fr)
Inventor
刘广宾
柏平平
刘芸江
欧阳俊豪
赵文娴
Original Assignee
湖南快乐阳光互动娱乐传媒有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 湖南快乐阳光互动娱乐传媒有限公司 filed Critical 湖南快乐阳光互动娱乐传媒有限公司
Publication of WO2024082435A1 publication Critical patent/WO2024082435A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/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
    • 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/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Definitions

  • the present application relates to the field of Internet technology, and in particular to an information prompting method and device.
  • a multimedia player application of a mobile terminal plays multimedia content
  • the mobile terminal will start the screen projection process and, after detecting a target device that supports screen projection, project the multimedia content played in the multimedia player application onto the target device.
  • the mobile terminal cannot access a suitable wireless LAN or cannot detect a target device that supports screen projection, wasting the processing resources of the mobile terminal for processing the screen projection operation but failing to achieve screen projection.
  • the present application provides an information prompt method and device to reduce resource consumption caused by the inability to project the screen.
  • an information prompting method comprising:
  • a first media playback application of a mobile terminal starts multimedia playback, if the mobile terminal is in a wireless local area network of a specified type, detecting whether there is at least one candidate terminal device other than the mobile terminal in the wireless local area network;
  • a first icon prompt is output in the multimedia playback window of the first media playback application, and the first icon prompt is used to prompt that there is a terminal device with a set type screen in the wireless local area network where the mobile terminal is located.
  • the method further includes:
  • At least one target terminal device with the designated port enabled in the at least one candidate terminal device obtaining a first media access control address of the target terminal device and a second media access control address of a router in the wireless local area network;
  • the target terminal devices For each of the target terminal devices, based on the first media access control address of the target terminal device and the second media access control address of the router, query from an application server whether there is an access record of the target terminal device, the application server being a server corresponding to a second media playback application that can output projection content and belongs to a specified type;
  • a second icon prompt is output in the multimedia playback window of the first media playback application, and the second icon prompt is used to prompt that there is a terminal device with a set type screen and the second media playback application installed in the wireless local area network.
  • the method further includes:
  • a third icon prompt is output in the multimedia playback window of the first media playback application, and the third icon prompt is used to prompt the user to install the second media playback application on the terminal device with a setting type screen in the wireless local area network.
  • the method further includes:
  • the application server has an access record of the target terminal device, obtaining service status information of the target terminal device, the service status information including: player application identification information of the player application currently started and running by the target terminal device;
  • a fourth icon prompt is output, and the fourth icon prompt is used to prompt the user that there is currently a terminal device capable of screen projection in the wireless local area network.
  • the detecting whether there is at least one candidate terminal device other than the mobile terminal in the wireless local area network includes:
  • the method includes:
  • test response packet fed back from at least one second IP address is received, it is determined that at least one candidate terminal device corresponding to the at least one second IP address exists in the wireless local area network, and the test response packet is a response data packet to the test packet.
  • the detecting whether the candidate terminal device has opened a designated port includes:
  • the obtaining the service status information of the target terminal device includes:
  • the service status information reported by the target terminal device based on the universal plug and play protocol is obtained, wherein the service status information is sent to the mobile terminal based on the universal plug and play protocol after the target terminal device accesses the wireless local area network.
  • an information prompting device comprising:
  • a device detection unit configured to detect, when a first media playback application of a mobile terminal starts multimedia playback, whether there is at least one candidate terminal device other than the mobile terminal in the wireless local area network if the mobile terminal is in a wireless local area network of a specified type;
  • a port detection unit configured to detect whether a designated port is enabled on the candidate terminal device if at least one candidate terminal device exists in the wireless local area network, wherein the enabling of the designated port by the candidate terminal device indicates that the candidate terminal device is a terminal device associated with a setting type screen;
  • the first prompt unit is used to output a first icon prompt in the multimedia playback window of the first media playback application if there is at least one target terminal device with the designated port turned on among the at least one candidate terminal device, and the first icon prompt is used to prompt that there is a terminal device with a set type screen in the wireless local area network where the mobile terminal is located.
  • the method further includes:
  • An address acquisition unit configured to acquire a first media access control address of the target terminal device and a second media access control address of a router in the wireless local area network if the device detection unit determines that there is at least one target terminal device with the designated port enabled in the at least one candidate terminal device;
  • a record query unit configured to query, for each of the target terminal devices, whether there is an access record of the target terminal device from an application server based on the first media access control address of the target terminal device and the second media access control address of the router, wherein the application server is a server corresponding to a second media playback application that can output projection content and belongs to a specified type;
  • the second prompt unit is used to output a second icon prompt in the multimedia playback window of the first media playback application if there is an access record of at least one target terminal device in the application server, and the second icon prompt is used to prompt that there is a terminal device with a set type screen and installed with the second media playback application in the wireless local area network.
  • the method further includes:
  • a third prompt unit is used to output a third icon prompt in the multimedia playback window of the first media playback application if there is no access record of any of the target terminal devices in the application server, and the third icon prompt is used to prompt the user to install the second media playback application on the terminal device with a setting type screen in the wireless local area network.
  • the mobile terminal when the media playback application of the mobile terminal starts to play multimedia, if the mobile terminal is in a designated wireless local area network, the mobile terminal will also detect whether there is a terminal device associated with a set type screen in the wireless local area network. Only when the mobile terminal is in the wireless local area network and there is a terminal device associated with a set type screen in the wireless local area network, will the first icon prompt be output to the multimedia playback window of the mobile terminal.
  • the user can determine through the first icon prompt that the mobile terminal is in the wireless local area network and that the wireless local area network is connected to a terminal device with a set type screen required for screen projection, thereby reducing the situation where the user blindly starts screen projection when the network environment where the mobile terminal is located does not support screen projection, and naturally can also reduce the resources consumed in processing the screen projection operation due to blindly initiating screen projection.
  • FIG1 shows a schematic flow chart of an information prompting method provided in an embodiment of the present application
  • FIG2 shows another schematic flow chart of the information prompting method provided in an embodiment of the present application
  • FIG3 shows a schematic diagram of a structural composition of an information prompting device provided in an embodiment of the present application.
  • the inventor of the present application has discovered through research that when a mobile terminal plays multimedia through a media player application, a screen projection icon will be displayed on the multimedia playback interface of the media player application.
  • the screen projection icon only indicates that the media player application supports screen projection, but it cannot indicate whether the mobile terminal is connected to a wireless local area network that supports screen projection and whether there is a large-screen smart device that can output the projection content in the wireless local area network connected to the mobile terminal. Based on this, it is often the case that users blindly initiate screen projection by clicking on the screen projection icon without knowing whether the environment in which the mobile terminal is located supports screen projection, which often interrupts the multimedia playback of the mobile terminal and makes it impossible to achieve screen projection, and also wastes the resources consumed by the mobile terminal to process the screen projection.
  • the solution of the present application will detect the network environment of the mobile terminal and the devices in the network environment of the mobile terminal when the media playback application of the mobile terminal starts multimedia playback, and give the user more accurate and detailed prompts based on the detection results, so as to reduce the situation where users blindly initiate screen projection, which naturally can also reduce the resource consumption of the mobile terminal and the interruption of multimedia playback due to blind screen projection.
  • FIG. 1 shows a flow chart of an information prompt method provided in an embodiment of the present application.
  • the method of this embodiment can be applied to a mobile terminal, which is a client where a media playback application is located.
  • the method of this embodiment includes:
  • the media playback application on the mobile terminal is referred to as the first media playback application.
  • the first media player application may also be called a multimedia player, which is an application that supports multimedia playback including video.
  • the first media player application may be a digital media player (DMP).
  • DMP digital media player
  • the first media player application may also be other types of multimedia players, etc.
  • the first media player application may also be different, and there is no restriction on this.
  • screen projection on a mobile terminal generally requires the mobile terminal to be in a specific wireless local area network. Based on this, after the user plays multimedia through the first media playback application on the mobile terminal, the first media playback application will detect whether the mobile terminal is connected to a specified type of wireless local area network.
  • the designated type of wireless local area network may be a wireless fidelity (WiFi) network.
  • WiFi wireless fidelity
  • the wireless local area network may have other possibilities, which can be set as needed without limitation.
  • a registration broadcast is performed to the wireless local area network, so that when the mobile terminal is connected to or disconnected from the wireless local area network, a broadcast notification can be received, thereby determining whether the mobile terminal is connected to the wireless local area network.
  • a broadcast notification can be received, thereby determining whether the mobile terminal is connected to the wireless local area network.
  • the terminal devices other than the mobile terminal in the wireless local area network are called candidate terminal devices.
  • the candidate terminal device can be any type of communication terminal.
  • this application takes an implementation method of detecting whether there is a candidate terminal device in a wireless local area network as an example:
  • the first Internet Protocol (IP) address of the mobile terminal can be obtained.
  • IP Internet Protocol
  • a plurality of second IP addresses that can be configured in the wireless local area network in addition to the first IP address are determined.
  • a wireless local area network can generally configure 255 IP addresses. Therefore, after the first IP address of the mobile terminal is determined, the remaining 254 network addresses that can be configured in the wireless local area network can be inferred. For example, assuming that the first IP address is: 192.168.0.1, then the IP addresses that can be configured in the wireless local area network include: 253 IP addresses from 192.168.0.2 to 192.168.0.254, and the IP address 192.168.0.0.
  • test packet is sent to each second IP address respectively to detect whether there is a candidate terminal device corresponding to each second IP address in the wireless local area network.
  • test response packet is received from the second IP address after a test packet is sent to the second IP address, it means that there is a candidate terminal device corresponding to the second IP address in the wireless local area network.
  • the test response packet is a response data packet to the test packet.
  • test response packet feedbacked by at least one second IP address is received, it can be determined that there exists at least one candidate terminal device corresponding to at least one second IP address in the wireless local area network.
  • the test packet sent to the second IP address may be a Ping test command sent through a Packet Internet Groper (Ping).
  • Ping is a program used to test network connection capacity.
  • the present application can also execute the above step S101 and subsequent related operations when the first media playback application of the mobile terminal starts high-definition video playback.
  • the opening of the designated port by the candidate terminal device indicates that the candidate terminal device is a terminal device associated with a setting type screen.
  • the purpose of screen projection is to improve the viewing effect of multimedia. Therefore, there are certain requirements for the screen of the terminal device that supports mobile terminal screen projection.
  • the terminal device that can meet the screen projection needs of the mobile terminal needs to be a terminal device associated with a set type of screen.
  • the terminal device associated with the setting type screen generally opens a designated port. Therefore, by detecting whether the candidate terminal device opens the designated port, it can be determined whether the candidate terminal device is the terminal device associated with the setting type screen.
  • the setting type screen may be specifically set as required, and the designated port may be different depending on the specific requirements of the setting type screen.
  • the set type screen can be a screen size or area exceeding a set threshold.
  • the terminal device associated with the set type screen can be a so-called large-screen smart device, such as a smart TV, or a smart set-top box device that can be connected to a screen or a projection screen, etc., without restriction.
  • large-screen smart devices it can be determined whether they are large-screen smart devices by detecting whether port 5555 is open.
  • a connection request may be sent to a designated port of a candidate terminal device to detect whether the designated port is enabled on the candidate terminal device. Accordingly, if a response to the connection request is received, it is determined that the designated port is enabled on the candidate terminal device.
  • the mobile terminal may send a socket connection request to the designated port of the candidate terminal device through the network layer. If the connection fails, it is confirmed that the designated port of the candidate terminal device is not enabled. Otherwise, if the connection is successful, it can be determined that the designated port of the candidate terminal device is enabled.
  • the aforementioned Ping test method can be used to send a Ping command to a designated interface of a candidate terminal device to test whether the designated port of the candidate terminal device is enabled.
  • test methods which are not limited thereto.
  • the first icon prompt is used to prompt that there is a terminal device with a set type of screen in the wireless local area network where the mobile terminal is located. Through the first icon prompt, the user can be prompted that there is a terminal device in the wireless local area network that can meet the mobile terminal screen projection requirements.
  • the first icon prompt may indicate that there is a large-screen smart device in the WiFi network, so that the user can understand that there is a large-screen smart device in the WiFi network that can meet the screen projection requirements of the mobile terminal.
  • the first icon prompt may be a prompt bar with prompt information.
  • the first icon prompt may be a prompt icon that prompts "there is a terminal device with a set type of screen in the wireless local area network where the mobile terminal is located".
  • the prompt icon may be permanently displayed in the multimedia playback window of the first media playback application; or it may be hidden after being displayed in the multimedia playback window for a period of time, and may be presented again after a specific operation is detected.
  • a first indication may be sent to the server of the first media playback application, where the first indication is used to indicate that there is a target terminal device with a designated port enabled in the wireless local area network where the mobile terminal is located.
  • the server may generate the first icon indication and feed it back to the first media playback application, and the first media playback application may output the first icon indication.
  • the present application can also display a list of the at least one target terminal device after detecting that the first icon indication is clicked.
  • the mobile terminal when the media playback application of the mobile terminal starts to play multimedia, if the mobile terminal is in a designated wireless local area network, the mobile terminal will also detect whether there is a terminal device associated with a set type screen in the wireless local area network. Only when the mobile terminal is in a wireless local area network and there is a terminal device associated with a set type screen in the wireless local area network, will the first icon prompt be output to the multimedia playback window of the mobile terminal.
  • the user can determine through the first icon prompt that the mobile terminal is in a wireless local area network and that the wireless local area network is connected to a terminal device with a set type screen required for screen projection, thereby reducing the situation where the user blindly starts screen projection when the network environment where the mobile terminal is located does not support screen projection, and naturally can also reduce the resources consumed in processing the screen projection operation due to blindly initiating screen projection.
  • the first icon prompts the user to confirm the network environment in which the mobile terminal is located and whether the network environment has the terminal equipment required for screen projection, it can also reduce the situation where normal multimedia playback is affected by screen projection failure due to blind initiation of screen projection, and reduce the situation where multimedia playback is interrupted due to screen projection failure.
  • the mobile terminal accesses a wireless LAN of a specified type and there is a target terminal device with a specified port turned on in the wireless LAN, although it can be shown that there is a device in the wireless LAN where the mobile terminal is located that can meet the screen projection requirements, it cannot be said that the target terminal device must support screen projection or must currently meet the screen projection conditions.
  • the present application can further analyze whether a multimedia playback application that supports screen projection is installed on the target mobile terminal, whether the multimedia playback application is turned on, etc., and provide more detailed information prompts.
  • FIG2 Another flow chart of the information prompting method provided by the embodiment of the present application is shown.
  • the method of the embodiment may include:
  • step S201 when the first media playback application of the mobile terminal starts multimedia playback, if the mobile terminal is in a wireless local area network of a specified type, detect whether there is at least one candidate terminal device other than the mobile terminal in the wireless local area network, if yes, execute step S202; if not, end subsequent processing.
  • step S202 detecting whether there is at least one target terminal device with a designated port opened in at least one candidate terminal device, if yes, executing step S203; if no, ending.
  • the fact that the candidate terminal device has the designated port enabled indicates that the candidate terminal device is a terminal device associated with a set type of screen. For example, as described above, whether the candidate terminal device is a large-screen smart device can be determined by detecting whether the candidate terminal device has the 5555 port enabled.
  • S203 Outputting a first icon prompt in a multimedia playback window of a first media playback application.
  • the first icon prompt is used to prompt that there is a terminal device with a set type screen in the wireless local area network where the mobile terminal is located.
  • step S204 needs to be executed.
  • the execution order of these two steps is not limited to that shown in FIG. 2. In actual applications, these two steps can be executed simultaneously or in an interchangeable order.
  • the Media Access Control Address (MAC) address is also called the media access control address, local area network address, Ethernet address or physical address. It is an address used to confirm the location of the network device.
  • MAC Media Access Control Address
  • the present application refers to the MAC address of the target terminal device as the first MAC address, and the MAC address of the router as the second MAC address.
  • the MAC address of the router is also the MAC address of the site, that is, the BSSID.
  • the MAC address corresponding to the second IP address of each target terminal device in the wireless local area network can be obtained based on the Address Resolution Protocol (ARP).
  • ARP protocol is a TCP/IP protocol that obtains a physical address based on an IP address.
  • any terminal device in the wireless local area network accesses the wireless local area network, it will report the MAC address of the terminal device to the router, and the router will have a corresponding relationship between the IP address and the MAC address of each terminal device. Based on this, the mobile terminal in the wireless local area network can request the MAC address corresponding to each second IP address from the router based on the ARP protocol to obtain the first MAC address of the target terminal device.
  • a router After determining the IP address of the router, you can directly request the MAC address of the router from the router.
  • the wireless LAN accessed by the mobile terminal is a WiFi network, you can also obtain the MAC address of the router in the WiFi network through the WiFi Manager interface.
  • the application server is a server corresponding to the second media playback application that can output projection content and belongs to the specified type.
  • the first media playback application and the second media playback application may be media playback applications on different types of terminal devices.
  • the first media player application and the second media player application may be media player applications developed by the same developer and applicable to different types of devices.
  • the first media player application may be a player developed by application developer M for mobile devices
  • the second media player application may be a player developed by application developer M for large-screen smart terminals such as smart TVs.
  • the application server may be an application server for the first media player application and the second media player application.
  • the application server of the second media playback application contains an access record corresponding to the second MAC address of the target terminal device and the second MAC address of the router in the wireless local area network, it means that the target terminal device has historically logged in to the application server through the second media playback application and through the wireless local area network, which naturally means that the second media playback application is installed on the target terminal device.
  • the present application may only focus on whether the target terminal device has accessed the application server of the second media player application within the most recent set duration. Accordingly, based on the first MAC address of the target terminal device and the second MAC address of the router, it may be possible to query whether there is an access record of the target terminal device in the application server of the second media player application within the most recent set duration.
  • the most recent set time period can be set as needed, such as the most recent one month or the most recent 15 days, etc., without limitation.
  • the second icon prompt is used to prompt that there is a terminal device with a set type screen and a second media playback application installed in the wireless local area network.
  • the second icon prompt is different from the first icon prompt.
  • the second icon prompt may also have multiple forms.
  • the second icon prompt may be a prompt bar with prompt information.
  • the second icon prompt may be an icon that prompts "there is a terminal device with a set type of screen and a second media playback application installed in the wireless local area network where the mobile terminal is located.”
  • the icon may be fixedly presented in the multimedia playback window of the first media playback application; or it may be hidden after being displayed in the multimedia playback window for a period of time, and may be presented again after a specific operation is detected.
  • the first icon prompt and the second icon prompt may be two independent icon prompts.
  • a list of target terminal devices may be displayed after the user clicks the first icon prompt, in which the second icon prompt is marked for the target terminal devices having the second media playback application installed.
  • the user can know through the second icon prompt that the wireless local area network where the mobile terminal is located not only has a target terminal device with the set screen type, but also because the target terminal device has a second media playback application installed, the target terminal device can support the mobile terminal to project the screen to it. On this basis, the user can choose whether to initiate screen projection as needed to avoid blind screen projection.
  • the third icon prompt is used to prompt the user to install the second media playback application on a terminal device with a setting type screen in the wireless local area network.
  • this application can prompt users to install the second media player application through the third icon prompt, which is not only conducive to ensuring reliable screen projection of the mobile terminal, but also can achieve the role of promoting the second media player application.
  • the third icon prompt may be a static icon, or a displayed static or dynamic prompt bar, etc., and there is no limitation on this.
  • step S208 is merely an optional step, and in actual applications, this step can be performed or not performed as needed.
  • step S209 it is necessary to perform subsequent operations such as step S209.
  • S209 For each target terminal device having an access record in the application server, obtain service status information of the target terminal device.
  • the service status information of the target terminal device is information about the services that the target terminal device can provide.
  • the service status information includes: the player application identification information of the player application currently started and running by the target terminal device; the player application identification information may include one or more of the information such as the name and identification of the player application.
  • the service status information of the target terminal device can be sent to each device in the wireless local area network when the target terminal device accesses the wireless local area network.
  • the service status information can also be updated regularly.
  • service status information reported by the target terminal device based on the Universal Plug and Play (UPNP) protocol can be obtained.
  • the service status information is sent to the mobile terminal based on the UPNP protocol after the target terminal device accesses the wireless local area network.
  • UPNP Universal Plug and Play
  • the steps S209 and S207 may be executed simultaneously or in a different order, without limitation.
  • the fact that the player application identification information corresponding to the target terminal device includes the identification information of the second media player application may indicate that the second media player application is currently started on the target terminal device.
  • the fourth icon prompt is used to prompt the user that there is currently a terminal device capable of screen projection in the wireless local area network.
  • the mobile terminal can output a fourth icon prompt for prompting that the multimedia can be projected to the DMP second media playback application of the designated merchant.
  • the fourth icon prompt there may be many possible specific prompt forms of the fourth icon prompt, such as a fixedly displayed icon or a dynamic prompt bar, etc., without limitation.
  • the present embodiment can further determine whether the target terminal device has started the media playback application and give corresponding prompts, so that the user can understand the status of the target terminal device in the wireless local area network where the mobile terminal is located more comprehensively and in detail according to the prompts, thereby providing more detailed information basis for the user to decide whether to start screen projection.
  • the present application can pre-install a software development kit (SDK) in the first media playback application.
  • SDK software development kit
  • the SDK program can be started, and the above-mentioned related operations such as determining whether the mobile terminal is in a wireless local area network of a specified type and whether there is a target terminal device with a specified port opened in the wireless local area network and analyzing the service status information of the target terminal device can be performed through the SDK.
  • the present application also provides an information prompting device.
  • FIG. 3 shows a schematic diagram of a composition structure of an information prompting device of the present application.
  • the device of this embodiment may include:
  • the device detection unit 301 is configured to detect whether there is at least one candidate terminal device other than the mobile terminal in the wireless local area network when the first media playback application of the mobile terminal starts multimedia playback and if the mobile terminal is in a wireless local area network of a specified type;
  • the port detection unit 302 is used to detect whether the candidate terminal device has a designated port enabled if there is at least one candidate terminal device in the wireless local area network, wherein the enabling of the designated port by the candidate terminal device indicates that the candidate terminal device is a terminal device associated with a set type screen;
  • the first prompt unit 303 is used to output a first icon prompt in the multimedia playback window of the first media playback application if there is at least one target terminal device with the designated port turned on among the at least one candidate terminal device, and the first icon prompt is used to prompt that there is a terminal device with a set type of screen in the wireless local area network where the mobile terminal is located.
  • the device further includes:
  • an address acquisition unit configured to acquire a first media access control address of the target terminal device and a second media access control address of a router in the wireless local area network if the device detection unit determines that there is at least one target terminal device with the designated port enabled in the at least one candidate terminal device;
  • a record query unit configured to query, for each of the target terminal devices, whether there is an access record of the target terminal device from an application server based on the first media access control address of the target terminal device and the second media access control address of the router, wherein the application server is a server corresponding to a second media playback application that can output projection content and belongs to a specified type;
  • the second prompt unit is used to output a second icon prompt in the multimedia playback window of the first media playback application if there is an access record of at least one target terminal device in the application server, and the second icon prompt is used to prompt that there is a terminal device with a set type screen and installed with the second media playback application in the wireless local area network.
  • the device further includes:
  • a third prompt unit is used to output a third icon prompt in the multimedia playback window of the first media playback application if there is no access record of any of the target terminal devices in the application server, and the third icon prompt is used to prompt the user to install the second media playback application on the terminal device with a setting type screen in the wireless local area network.
  • the device further includes:
  • a status obtaining unit configured to obtain service status information of the target terminal device if the access record of the target terminal device exists in the application server as determined by the record query unit, the service status information comprising: player application identification information of the player application currently started and running by the target terminal device;
  • the fourth prompt unit is used to output a fourth icon prompt if the player application identification information corresponding to the target terminal device includes the identification information of the second media playback application.
  • the fourth icon prompt is used to prompt the user that there is currently a terminal device capable of screen projection in the wireless local area network.
  • the device detection unit includes:
  • a first IP obtaining unit configured to obtain a first IP address of the mobile terminal
  • a second IP obtaining unit configured to determine a plurality of second IP addresses that can be configured in the wireless local area network in addition to the first IP address;
  • a device testing unit configured to send a test packet to each of the second IP addresses to detect whether a candidate terminal device corresponding to the second IP address exists in the wireless local area network
  • the port test unit confirms that there is at least one candidate terminal device in the wireless local area network, specifically, if a test response packet fed back from at least one second IP address is received, it is determined that there is at least one candidate terminal device corresponding to the at least one second IP address in the wireless local area network, and the test response packet is a response data packet to the test packet.
  • the port detection unit includes:
  • a connection request subunit configured to send a connection request to a designated port of the candidate terminal device to detect whether the designated port is enabled on the candidate terminal device;
  • each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments.
  • the same and similar parts between the embodiments can be referred to each other.
  • the features recorded in each embodiment in this specification can be replaced or combined with each other, so that professionals in the field can implement or use this application.
  • the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请提供了一种信息提示方法和装置,该方法包括:在移动终端的第一媒体播放应用启动多媒体播放的情况下,如果移动终端处于指定类型的无线局域网内,检测无线局域网内是否存在至少一个候选终端设备;如果无线局域网内存在至少一个候选终端设备,检测候选终端设备是否开启指定端口,其中,候选终端设备开启指定端口表征候选终端设备属于关联有设定类型屏幕的终端设备;如果至少一个候选终端设备中存在开启指定端口的至少一个目标终端设备,在第一媒体播放应用的多媒体播放窗口输出第一图标提示,第一图标提示用于提示移动终端所处的无线局域网内存在具有设定类型屏幕的终端设备。本申请的方案可以减少由于无效投屏而导致的资源耗费。

Description

信息提示方法和装置
本申请要求于2022年10月21日提交中国专利局、申请号为202211293176.1、发明名称为“信息提示方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及互联网技术领域,尤其涉及一种信息提示方法和装置。
背景技术
为了提高视频等多媒体观看效果,经常需要将移动终端上播放的视频等多媒体数据投屏到智能电视等具有较大屏幕的智能设备进行显示。
在移动终端的多媒体播放应用播放多媒体内容的过程中,如果用户点击该多媒体播放应用的多媒体播放窗口上的投屏图标,移动终端会启动投屏处理流程,并在检测到支持投屏的目标设备后,将多媒体播放应用中播放的多媒体内容投屏到该目标设备上。但是,很多情况下,用户点击了投屏图标之后,移动终端却无法接入适合的无线局域网或者是检测不到支持投屏的目标设备,浪费了移动终端处理投屏操作的处理资源却无法实现投屏。
发明内容
有鉴于此,本申请提供了一种信息提示方法和装置,以减少由于无法投屏而导致的资源耗费。
为实现上述目的,本申请提供了一种信息提示方法,包括:
在移动终端的第一媒体播放应用启动多媒体播放的情况下,如果所述移动终端处于指定类型的无线局域网内,检测所述无线局域网内是否存在所述移动终端之外的至少一个候选终端设备;
如果所述无线局域网内存在至少一个候选终端设备,检测所述候选终端设备是否开启指定端口,其中,所述候选终端设备开启指定端口表征所述候选终端设备属于关联有设定类型屏幕的终端设备;
如果所述至少一个候选终端设备中存在开启所述指定端口的至少一个目标终端设备,在所述第一媒体播放应用的多媒体播放窗口输出第一图标提示,所述第一图标提示用于提示所述移动终端所处的无线局域网内存在具有设定类型屏幕的终端设备。
在一种可能的实现方式中,还包括:
如果所述至少一个候选终端设备中存在开启所述指定端口的至少一个目标终端设备,获取所述目标终端设备的第一媒体访问控制地址以及所述无线局域网中路由器的第二媒体访问控制地址;
针对每个所述目标终端设备,基于所述目标终端设备的第一媒体访问控制地址以及所述路由器的第二媒体访问控制地址,从应用服务器查询是否存在所述目标终端设备的访问记录,所述应用服务器为能够输出投屏内容且属于指定类型的第二媒体播放应用对应的服务器;
如果所述应用服务器中存在至少一个目标终端设备的访问记录,在所述第一媒体播放应用的多媒体播放窗口输出第二图标提示,所述第二图标提示用于提示所述无线局域网内存在具有设定类型屏幕且安装有所述第二媒体播放应用的终端设备。
在又一种可能的实现方式中,还包括:
如果所述应用服务器中不存在任意一个所述目标终端设备的访问记录,在所述第一媒体播放应用的多媒体播放窗口输出第三图标提示,所述第三图标提示用于提示用户在所述无线局域网内具有设定类型屏幕的终端设备上安装所述第二媒体播放应用。
在又一种可能的实现方式中,还包括:
如果所述应用服务器中存在所述目标终端设备的访问记录,获得所述目标终端设备的服务状态信息,所述服务状态信息包括:所述目标终端设备当前启动并运行的播放器应用的播放器应用标识信息;
如果所述目标终端设备对应的播放器应用标识信息中包括所述第二媒体播放应用的标识信息,输出第四图标提示,所述第四图标提示用于提示用户所述无线局域网内当前存在能够实现投屏的终端设备。
在又一种可能的实现方式中,所述检测所述无线局域网内是否存在所 述移动终端之外的至少一个候选终端设备,包括:
获得所述移动终端的第一IP地址;
确定所述无线局域网内除所述第一IP地址外能够配置的多个第二IP地址;
分别向所述第二IP地址发送测试包,以探测所述无线局域网内是否存在所述第二IP地址对应的候选终端设备;
所述如果无线局域网内存在至少一个候选终端设备,包括:
如果接收到来自至少一个第二IP地址反馈的测试响应包,确定所述无线局域网内存在所述至少一个第二IP地址对应的至少一个候选终端设备,所述测试响应包为针对所述测试包的响应数据包。
在又一种可能的实现方式中,所述检测所述候选终端设备是否开启指定端口,包括:
向所述候选终端设备的指定端口发送连接请求,以检测所述候选终端设备是否开启所述指定端口;
其中,如果接收到针对所述连接请求的响应,则确定所述候选终端设备开启所述指定端口。
在又一种可能的实现方式中,所述获得所述目标终端设备的服务状态信息,包括:
获得目标终端设备基于通用即插即用协议上报的服务状态信息,所述服务状态信息为所述目标终端设备接入所述无线局域网后,基于所述通用即插即用协议发送给所述移动终端的。
又一方面,本申请还提供了一种信息提示装置,包括:
设备检测单元,用于在移动终端的第一媒体播放应用启动多媒体播放的情况下,如果所述移动终端处于指定类型的无线局域网内,检测所述无线局域网内是否存在所述移动终端之外的至少一个候选终端设备;
端口检测单元,用于如果所述无线局域网内存在至少一个候选终端设备,检测所述候选终端设备是否开启指定端口,其中,所述候选终端设备开启指定端口表征所述候选终端设备属于关联有设定类型屏幕的终端设备;
第一提示单元,用于如果所述至少一个候选终端设备中存在开启所述指定端口的至少一个目标终端设备,在所述第一媒体播放应用的多媒体播放窗口输出第一图标提示,所述第一图标提示用于提示所述移动终端所处的无线局域网内存在具有设定类型屏幕的终端设备。
在一种可能的实现方式中,还包括:
地址获取单元,用于如果设备检测单元确定所述至少一个候选终端设备中存在开启所述指定端口的至少一个目标终端设备,获取所述目标终端设备的第一媒体访问控制地址以及所述无线局域网中路由器的第二媒体访问控制地址;
记录查询单元,用于针对每个所述目标终端设备,基于所述目标终端设备的第一媒体访问控制地址以及所述路由器的第二媒体访问控制地址,从应用服务器查询是否存在所述目标终端设备的访问记录,所述应用服务器为能够输出投屏内容且属于指定类型的第二媒体播放应用对应的服务器;
第二提示单元,用于如果所述应用服务器中存在至少一个目标终端设备的访问记录,在所述第一媒体播放应用的多媒体播放窗口输出第二图标提示,所述第二图标提示用于提示所述无线局域网内存在具有设定类型屏幕且安装有所述第二媒体播放应用的终端设备。
在又一种可能的实现方式中,还包括:
第三提示单元,用于如果所述应用服务器中不存在任意一个所述目标终端设备的访问记录,在所述第一媒体播放应用的多媒体播放窗口输出第三图标提示,所述第三图标提示用于提示用户在所述无线局域网内具有设定类型屏幕的终端设备上安装所述第二媒体播放应用。
由以上可知,在本申请实施例中,在移动终端的媒体播放应用启动播放多媒体的情况下,如果移动终端处于指定的无线局域网内,移动终端还会检测该无线局域网内是否存在关联有设定类型屏幕的终端设备。只有该移动终端处于无线局域网内且该无线局域网内存在关联有设定类型屏幕的终端设备,才会向该移动终端的多媒体播放窗口输出第一图标提示,因此, 用户通过该第一图标提示可以确定移动终端处于无线局域网内且该无线局域网内接入有实现投屏所需的具有设定类型屏幕的终端设备,从而可以减少在移动终端所处的网络环境等不支持投屏而用户盲目启动投屏的情况,自然也可以减少由于盲目发起投屏而导致处理投屏操作所耗费的资源。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。
图1示出了本申请实施例提供的信息提示方法的一种流程示意图;
图2示出了本申请实施例提供的信息提示方法的又一种流程示意图;
图3示出了本申请实施例提供的信息提示装置的一种组成结构示意图。
具体实施方式
本申请的发明人经过研究发现:在移动终端通过媒体播放应用播放多媒体时,在媒体播放应用的多媒体播放界面上会显示有一个投屏图标。但是该投屏图标仅仅是说明该媒体播放应用支持投屏,但是却不能说明该移动终端是否接入支持投屏的无线局域网以及移动终端接入的无线局域网内是否存在能够输出投屏内容的大屏幕智能设备。基于此,目前经常会出现用户在不清楚移动终端所处环境是否支持投屏的情况下,盲目通过点击投屏图标来发起投屏,从而经常会出现既中断了移动终端的多媒体播放而无法实现投屏的情况,还浪费了移动终端处理投屏所耗费的资源。
基于以上研究,本申请的方案在移动终端的媒体播放应用启动多媒体播放时,会对移动终端所处的网络环境以及移动终端所处网络环境内的设备进行检测,并根据检测结果给出用户更为精准和详细的提示,以减少用 户盲目发起投屏的情况,自然也就可以减少由于盲目投屏而导致移动终端的资源耗费以及中断多媒体播放的情况。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
如图1所示,其示出了本申请实施例提供的信息提示方法的一种流程示意图,本实施例的方法可以应用于移动终端,该移动终端为媒体播放应用所在的客户端。本实施例的方法包括:
S101,在移动终端的第一媒体播放应用启动多媒体播放的情况下,如果移动终端处于指定类型的无线局域网内,检测无线局域网内是否存在移动终端之外的至少一个候选终端设备。
其中,为了与移动终端之外其他设备上的媒体播放应用进行区分,将移动终端上的媒体播放应用称为第一媒体播放应用。
该第一媒体播放应用也可以称为多媒体播放器,其为支持视频在内的多媒体播放的应用。如,第一媒体播放应用可以为数字媒体播放器(Digital MediaPlayer,DMP)。
当然,该第一媒体播放应用也可以为其他类型的多媒体播放器等,针对不同的开发商,第一媒体播放应用也会有所不同,对此不加限制。
可以理解的是,移动终端实现投屏一般会要求移动终端处于特定的无线局域网内,基于此,本申请在用户通过移动终端的第一媒体播放应用播放多媒体后,第一媒体播放应用会检测移动终端是否接入指定类型的无线局域网。
其中,该指定类型的无线局域网可以为无线保真(Wireless Fidelity,WiFi)网络。当然,根据移动终端的具体应用场景以及随着技术不断发展,该无线局域网还可以有其他可能,具体可以根据需要设定,对此不加限制。
其中,确定移动终端是否接入无线局域网的方式可以有多种,如,可 以是第一媒体播放应用启动时,向无线局域网进行注册广播,以在移动终端接入或者与无线局域网断开时,可以收到广播通知,从而可以确定移动终端是否接入无线局域网。当然,还可以有其他检测移动终端是否接入该指定类型的无线局域网的方式,对此不加限制。
在本申请中,如果移动终端接入的无线局域网内不存在其他终端设备,必然无法将移动终端中播放的多媒体投屏到其他终端设备上,因此,本申请还需要进一步检测该无线局域网内是否存在其他终端设备。为了便于区分,将无线局域网内该移动终端之外的终端设备称为候选终端设备。该候选终端设备可以为任意类型的通信终端。
其中,检测该无线局域网内是否存在移动终端之外的候选终端设备的方式可以有多种可能,本申请对此不加限制。
为了便于理解,本申请以检测无线局域网内是否存在候选终端设备的一种实现方式为例说明:
首先,可以获得该移动终端的第一互联网协议(Internet Protocol,IP)地址。
其次,确定该无线局域网内除该第一IP地址外能够配置的多个第二IP地址。
如,一个无线局域网内一般可以配置255个IP地址,因此,在移动终端的第一IP地址确定后,可以推测出该无线局域网内还能够配置的其余254个网络地址。例如,假设第一IP地址为:192.168.0.1,那么该无线局域网内还可以配置的IP地址包括:从192.168.0.2到192.168.0.254的253个IP地址,以及192.168.0.0这一IP地址。
然后,分别向各第二IP地址发送测试包,以探测无线局域网内是否存在各第二IP地址对应的候选终端设备。
其中,对于任意一个第二IP地址而言,如果向该第二IP地址发送测试包之后,接收到来自该第二IP地址返回的测试响应包,则说明该无线局域网内存在该第二IP地址对应的候选终端设备。该测试响应包为针对该测试包的响应数据包。
相应的,如果接收到至少一个第二IP地址反馈的测试响应包,则可以 确定该无线局域网内存在至少一个第二IP地址对应的至少一个候选终端设备。
其中,向第二IP地址发送的测试包可以为通过因特网包探索器(Packet Internet Groper,Ping)发送的Ping测试命令。Ping是用于测试网络连接量的程序。
当然,还可以是借助因特网控制协议(Internet Control Message Protocol,ICMP)的其他报文来发送测试包,对此不加限制。
在一种可选方式中,考虑到移动终端在播放高清视频时,移动终端投屏的需求会更大,因此,本申请还可以是在移动终端的第一媒体播放应用启动高清视频播放的情况下,执行如上步骤S101以及后续相关操作。
S102,如果无线局域网内存在至少一个候选终端设备,检测候选终端设备是否开启指定端口。
其中,候选终端设备开启指定端口表征候选终端设备属于关联有设定类型屏幕的终端设备。
可以理解的是,投屏的目的是提高多媒体的观看效果,因此,对于支持移动终端投屏的终端设备的屏幕需要有一定要求,在本申请中,能够满足移动终端的投屏需求的终端设备需要为关联有设定类型屏幕的终端设备。
其中,关联设定类型屏幕的终端设备一般会开启指定端口,因此,通过检测该候选终端设备是否开启指定端口,可以判断该候选终端设备是否为关联设定类型屏幕的终端设备。
其中,设定类型屏幕可以根据需要具体设定,根据设定类型屏幕的具体需求不同,该指定端口也会有所不同。
如,在本申请中,设定类型屏幕可以为屏幕尺寸或者面积超过设定阈值。在此基础上,关联有设定类型屏幕的终端设备可以为俗称的大屏智能设备,如智能电视,或者能够连接屏幕或者投影幕布的智能机顶盒设备等,对此不加限制。对于这些大屏智能设备而言,可以通过探测是否开启5555端口,来判断是否为大屏智能设备。
在本申请中,检测候选智能设备是否开启指定端口的方式也可以有多 种可能。
如,可以向候选终端设备的指定端口发送连接请求,以检测候选终端设备是否开启指定端口。相应的,如果接收到针对该连接请求的响应,则确定该候选终端设备开启了该指定端口。
例如,可以移动终端可以通过网络层向候选终端设备的指定端口发送套接字Socket连接请求,如果连接失败,则确认该候选终端设备未开启指定端口;反之如果连接成功,则可以确定该候选终端设备开启了指定端口。
又如,还可以采用前面提到的Ping测试的方式向候选终端设备的指定接口发送Ping命令,以测试该候选终端设备是否开启指定端口。当然,还可以有其他测试方式,对此不加限制。
S103,如果至少一个候选终端设备中存在开启指定端口的至少一个目标终端设备,在第一媒体播放应用的多媒体播放窗口输出第一图标提示。
其中,该第一图标提示用于提示该移动终端所处的无线局域网内存在具有设定类型屏幕的终端设备。通过该第一图标提示可以提示用户在无线局域网内存在能够满足移动终端投屏需求的终端设备。
例如,第一图标提示可以提示WiFi网络内存在大屏智能设备,以使得用户能够了解到WiFi网络内存在能够符合移动终端投屏需求的大屏幕智能设备。
在本申请中,该第一图标提示的具体形式可以有多种可能。
如,第一图标提示可以为具有提示信息的提示条。
为了实现更好的提示效果,该第一图标提示可以是一个具有提示“该移动终端所处的无线局域网内存在具有设定类型屏幕的终端设备”这一作用的提示图标。该提示图标可以固定呈现在第一媒体播放应用的多媒体播放窗口中;也可以是在多媒体播放窗口显示一段时间后隐藏,并可以在检测到特定操作后再呈现出来。
在一种可能的实现方式中,在移动终端的第一媒体播放应用确认移动终端所处的无线局域网内存在开启指定端口的目标终端设备后,可以向该第一媒体播放应用的服务器发送第一指示,该第一指示用于指示移动终端所处的无线局域网内存在开启指定端口的目标终端设备。在此基础上,服 务器可以生成该第一图标指示并反馈给第一媒体播放应用,第一媒体播放应用会输出该第一图标指示。
在一种可选方式中,考虑到移动终端所处的无线局域网内开启指定端口的目标终端设备可能会有多个,为了使得用户能够查看具体的目标终端设备为哪些等。本申请还可以在检测到点击该第一图标指示后,展示该至少一个目标终端设备的列表。
由以上内容可知,在本申请中,在移动终端的媒体播放应用启动播放多媒体的情况下,如果移动终端处于指定的无线局域网内,移动终端还会检测该无线局域网内是否存在关联有设定类型屏幕的终端设备。只有该移动终端处于无线局域网内且该无线局域网内存在关联有设定类型屏幕的终端设备,才会向该移动终端的多媒体播放窗口输出第一图标提示,因此,用户通过该第一图标提示可以确定移动终端处于无线局域网内且该无线局域网内接入有实现投屏所需的具有设定类型屏幕的终端设备,从而可以减少在移动终端所处的网络环境等不支持投屏而用户盲目启动投屏的情况,自然也可以减少由于盲目发起投屏而导致处理投屏操作所耗费的资源。
另外,由于通过第一图标提示用户可以确认移动终端所处的网络环境以及网络环境内的是否具备投屏所需的终端设备,也可以减少由于盲目发起投屏而导致投屏失败影响到正常的多媒体播放的情况,减少了由于投屏失败而导致多媒体播放中断的情况。
可以理解的是,在移动终端接入指定类型的无线局域网,而且该无线局域网内存在开启了指定端口的目标终端设备之后,虽然可以说明移动终端所处的无线局域网内存在能够满足投屏需求的设备,但是却无法说明该目标终端设备一定支持投屏或者当前一定能够满足投屏条件。
基于此,为了能够进一步详细提示出移动终端能够启动投屏的可能性程序,本申请还可以进一步分析目标移动终端上是否安装有能够支持投屏的多媒体播放应用,以及多媒体播放应用是否开启等,并给出更为详细的信息提示。
下面结合一种具体的信息提示方式进行说明。如图2,其示出了本申 请实施例提供的信息提示方法的又一种流程示意图,本实施例的方法可以包括:
S201,在移动终端的第一媒体播放应用启动多媒体播放的情况下,如果移动终端处于指定类型的无线局域网内,检测无线局域网内是否存在移动终端之外的至少一个候选终端设备,如果是,则执行步骤S202;如果否,结束后续处理。
S202,检测至少一个候选终端设备中是否存在开启指定端口的至少一个目标终端设备,如果是,则执行步骤S203;如果否,则结束。
其中,候选终端设备开启指定端口表征所述候选终端设备属于关联有设定类型屏幕的终端设备。例如,如前面所述,可以通过检测候选终端设备是否开启有5555端口,来判断该候选终端设备是否属于大屏智能设备。
S203,在第一媒体播放应用的多媒体播放窗口输出第一图标提示。
其中,第一图标提示用于提示该移动终端所处的无线局域网内存在具有设定类型屏幕的终端设备。
对于如上步骤S201到S203可以参见前面实施例的相关介绍,在此不再赘述。
S204,获取每个目标终端设备各自的第一媒体访问控制地址以及无线局域网中路由器的第二媒体访问控制地址。
在本实施例中,如果至少一个候选终端设备中存在开启指定端口的至少一个目标终端设备,除了执行步骤S203之外,还需要执行步骤S204。当然,这两个步骤的执行顺序并不限于图2所示,在实际应用中,这两个步骤可以同步执行,也可以互换顺序。
其中,媒体访问控制(Media Access Control Address,MAC)地址也称为媒体存取控制位址,局域网地址,以太网地址或物理地址,它是一个用来确认网络设备位置的位址。
为了便于区分,本申请将目标终端设备的MAC地址称为第一MAC地址,而将路由器的MAC地址称为第二MAC地址。其中,路由器的MAC地址也也就是站点的MAC地址,即BSSID。
在本申请获得目标终端设备和无线局域网的MAC地址的方式可以有 多种可能的实现方式,对此不加限制。
在一种可能的实现方式中,可以基于地址解析协议(Address Resolution Protocol,ARP)获取该无线局域网内各目标终端设备的第二IP地址对应的MAC地址。该ARP协议是根据IP地址获取物理地址的一个TCP/IP协议。
如,无线局域网内的任意一个终端设备接入到该无线局域网之后,都会向路由器上报该终端设备的MAC地址,路由器中会存在每个终端设备的IP地址与MAC地址的对应关系。基于此,无线局域网内的移动终端可以基于ARP协议向路由器请求各个第二IP地址对应的MAC地址,得到该目标终端设备的第一MAC地址。
对于路由器,在确定该路由器的IP地址之后,可以直接从路由器请求该路由器的MAC地址。当然,对于安卓系统的移动终端,在移动终端接入的无线局域网为WiFi网络的情况下,也可以通过WiFi Manager接口获得该WIFI网络中路由器的MAC地址。
S205,针对每个目标终端设备,基于目标终端设备的第一媒体访问控制地址以及路由器的第二媒体访问控制地址,从应用服务器查询是否存在目标终端设备的访问记录。
其中,应用服务器为能够输出投屏内容且属于指定类型的第二媒体播放应用对应的服务器。
其中,该第一媒体播放应用和第二媒体播放应用可以是不同类型终端设备上的媒体播放应用。
在一种可选方式中,第一媒体播放应用和第二媒体播放应用可以为同一开发商开发的,适用于不同类型设备的媒体播放应用。例如,第一媒体播放应用可以为应用开发商M针对移动端设备开发的播放器,而第二媒体播放器应用为该应用开发商M针对智能电视等大屏智能终端开发的播放器。相应的,该应用服务器可以为第一媒体播放应用和第二媒体播放应用的应用服务器。
可以理解的是,如果第二媒体播放应用的应用服务器中存在该目标终端设备的第二MAC地址和该无线局域网内路由器的第二MAC地址对应的 访问记录,那么就说明该目标终端设备历史上通过第二媒体播放应用且经该无线局域网登录过该应用服务器,自然也就可以说明该目标终端设备上安装有该第二媒体播放应用。
进一步的,为了能够准确地确定目标终端设备上第二媒体播放应用的安装情况,本申请可以仅仅关注该目标终端设备在最近的设定时长内是否访问过该第二媒体播放应用的应用服务器。相应的,可以基于目标终端设备的第一MAC地址和路由器的第二MAC地址,查询该第二媒体播放应用的应用服务器中最近的设定时长内是否存在该目标终端设备的访问记录。
其中,该最近的设定时长可以根据需要设定。如,该最近的设定时长可以为最近一个月或者最近15天等,对此不加限制。
S206,判断该应用服务器中是否存在至少一个目标终端设备的访问记录,如果是,则执行步骤S207;如果否,执行步骤S208。
S207,在第一媒体播放应用的多媒体播放窗口输出第二图标提示。
该第二图标提示用于提示无线局域网内存在具有设定类型屏幕且安装有第二媒体播放应用的终端设备。
该第二图标提示不同于第一图标提示。
与第一图标提示的具体形式类似,该第二图标提示也可以有多种形式。如,该第二图标提示可以为具有提示信息的提示条。或者是,为了实现更好的提示效果,该第二图标提示可以是一个具有提示“该移动终端所处的无线局域网内存在具有设定类型屏幕且安装有第二媒体播放应用的终端设备”这一作用的图标。该图标可以固定呈现在第一媒体播放应用的多媒体播放窗口中;也可以是在多媒体播放窗口显示一段时间后隐藏,并可以在检测到特定操作后再呈现出来。
在本申请中,第一图标提示和第二图标提示可以为两个相互独立的图标提示。
进一步的,为了使得用户能够确定哪些目标终端设备上安装有第二媒体播放应用,还可以是在用户点击第一图标提示后,展现出目标终端设备的列表,在该列表中为安装有第二媒体播放应用的目标终端设备标示出第二图标提示。
由第二图标提示的提示作用可知,用户通过该第二图标提示能够获知该移动终端所处的无线局域网内不仅具有设定屏幕类型的目标终端设备,且由于目标终端设备安装有第二媒体播放应用,该目标终端设备能够支持移动终端向其投屏,在此基础上,用户便可以根据需要选择是否发起投屏,避免盲目投屏。
S208,在该第一媒体播放应用的多媒体播放窗口输出第三图标提示,结束处理。
其中,第三图标提示用于提示用户在该无线局域网内具有设定类型屏幕的终端设备上安装该第二媒体播放应用。
如果所述应用服务器中不存在任意一个目标终端设备的访问记录,则说明该移动终端所处的无线局域网内不存在安装有第二媒体播放应用且具有设定类型屏幕的终端设备。在此基础上,为了能够使得用户能够通过投屏看到更好的多媒体效果,本申请通过第三图标提示可以提示用户安装该第二媒体播放应用,不仅有利于保证移动终端的可靠投屏,也可以实现推广该第二媒体播放应用的作用。
其中,第三图标提示的具体形式也可以有多种可能,如第三图标提示可以是静态图标,也可以是显示出的静态或者动态的提示栏等,对此不加限制。
可以理解的是,该步骤S208仅仅为一个可选步骤,在实际应用中可以根据需要选择执行或者不执行该步骤。
可以理解的是,如果应用服务器中不存在至少一个目标终端设备的访问记录,也就需要再执行后续步骤S209等操作。
S209,对于在应用服务器中存在访问记录的每个目标终端设备,获得该目标终端设备的服务状态信息。
其中,该目标终端设备的服务状态信息为目标终端设备能够提供的服务的信息。在本申请中,该服务状态信息包括:目标终端设备当前启动并运行的播放器应用的播放器应用标识信息;播放器应用标识信息可以包括播放器应用的名称和标识等信息中的一种或者多种。
其中,该目标终端设备的服务状态信息可以是目标终端设备接入该无 线局域网时,发送给该无线局域网内各个设备的,当然,该服务状态信息还可以定期更新。
如,在一种可能的实现方式中,可以获得目标终端设备基于通用即插即用(Universal Plug and Play,UPNP)协议上报的服务状态信息。该服务状态信息为目标终端设备接入无线局域网后,基于UPNP协议发送给该移动终端的。
该步骤S209和S207可以同步执行,也可以互换顺序,对此不加限制。
S210,如果目标终端设备对应的播放器应用标识信息中包括第二媒体播放应用的标识信息,输出第四图标提示。
其中,目标终端设备对应的播放器应用标识信息中包括第二媒体播放应用的标识信息可以说明目标终端设备上当前已启动该第二媒体播放应用。
其中,第四图标提示用于提示用户该无线局域网内当前存在能够实现投屏的终端设备。
例如,以第二媒体播放应用为指定商家的DMP为例,那么就需要查看目标终端设备中已启动的播放器应用的播放器应用标识中是否存在该指定商家的DMP的标识信息,如果存在,则说明目标终端设备上已启动该指定商家的DMP。在此基础上,移动终端可以输出用于提示可以将多媒体投屏到该指定商家的DMP第二媒体播放应用的第四图标提示。
在本申请中,第四图标提示的具体提示形式也可以有多种可能,如,可以为固定显示的图标或者是动态的提示栏等等,对此不加限制。
可以理解的是,如果应用服务器中存在目标终端设备的访问记录,只能说明目标终端设备上安装有第二媒体播放应用,但是如果该目标终端设备上的第二媒体播放应用未开启,那么用户无法通过移动终端直接向该目标终端设备上的第二媒体播放应用发起投屏,可能需要用户先开启该第二媒体播放应用或者可能需要用户选择其他投屏效果较差的方式来投屏等。
基于此,在应用服务器中存在目标终端设备的访问记录的情况下,本实施例还可以进一步确定目标终端设备是否已启动媒体播放应用,并给出相应的提示,从而使得用户根据提示能够更为全面且详细了解到移动终端 所处无线局域网内目标终端设备的状态,从而为用户是否启动投屏提供更详细的信息依据。
可以理解的是,为了能够在移动终端的第一媒体播放应用启动多媒体播放时,能够分析移动终端所处的网络环境以及网络环境内其他终端设备的相关状态,即执行本申请以上实施例的相关操作,本申请可以在第一媒体播放应用中预置软件程序开发包(SDK),在此基础上,在第一媒体播放应用启动多媒体播放时,可以启动该SDK的程序,并通过该SDK执行以上确定移动终端是否处于指定类型的无线局域网以及无线局域网内是否存在开启指定端口的目标终端设备以及分析目标终端设备的服务状态信息等相关操作。
对应本申请的一种信息提示方法,本申请还提供了一种信息提示装置。
如图3所示,其示出了本申请一种信息提示装置的一种组成结构示意图。本实施例的装置可以包括:
设备检测单元301,用于在移动终端的第一媒体播放应用启动多媒体播放的情况下,如果所述移动终端处于指定类型的无线局域网内,检测所述无线局域网内是否存在所述移动终端之外的至少一个候选终端设备;
端口检测单元302,用于如果所述无线局域网内存在至少一个候选终端设备,检测所述候选终端设备是否开启指定端口,其中,所述候选终端设备开启指定端口表征所述候选终端设备属于关联有设定类型屏幕的终端设备;
第一提示单元303,用于如果所述至少一个候选终端设备中存在开启所述指定端口的至少一个目标终端设备,在所述第一媒体播放应用的多媒体播放窗口输出第一图标提示,所述第一图标提示用于提示所述移动终端所处的无线局域网内存在具有设定类型屏幕的终端设备。
在一种可能的实现方式中,该装置还包括:
地址获取单元,用于如果设备检测单元确定所述至少一个候选终端设备中存在开启所述指定端口的至少一个目标终端设备,获取所述目标终端 设备的第一媒体访问控制地址以及所述无线局域网中路由器的第二媒体访问控制地址;
记录查询单元,用于针对每个所述目标终端设备,基于所述目标终端设备的第一媒体访问控制地址以及所述路由器的第二媒体访问控制地址,从应用服务器查询是否存在所述目标终端设备的访问记录,所述应用服务器为能够输出投屏内容且属于指定类型的第二媒体播放应用对应的服务器;
第二提示单元,用于如果所述应用服务器中存在至少一个目标终端设备的访问记录,在所述第一媒体播放应用的多媒体播放窗口输出第二图标提示,所述第二图标提示用于提示所述无线局域网内存在具有设定类型屏幕且安装有所述第二媒体播放应用的终端设备。
在又一种可能的实现方式中,该装置还包括:
第三提示单元,用于如果所述应用服务器中不存在任意一个所述目标终端设备的访问记录,在所述第一媒体播放应用的多媒体播放窗口输出第三图标提示,所述第三图标提示用于提示用户在所述无线局域网内具有设定类型屏幕的终端设备上安装所述第二媒体播放应用。
在又一种可能的实现方式中,该装置还包括:
状态获得单元,用于如果所述通过所述记录查询单元确定所述应用服务器中存在所述目标终端设备的访问记录,获得所述目标终端设备的服务状态信息,所述服务状态信息包括:所述目标终端设备当前启动并运行的播放器应用的播放器应用标识信息;
第四提示单元,用于如果所述目标终端设备对应的播放器应用标识信息中包括所述第二媒体播放应用的标识信息,输出第四图标提示,所述第四图标提示用于提示用户所述无线局域网内当前存在能够实现投屏的终端设备。
在又一种可能的实现方式中,所述设备检测单元,包括:
第一IP获得单元,用于获得所述移动终端的第一IP地址;
第二IP获得单元,用于确定所述无线局域网内除所述第一IP地址外能够配置的多个第二IP地址;
设备测试单元,用于分别向所述第二IP地址发送测试包,以探测所述无线局域网内是否存在所述第二IP地址对应的候选终端设备;
所述端口测试单元在确认无线局域网内存在至少一个候选终端设备时,具体为,如果接收到来自至少一个第二IP地址反馈的测试响应包,确定所述无线局域网内存在所述至少一个第二IP地址对应的至少一个候选终端设备,所述测试响应包为针对所述测试包的响应数据包。
在又一种可能的实现方式中,该端口检测单元包括:
连接请求子单元,用于向所述候选终端设备的指定端口发送连接请求,以检测所述候选终端设备是否开启所述指定端口;
其中,如果接收到针对所述连接请求的响应,则确定所述候选终端设备开启所述指定端口。
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。同时,本说明书中各实施例中记载的特征可以相互替换或者组合,使本领域专业技术人员能够实现或使用本申请。对于装置类实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一 个……”限定的要素,并不排除在包括要素的过程、方法、物品或者设备中还存在另外的相同要素。
对所公开的实施例的上述说明,使本领域技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。
以上仅是本申请的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。

Claims (10)

  1. 一种信息提示方法,其特征在于,包括:
    在移动终端的第一媒体播放应用启动多媒体播放的情况下,如果所述移动终端处于指定类型的无线局域网内,检测所述无线局域网内是否存在所述移动终端之外的至少一个候选终端设备;
    如果所述无线局域网内存在至少一个候选终端设备,检测所述候选终端设备是否开启指定端口,其中,所述候选终端设备开启指定端口表征所述候选终端设备属于关联有设定类型屏幕的终端设备;
    如果所述至少一个候选终端设备中存在开启所述指定端口的至少一个目标终端设备,在所述第一媒体播放应用的多媒体播放窗口输出第一图标提示,所述第一图标提示用于提示所述移动终端所处的无线局域网内存在具有设定类型屏幕的终端设备。
  2. 根据权利要求1所述的方法,其特征在于,还包括:
    如果所述至少一个候选终端设备中存在开启所述指定端口的至少一个目标终端设备,获取所述目标终端设备的第一媒体访问控制地址以及所述无线局域网中路由器的第二媒体访问控制地址;
    针对每个所述目标终端设备,基于所述目标终端设备的第一媒体访问控制地址以及所述路由器的第二媒体访问控制地址,从应用服务器查询是否存在所述目标终端设备的访问记录,所述应用服务器为能够输出投屏内容且属于指定类型的第二媒体播放应用对应的服务器;
    如果所述应用服务器中存在至少一个目标终端设备的访问记录,在所述第一媒体播放应用的多媒体播放窗口输出第二图标提示,所述第二图标提示用于提示所述无线局域网内存在具有设定类型屏幕且安装有所述第二媒体播放应用的终端设备。
  3. 根据权利要求2所述的方法,其特征在于,还包括:
    如果所述应用服务器中不存在任意一个所述目标终端设备的访问记录,在所述第一媒体播放应用的多媒体播放窗口输出第三图标提示,所述第三图标提示用于提示用户在所述无线局域网内具有设定类型屏幕的终端 设备上安装所述第二媒体播放应用。
  4. 根据权利要求2所述的方法,其特征在于,还包括:
    如果所述应用服务器中存在所述目标终端设备的访问记录,获得所述目标终端设备的服务状态信息,所述服务状态信息包括:所述目标终端设备当前启动并运行的播放器应用的播放器应用标识信息;
    如果所述目标终端设备对应的播放器应用标识信息中包括所述第二媒体播放应用的标识信息,输出第四图标提示,所述第四图标提示用于提示用户所述无线局域网内当前存在能够实现投屏的终端设备。
  5. 根据权利要求1所述的方法,其特征在于,所述检测所述无线局域网内是否存在所述移动终端之外的至少一个候选终端设备,包括:
    获得所述移动终端的第一IP地址;
    确定所述无线局域网内除所述第一IP地址外能够配置的多个第二IP地址;
    分别向所述第二IP地址发送测试包,以探测所述无线局域网内是否存在所述第二IP地址对应的候选终端设备;
    所述如果无线局域网内存在至少一个候选终端设备,包括:
    如果接收到来自至少一个第二IP地址反馈的测试响应包,确定所述无线局域网内存在所述至少一个第二IP地址对应的至少一个候选终端设备,所述测试响应包为针对所述测试包的响应数据包。
  6. 根据权利要求1所述的方法,其特征在于,所述检测所述候选终端设备是否开启指定端口,包括:
    向所述候选终端设备的指定端口发送连接请求,以检测所述候选终端设备是否开启所述指定端口;
    其中,如果接收到针对所述连接请求的响应,则确定所述候选终端设备开启所述指定端口。
  7. 根据权利要求4所述的方法,其特征在于,所述获得所述目标终端设备的服务状态信息,包括:
    获得目标终端设备基于通用即插即用协议上报的服务状态信息,所述 服务状态信息为所述目标终端设备接入所述无线局域网后,基于所述通用即插即用协议发送给所述移动终端的。
  8. 一种信息提示装置,其特征在于,包括:
    设备检测单元,用于在移动终端的第一媒体播放应用启动多媒体播放的情况下,如果所述移动终端处于指定类型的无线局域网内,检测所述无线局域网内是否存在所述移动终端之外的至少一个候选终端设备;
    端口检测单元,用于如果所述无线局域网内存在至少一个候选终端设备,检测所述候选终端设备是否开启指定端口,其中,所述候选终端设备开启指定端口表征所述候选终端设备属于关联有设定类型屏幕的终端设备;
    第一提示单元,用于如果所述至少一个候选终端设备中存在开启所述指定端口的至少一个目标终端设备,在所述第一媒体播放应用的多媒体播放窗口输出第一图标提示,所述第一图标提示用于提示所述移动终端所处的无线局域网内存在具有设定类型屏幕的终端设备。
  9. 根据权利要求8所述的装置,其特征在于,还包括:
    地址获取单元,用于如果设备检测单元确定所述至少一个候选终端设备中存在开启所述指定端口的至少一个目标终端设备,获取所述目标终端设备的第一媒体访问控制地址以及所述无线局域网中路由器的第二媒体访问控制地址;
    记录查询单元,用于针对每个所述目标终端设备,基于所述目标终端设备的第一媒体访问控制地址以及所述路由器的第二媒体访问控制地址,从应用服务器查询是否存在所述目标终端设备的访问记录,所述应用服务器为能够输出投屏内容且属于指定类型的第二媒体播放应用对应的服务器;
    第二提示单元,用于如果所述应用服务器中存在至少一个目标终端设备的访问记录,在所述第一媒体播放应用的多媒体播放窗口输出第二图标提示,所述第二图标提示用于提示所述无线局域网内存在具有设定类型屏幕且安装有所述第二媒体播放应用的终端设备。
  10. 根据权利要求9所述的装置,其特征在于,还包括:
    第三提示单元,用于如果所述应用服务器中不存在任意一个所述目标终端设备的访问记录,在所述第一媒体播放应用的多媒体播放窗口输出第三图标提示,所述第三图标提示用于提示用户在所述无线局域网内具有设定类型屏幕的终端设备上安装所述第二媒体播放应用。
PCT/CN2022/141959 2022-10-21 2022-12-26 信息提示方法和装置 WO2024082435A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211293176.1 2022-10-21
CN202211293176.1A CN115665471A (zh) 2022-10-21 2022-10-21 信息提示方法和装置

Publications (1)

Publication Number Publication Date
WO2024082435A1 true WO2024082435A1 (zh) 2024-04-25

Family

ID=84990395

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/141959 WO2024082435A1 (zh) 2022-10-21 2022-12-26 信息提示方法和装置

Country Status (2)

Country Link
CN (1) CN115665471A (zh)
WO (1) WO2024082435A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108200468A (zh) * 2018-01-09 2018-06-22 武汉斗鱼网络科技有限公司 投屏实现方法、存储介质、电子设备及系统
CN108391161A (zh) * 2018-02-06 2018-08-10 苏州必捷网络有限公司 一种跨平台无线投屏方法
CN110109636A (zh) * 2019-04-28 2019-08-09 华为技术有限公司 投屏方法、电子设备以及系统
CN113055976A (zh) * 2021-03-15 2021-06-29 深圳乐播科技有限公司 基于局域网的无线投屏方法、装置、设备及存储介质
WO2021212668A1 (zh) * 2020-04-22 2021-10-28 海信视像科技股份有限公司 一种投屏显示方法及显示设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108200468A (zh) * 2018-01-09 2018-06-22 武汉斗鱼网络科技有限公司 投屏实现方法、存储介质、电子设备及系统
CN108391161A (zh) * 2018-02-06 2018-08-10 苏州必捷网络有限公司 一种跨平台无线投屏方法
CN110109636A (zh) * 2019-04-28 2019-08-09 华为技术有限公司 投屏方法、电子设备以及系统
WO2021212668A1 (zh) * 2020-04-22 2021-10-28 海信视像科技股份有限公司 一种投屏显示方法及显示设备
CN113055976A (zh) * 2021-03-15 2021-06-29 深圳乐播科技有限公司 基于局域网的无线投屏方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN115665471A (zh) 2023-01-31

Similar Documents

Publication Publication Date Title
US7436783B2 (en) Method and apparatus for detecting a router that improperly responds to ARP requests
JP4882036B1 (ja) 電化製品の種別を決定する情報処理装置、方法、サーバ
US7725594B2 (en) Assigning priority to network traffic at customer premises
EP2169877B1 (en) Processing method and device for qinq termination configuration
JP4235460B2 (ja) ネットワークデバイス管理方法、ネットワークデバイス管理プログラム及びネットワーク制御装置
US7873981B2 (en) Methods, systems and computer program products for providing internet protocol television set up
US20070250605A1 (en) Automatic discovery and configuration of network devices
US8386603B2 (en) Information processing terminal device and network connection method
WO2022134616A1 (zh) 一种无线网络时延处理方法、系统以及接入服务器
US8332513B2 (en) Method and device for detecting connectivity termination of internet protocol version 6 access networks
US20100281146A1 (en) Dynamic domain name service system and automatic registration method
US20060294257A1 (en) IP address obtaining method
WO2009090707A1 (ja) 通信端末装置及び通信機器接続制御方法
JP2001077815A (ja) Dhcpサーバを監視する方法
WO2012083869A1 (zh) 一种网络电视机顶盒检测方法和系统
JP2009230358A (ja) 情報処理装置、画像形成装置及びその制御方法
WO2024082435A1 (zh) 信息提示方法和装置
US20120008628A1 (en) Network communication apparatus, communication method, and integrated circuit
CN106792200A (zh) 一种工作模式切换方法、装置及机顶盒
JP2003324455A (ja) ウェブ基盤のケーブルモデム管理装置およびその装置を用いたケーブルモデムの設定方法
US9100284B2 (en) System and method for installation of network interface modules
CN112468886A (zh) 组播数据转发方法、装置、设备及可读存储介质
TWI714386B (zh) 探知隱匿網路位址的方法及管控伺服器
KR101285965B1 (ko) 네트워크 설정 장치 및 방법
CN117615214A (zh) 一种数据共享方法及显示设备