CN108966316B - Method, device and equipment for displaying multimedia resources and predicting connection waiting duration - Google Patents

Method, device and equipment for displaying multimedia resources and predicting connection waiting duration Download PDF

Info

Publication number
CN108966316B
CN108966316B CN201810636979.XA CN201810636979A CN108966316B CN 108966316 B CN108966316 B CN 108966316B CN 201810636979 A CN201810636979 A CN 201810636979A CN 108966316 B CN108966316 B CN 108966316B
Authority
CN
China
Prior art keywords
wireless access
access point
connection
target wireless
historical
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.)
Active
Application number
CN201810636979.XA
Other languages
Chinese (zh)
Other versions
CN108966316A (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.)
Shanghai Lianshang Network Technology Co Ltd
Original Assignee
Shanghai Lianshang Network Technology 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 Shanghai Lianshang Network Technology Co Ltd filed Critical Shanghai Lianshang Network Technology Co Ltd
Priority to CN201810636979.XA priority Critical patent/CN108966316B/en
Publication of CN108966316A publication Critical patent/CN108966316A/en
Application granted granted Critical
Publication of CN108966316B publication Critical patent/CN108966316B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a method, a device, a terminal device and a computer readable medium for displaying multimedia resources, and a method, a device, a terminal device and a computer readable medium for predicting connection waiting time. The method for displaying the multimedia resources comprises the following steps: determining a wireless access point in the vicinity of the client; determining a target wireless access point to be connected in the nearby wireless access points and determining a multimedia resource matched with the expected connection waiting duration of the target wireless access point; and displaying the multimedia resource after entering a waiting period for connecting the target wireless access point. Compared with the prior art, the method and the device have the advantages that more colorful interface contents can be provided in the interface waiting for connection, negative emotion generated by the user in the process of waiting for connection is reduced, so that the probability of canceling connection of the user in the connection waiting process can be reduced, and the connection success rate is improved.

Description

Method, device and equipment for displaying multimedia resources and predicting connection waiting duration
Technical Field
The application relates to the technical field of hotspot connection, in particular to a method, a device, terminal equipment and a computer readable medium for displaying multimedia resources, and a method, a device, terminal equipment and a computer readable medium for predicting connection waiting time.
Background
With the popularization of mobile communication, more and more users use terminal devices to connect to a network through a Wireless-Fidelity (WiFi) hotspot (also called an Access Point (AP)) or mobile data. In order to save the mobile data traffic cost, users often surf the internet through WiFi hotspots as much as possible.
Because the WiFi hotspots are mostly privatized, and due to safety consideration and the requirement of controlling access, most WiFi hotspots can set passwords, so that a user cannot access the WiFi hotspots without knowing the passwords. In order to facilitate the use of users, various forms of free internet surfing tools are currently proposed.
For example, the free internet surfing tool can utilize idle WiFi resources shared by hotspot owners, help more users surf the internet, enable the users to see which shared WiFi hotspots are around no matter where the users are, and click to connect to surf the internet.
For a user, if he needs to connect to a certain WiFi hotspot, the following operations are required: firstly, a nearby WiFi hotspot list is obtained, the name, signal strength and the like of each WiFi hotspot can be displayed in the WiFi hotspot list, a user can select one WiFi hotspot according to the name, signal strength and the like of each WiFi hotspot, the free internet surfing tool can automatically inquire the password of the WiFi hotspot from a service end through a mobile network, and the password is connected to the WiFi hotspot according to the password returned by the service end.
In practical application, the free internet access tool needs to pass through a series of processes of verifying the validity of the WiFi, inquiring passwords, applying for access, authenticating identities, waiting for the WiFi to distribute IP addresses and the like when being connected with the WiFi hotspot, and is influenced by factors such as the communication quality of a mobile network, the response speed of the WiFi hotspot, the congestion condition and the like, and the whole connection process needs to take several seconds or even dozens of seconds. During the period of connecting the WiFi hotspot, a connection waiting page is usually displayed, the user needs to stay on the connection waiting page to wait, and the user cancels the connection in the process of waiting for the WiFi connection, which may result in the failure of the connection.
In view of the above, it is desirable to provide a solution that can improve the connection success rate of WiFi hotspots.
Disclosure of Invention
The application aims to provide a method, a device, a terminal device and a computer readable medium for displaying multimedia resources, and a method, a device, a terminal device and a computer readable medium for predicting connection waiting time.
A first aspect of the present application provides a method for presenting a multimedia asset, for a client, comprising: determining a wireless access point in the vicinity of the client; determining a target wireless access point to be connected in the nearby wireless access points and determining a multimedia resource matched with the expected connection waiting duration of the target wireless access point; and displaying the multimedia resource after entering a waiting period for connecting the target wireless access point.
A second aspect of the present application provides an apparatus for presenting a multimedia asset, comprising: a wireless access point determination module for determining wireless access points in the vicinity of the client; a multimedia resource determining module, configured to determine a target wireless access point to be connected among the nearby wireless access points and determine a multimedia resource that matches an expected connection waiting duration of the target wireless access point; and the multimedia resource display module is used for displaying the multimedia resource after the waiting period for connecting the target wireless access point is entered.
A third aspect of the present application provides a terminal device, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor executing the computer program when executing the computer program to perform the method provided by the first aspect of the present application.
A fourth aspect of the present application provides a computer readable medium having computer readable instructions stored thereon, the computer readable instructions being executable by a processor to implement the method provided by the first aspect of the present application.
A fifth aspect of the present application provides a method for predicting a connection waiting duration, which is used for a server and includes: acquiring identification information of at least one wireless access point in wireless access points near a client from the client; querying and acquiring historical connection records of at least part of the at least one wireless access point according to the identification information, wherein the historical connection records record historical connection waiting time of the at least part of wireless access points; and predicting the expected connection waiting time of at least part of wireless access points according to the historical connection records.
A sixth aspect of the present application provides an apparatus for predicting a connection latency, comprising: the identification information acquisition module is used for acquiring identification information of at least one wireless access point in wireless access points near a client from the client; a history record query module, configured to query and obtain a history connection record of at least some wireless access points in the at least one wireless access point according to the identification information, where a history connection waiting duration of the at least some wireless access points is recorded in the history connection record; and the waiting duration prediction module is used for predicting the expected connection waiting duration of at least part of wireless access points according to the historical connection records.
A seventh aspect of the present application provides a terminal device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor executing the computer program when executing the computer program to perform the method provided by the fifth aspect of the present application.
An eighth aspect of the present application provides a computer readable medium having computer readable instructions stored thereon, the computer readable instructions being executable by a processor to implement the method provided by the fifth aspect of the present application.
The method for presenting multimedia resources provided by the first aspect of the application comprises the following steps: determining a wireless access point in the vicinity of the client; determining a target wireless access point to be connected in the nearby wireless access points and determining a multimedia resource matched with the expected connection waiting duration of the target wireless access point; and displaying the multimedia resource after entering a waiting period for connecting the target wireless access point. Compared with the prior art, the method for displaying the multimedia resources, provided by the application, can display the multimedia resources after entering the waiting period for connecting the target wireless access point by acquiring the predicted connection waiting time of the target wireless access point and determining the multimedia resources matched with the predicted connection waiting time, can provide more colorful interface contents in an interface waiting for connection by displaying the multimedia resources, reduces the probability of canceling the connection of a user in the connection waiting process, and further improves the success rate of connection; and by predicting the connection waiting time of the wireless access point, the multimedia resource matched with the connection waiting time can be obtained, so that the multimedia resource more suitable for display is provided.
The apparatus for presenting multimedia resources provided by the second aspect of the present application, the terminal device provided by the third aspect of the present application, and the computer-readable medium provided by the fourth aspect of the present application have the same advantages and are the same as the inventive concept provided by the method for presenting multimedia resources provided by the first aspect described above.
A fifth aspect of the present application provides a method for predicting a connection latency, including: acquiring identification information of at least one wireless access point in wireless access points near a client from the client; querying and acquiring historical connection records of at least part of the at least one wireless access point according to the identification information, wherein the historical connection records record historical connection waiting time of the at least part of wireless access points; and predicting the expected connection waiting time of at least part of wireless access points according to the historical connection records. Compared with the prior art, the method for predicting the connection waiting time can determine the predicted connection waiting time according to the historical connection records of the wireless access points, and on one hand, data reference can be provided for a user to select a target wireless access point with short connection waiting time for connection, so that the connection efficiency is improved; on the other hand, data reference can be provided for selecting multimedia resources with proper duration, and the multimedia resources with matched display duration are selected and displayed according to the predicted connection waiting duration, so that more colorful interface contents can be provided in the interface waiting for connection, the probability of canceling connection in the connection waiting process of a user is reduced, and the success rate of connection is further improved; and by predicting the connection waiting time of the wireless access point, the multimedia resource matched with the connection waiting time can be obtained, so that the multimedia resource more suitable for display is provided.
The apparatus for predicting a connection waiting duration provided by the sixth aspect of the present application, the terminal device provided by the seventh aspect, and the computer readable medium provided by the eighth aspect have the same advantages and the same inventive concepts as the method for predicting a connection waiting duration provided by the fifth aspect.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 illustrates an application scenario diagram of a method for presenting a multimedia asset provided by some embodiments of the present application;
FIG. 2 illustrates a flow chart of a method for presenting multimedia assets provided by some embodiments of the present application;
FIG. 3 illustrates a schematic diagram of a presentation of a multimedia asset provided by some embodiments of the present application;
FIG. 4 illustrates a schematic view of a floating window displaying a multimedia asset provided by some embodiments of the present application;
FIG. 5 illustrates a schematic diagram of an apparatus for presenting multimedia assets provided by some embodiments of the present application;
fig. 6 illustrates a schematic diagram of a terminal device provided by some embodiments of the present application;
FIG. 7 illustrates a schematic diagram of a computer-readable medium provided by some embodiments of the present application;
FIG. 8 illustrates a flow chart of a method for predicting connection latency provided by some embodiments of the present application;
FIG. 9 illustrates a schematic diagram of an apparatus for predicting connection latency provided by some embodiments of the present application;
fig. 10 shows a schematic diagram of another terminal device provided by some embodiments of the present application;
FIG. 11 illustrates a schematic diagram of another computer-readable medium provided by some embodiments of the present application.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It is to be noted that, unless otherwise specified, technical or scientific terms used herein shall have the ordinary meaning as understood by those skilled in the art to which this application belongs.
Referring to fig. 1, which is a schematic view illustrating an application scenario of a method for displaying multimedia resources according to some embodiments of the present application, and referring to fig. 1, in order to connect a WiFi hotspot (also referred to as a "wireless access point") shared by other users, a user may install a free internet access tool for connecting WiFi in a terminal device such as a mobile phone, where the free internet access tool is an application program providing access service of the wireless access point for the user, and the user may access the wireless access point shared by other users through the free internet access tool without inputting a password.
When the free internet surfing tool is used for surfing the internet, a user firstly needs to select a WiFi hotspot (such as WiFi-A) in a WiFi hotspot list presented by the free internet surfing tool, and clicks a designated function icon to connect the selected WiFi hotspot WiFi-A in a mode without inputting a password, and the free internet surfing tool can generate a connection request aiming at the WiFi hotspot WiFi-A after monitoring the operation of the user. Next, on one hand, the free internet access tool starts to perform a series of connection processes such as verifying the validity of WiFi, inquiring a WiFi password from a server, applying for access, authenticating identity, waiting for a WiFi hotspot to assign an IP address, and the like to connect to WiFi-a in response to the connection request; on the other hand, the free internet surfing tool may display a connection waiting page, and optionally display current connection information in real time in the connection waiting page, such as the name of the WiFi hotspot being connected (in the figure, WiFi-a), a progress bar, progress details (information below the progress bar in the figure), and the like. It should be noted that the connection information displayed by the series of connection procedures and the connection waiting page is only an example and is not meant to be limiting.
Because the number of connection steps is large and the connection steps are influenced by factors such as mobile network communication quality, WiFi hotspot response speed and congestion conditions, the whole connection process takes a few seconds or even dozens of seconds, and during the period, a user may generate negative emotions such as boredom and anxiety due to waiting, so that connection is cancelled, and the connection fails.
According to the method for displaying the multimedia resources, the display content of the connection waiting interface is enriched, and the attention of the user is transferred by using the displayed multimedia resources, so that the negative emotion generated in the connection waiting process of the user is reduced, and the connection success rate is improved; in addition, some embodiments of the application can reduce the problem caused by unequal connection waiting time between the displayed multimedia resource and the WiFi hotspot by acquiring and displaying the multimedia resource matched with the expected connection waiting time of the WiFi hotspot, for example, the multimedia resource cannot obtain sufficient display time or the multimedia resource cannot be played to cover the connection waiting time of the WiFi hotspot, and the display efficiency of the multimedia resource can be improved. Corresponding to the method for presenting multimedia resources, embodiments of the present application further provide an apparatus, a terminal device, and a computer-readable medium for presenting multimedia resources, and a method, an apparatus, a terminal device, and a computer-readable medium for predicting a connection waiting duration, and embodiments of the present application are described below with reference to more drawings.
Referring to fig. 2, which shows a flowchart of a method for presenting a multimedia asset provided in some embodiments of the present application, the method for presenting a multimedia asset, for a client, may include the following steps:
step S101: determining wireless access points in the vicinity of the client.
In some embodiments of the present application, the client may include hardware or software. When the client includes hardware, it may be a variety of electronic devices having a display screen and supporting information interaction, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like. When the client includes software, it may be installed in the electronic device listed above, and it may be implemented as multiple software or software modules, or as a single software or software module. And is not particularly limited herein.
In this step S101, the wireless access point near the client can be determined by scanning the wireless network signal, and with the rapid development and popularization of the wireless network technology, a plurality of wireless access points near the client can be determined by scanning in general.
Step S102: and determining a target wireless access point to be connected in the nearby wireless access points and determining the multimedia resources matched with the expected connection waiting duration of the target wireless access point.
In this step, determining a target wireless access point to be connected among the nearby wireless access points, that is, selecting one from the nearby wireless access points as the target wireless access point to be connected, includes at least the following two embodiments:
one implementation may be that, according to a user selection operation on the information of the nearby wireless access points presented in the client, a target wireless access point to be connected is determined. For example, the client displays information of the nearby wireless access points in a display interface thereof, such as displaying a WiFi hotspot list, where the list lists information of names, signal strengths, and the like of a plurality of nearby WiFi hotspots, and then determines, according to a selection operation of the user on the WiFi hotspots listed in the WiFi hotspot list, a WiFi hotspot selected by the user as a target wireless access point to be connected.
Another embodiment may be that the target wireless access point to be connected is received, and the server side responds to the identification information of the nearby wireless access point uploaded by the client side and feeds back the identification information. For example, the client may upload identification information of the nearby wireless access points (e.g., SSID (Service Set Identifier) of WiFi) to the server, and then the server selects one of the nearby wireless access points as a target wireless access point to be accessed and feeds back the selected target wireless access point to the client.
The server side can preferentially select one nearby wireless access point as a target wireless access point according to the signal strength of the nearby wireless access point uploaded by the client side and information, such as the historical connection success rate and the historical connection waiting time of the nearby wireless access point recorded by the server side, whether a password of the wireless access point is stored or not, and the like, for example, a password is selected, so that a better wireless access point access service can be successfully provided for a user (the network quality of the wireless access point with the password is generally better than that of an open hotspot without the password); the selection signal has stronger strength, and can obtain equal and stable signal quality after the connection is successful; the historical connection is selected to be higher in power, so that the connection power can be improved, and the connection efficiency is improved; the selection history connection waiting time is shorter, so that the waiting time in the connection process can be reduced, and the connection efficiency is improved. The embodiment of the present application may select one piece of information as a selection basis to preferentially select the target wireless access point, or may select a plurality of pieces of information from the selection basis to preferentially select the target wireless access point after comprehensive consideration, which all shall fall within the protection scope of the present application.
In some embodiments, similar to the server selecting the target wireless access point for the client, the client may also automatically select one target wireless access point for the user from a plurality of wireless access points in its vicinity that the client obtains. The basis of the client selecting the target wireless access point can comprise the signal strength of the nearby wireless access point, and the information, recorded by the client, of the historical connection success rate and the historical connection waiting time of the nearby wireless access point, whether the password of the wireless access point is stored or not, and the like; the information recorded by the client can be from the local connection history of the client and the information provided by the server.
It should be noted that, in the embodiment of the present application, the server may include hardware or may include software. When the server includes hardware, the server may be implemented as a distributed server cluster formed by a plurality of servers, or may be implemented as a single server. When the server includes software, it may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
In this step, the determining the multimedia resource matched with the expected connection waiting duration of the target wireless access point includes the following various embodiments:
one implementation may be to receive the multimedia resource provided by the server side and matching the expected connection waiting duration of the target wireless access point or the identification information of the matching multimedia resource.
For example, after determining a target wireless access point to be connected from the nearby wireless access points, the server may further determine an expected connection waiting duration of the target wireless access point, further select a multimedia resource matching the expected connection waiting duration, and then feed back the multimedia resource or identification information of the multimedia resource to the client.
For another example, after receiving the identification information of the target wireless access point uploaded by the client, the server determines the expected connection waiting duration of the target wireless access point according to the identification information, further selects a multimedia resource matched with the expected connection waiting duration, and then feeds back the multimedia resource or the identification information of the multimedia resource to the client.
Another embodiment may be that, after obtaining the expected connection waiting duration of the target wireless access point, the client selects a multimedia resource whose presentation duration matches the expected connection waiting duration.
The predicted connection waiting time of the target wireless access point can be determined by the client according to a locally stored historical connection record, or can be provided by the server in response to the identification information of the target wireless access point uploaded by the client, which are all reasonable modification embodiments of the present application.
For example, in some embodiments, the obtaining the expected connection waiting duration of the target wireless access point may include: locally querying a historical connection record of the target wireless access point; and if the historical connection record of the target wireless access point is inquired, determining the expected connection waiting time of the target wireless access point according to the historical connection waiting time recorded in the inquired historical connection record.
In some specific embodiments, the determining an expected connection waiting time of the target wireless access point according to the queried historical connection waiting time recorded in the historical connection record may include: if the number of the historical connection waiting time lengths recorded in the historical connection record is one, determining the historical connection waiting time length as the predicted connection waiting time length of the target wireless access point; and if the number of the historical connection waiting time lengths recorded in the historical connection records is multiple, calculating the expected connection waiting time length of the target wireless access point according to the multiple historical connection waiting time lengths.
For example, if the number of the historical connection waiting time periods described in the historical connection record is multiple, an average value of the multiple historical connection waiting time periods may be determined as the predicted connection waiting time period of the target wireless access point, or a time period interval formed by a minimum value and a maximum value of the multiple historical connection waiting time periods may be determined as the predicted connection waiting time period of the target wireless access point, which are all reasonable modification embodiments of the present application.
In other embodiments, the expected connection waiting duration of the target wireless access point may also be provided by the server in response to the identification information of the target wireless access point uploaded by the client, for example, after the server determines a target wireless access point to be connected from the nearby wireless access points, the expected connection waiting duration of the target wireless access point may be further determined, and the expected connection waiting duration of the target wireless access point may be fed back to the client. For another example, after receiving the identification information of the target wireless access point uploaded by the client, the server determines the expected connection waiting duration of the target wireless access point according to the identification information, and feeds back the expected connection waiting duration of the target wireless access point to the client.
The server determines the expected connection waiting duration of the target wireless access point, which may be determining the expected connection waiting duration of the target wireless access point according to a historical connection record of the target wireless access point, for example, the server may count the historical connection waiting duration of the target wireless access point according to the historical connection record, and use an average value of the historical connection waiting durations as the expected connection waiting duration of the target wireless access point, or use a duration interval formed by a minimum value and a maximum value of the historical connection waiting duration as the expected connection waiting duration of the target wireless access point.
Considering that the connection waiting time of the terminal and the wireless access point is also related to the model of the terminal, the version of the operating system used, and other factors, for example, the connection waiting time of different models of terminals connecting to the same wireless access point may be different. Thus, in some embodiments, the determining the expected connection latency of the target wireless access point may include: acquiring adaptation information of a terminal where the client is located, wherein the adaptation information comprises: model information and/or system version information; querying a historical connection record matched with the adaptation information in the historical connection record of the target wireless access point; then, the expected connection waiting time length is determined according to the searched historical connection record matched with the adaptation information, for example, the model of the terminal where the client is located is model a, in the above embodiment, only the historical connection records of the model a and the target wireless access point need to be queried, and the average value of the historical connection waiting time lengths recorded in the historical connection records is determined as the expected connection waiting time length of the target wireless access point. By the embodiment, the accuracy of the predicted connection waiting time can be improved.
Considering that there may be differences between the terminals of the same model and/or operating system version, in some embodiments, before determining the expected connection waiting time of the target wireless access point according to the historical connection record of the target wireless access point, the method may further include: acquiring a unique identification code (for example, an International Mobile Equipment Identity (IMEI)) of a terminal where the client is located; querying a historical connection record matched with the unique identification code in the historical connection record of the target wireless access point; if the historical connection record matched with the unique identification code is inquired, determining the expected connection waiting time of the target wireless access point according to the searched historical connection waiting time in the historical connection record; and if the historical connection record matched with the unique identification code is not inquired, executing the step of determining the expected connection waiting time of the target wireless access point according to the historical connection record of the target wireless access point.
Wherein, the determining the expected connection waiting time of the target wireless access point according to the searched historical connection waiting time in the historical connection record may include: determining the average value of the searched historical connection waiting time in the historical connection record as the predicted connection waiting time of the target wireless access point; or determining a time length interval formed by the minimum value and the maximum value of the historical connection waiting time lengths in the searched historical connection records as the expected connection waiting time length of the target wireless access point.
Through the implementation mode, the historical connection record of the target wireless access point connected with the terminal where the client is located can be inquired in the historical connection record of the target wireless access point, and the expected connection waiting time of the target wireless access point is determined according to the searched historical connection record, so that the accuracy of the obtained expected connection waiting time is higher, and the consistency of the display time of the multimedia resource and the current actual connection waiting time is ensured to the maximum extent.
In the foregoing description of the embodiment, given as an exemplary description that after the target wireless access point is determined, the server provides the expected connection waiting time of the target wireless access point in response to the identification information of the target wireless access point uploaded by the client, in another embodiment provided in this application, before determining a target wireless access point to be connected among the nearby wireless access points, the method may further include: receiving the expected connection waiting time of at least one wireless access point in the nearby wireless access points fed back by the server end in response to the identification information of the nearby wireless access points uploaded by the client end; preferably, the method can further comprise the following steps: displaying an expected connection latency of the at least one wireless access point in the information of the nearby wireless access points presented in the client.
Through the above embodiment, the expected connection waiting time of at least one wireless access point (refer to the WiFi hotspot list shown in fig. 4) may be displayed in the information (which may be presented in the form of a WiFi hotspot list) of the nearby wireless access points presented in the client, so that the user may select a target wireless access point to be connected according to the presented expected connection waiting time, for example, the user may select a wireless access point with the shortest expected connection waiting time as the target wireless access point in the WiFi hotspot list, thereby effectively improving connection efficiency. Alternatively, the obtained expected connection latency may be used by the server or the client to select a wireless access point with a shorter expected connection latency as the target wireless access point. As can be seen from the above embodiments, the step of determining the expected connection latency of the target wireless access point may be performed before the target wireless access point is determined or after the target wireless access point is determined.
It should be noted that the multimedia resource whose presentation duration matches the expected connection waiting duration may be selected from a plurality of locally stored multimedia resources. The locally stored multimedia resources can be obtained in advance through mobile communication networks such as 3G, 4G, 5G and the like, and can also be obtained through wireless access points such as WiFi hotspots and the like. In consideration of the fact that the multimedia resource needs to consume a certain flow, the embodiment of the application preferably adopts the wireless access point to acquire the multimedia resource; because the multimedia resource is displayed in the waiting period of connecting the current wireless access point, and the current wireless access point is not accessed yet, the multimedia resource required to be displayed at this time needs to be obtained in advance when the current wireless access point is accessed to other wireless access points, and the multimedia resource required to be displayed in the subsequent connection can be continuously obtained after the connection is successful at this time.
Specifically, in some embodiments provided in this application, before the determining the multimedia resource matching the expected connection waiting duration of the target wireless access point, the method further includes: and acquiring a plurality of multimedia resources from the server when the wireless access point is accessed previously. For example, the wireless access point to be connected is currently the wireless access point a, in this example, the plurality of multimedia resources may be acquired from the server by using the network provided by the wireless access point B when the wireless access point B was last accessed, and it is easily understood that the plurality of multimedia resources may also be acquired from the server by using the network provided by the wireless access point a when the wireless access point a was last accessed, which are all reasonably modified embodiments of the present embodiment.
It should be noted that, in the embodiment of the present application, the multimedia resource may be at least one of a video, a picture, an article, a question and answer test and a game, for example, the multimedia resource may be a video resource such as a movie trailer, a laugh video, a sports event collection video, a video advertisement, etc., a dynamic picture (a dynamic picture may refer to a group of pictures that are switched at a specified frequency to generate a certain dynamic effect, such as a picture in gif format), a comic, a beautiful scene picture, a star portrait, a graphic advertisement, etc., an article resource such as a story book, an article selection, a micro-story, a short joke, a news flash, etc., or an interactive multimedia resource such as a question and answer test, a mini game, etc., which may all be applied to the present application to enrich the display content during the connection waiting period of the wireless access point, and attract the attention of the user by using the multimedia resource, therefore, negative emotions generated by the user in the process of waiting for connection are reduced, and the probability of canceling the connection of the user in the process of waiting for connection is further reduced.
The multimedia resource can have corresponding display duration so as to be matched with the predicted connection waiting duration according to the display duration, so that the multimedia resource matched with the predicted connection waiting duration is obtained, for example, for a video resource, the playing duration of the video resource is the display duration, and for resources such as pictures, articles, question and answer tests, games and the like, one display duration can be estimated according to the display content of the video resource, so that a user can read the multimedia resource in the display duration or complete the man-machine interaction of the multimedia resource.
Correspondingly, in the embodiment of the present application, the determining of the multimedia resource that matches the predicted connection waiting duration of the target wireless access point may be determining, according to a presentation duration corresponding to the multimedia resource, the multimedia resource whose presentation duration matches the predicted connection waiting duration of the target wireless access point. The matching may be consistency matching, or inclusive matching, or matching when the difference meets a preset threshold condition.
For example, assuming that the expected connection waiting time duration is 10 seconds, through consistency matching, a multimedia resource with a presentation time duration of 10 seconds can be selected as a multimedia resource matched with the expected connection waiting time duration; through the inclusion matching, the multimedia resource with the display duration of 8 to 12 seconds (8 to 12 seconds are duration intervals, the display duration can be a fixed duration or a duration interval) can be selected as the multimedia resource matched with the predicted connection waiting duration; assuming that the preset threshold condition is that the time difference is less than or equal to 1 second, any multimedia resource with the presentation time length between 9 and 11 seconds can be selected as the multimedia resource matched with the predicted connection waiting time length through the matching of the preset threshold condition.
For another example, assuming that the expected connection waiting duration is a duration interval of 13 to 15 seconds, through consistency matching, a multimedia resource with a presentation duration of 13 to 15 seconds may be selected as the multimedia resource matched with the expected connection waiting duration; through inclusive matching, a multimedia resource with a presentation duration between 13 and 15 seconds can be selected as a multimedia resource matched with the expected connection waiting duration; assuming that the preset threshold condition is that the time difference is less than 2 seconds, any multimedia resource with the presentation time length between 11 and 17 seconds can be selected as the multimedia resource matched with the predicted connection waiting time length through the matching of the preset threshold condition.
The above are exemplary matching manners given by the embodiments of the present application, and those skilled in the art may flexibly change and implement the matching manners according to actual requirements, and the present application does not specifically limit the matching manners.
Step S103: and displaying the multimedia resource after entering a waiting period for connecting the target wireless access point.
After determining a target wireless access point to be connected among the nearby wireless access points, the target wireless access point may be connected to the wireless access point, and the waiting period for connecting to the target wireless access point in some embodiments of the present application may include a period from when the target wireless access point is connected to the wireless access point until the connection is completed (including connection success or connection failure), where the connection starts, i.e., the waiting period for connecting to the target wireless access point is entered. In specific implementation, after a connection request for connecting the target wireless access point is detected, the waiting period for connecting the target wireless access point is indicated; or after detecting that the connection waiting page for the target wireless access point pops up, indicating that a waiting period for connecting the target wireless access point is entered, which is not specifically limited in the embodiment of the present application. In some embodiments of the present application, a starting time point of the waiting period for connecting to the target wireless access point may be a time point when a preset time elapses since the target wireless access point starts to be connected; for example, if the preset time is T seconds, the starting time point of the waiting period is the time point + T of starting to connect to the target wireless access point; the end time point of the waiting period may still be a time point at which the connection ends.
In some embodiments provided in this application, the presenting the multimedia resource after entering the waiting period for connecting to the target wireless access point may include: after entering a waiting period for connecting the target wireless access point, displaying the multimedia resource in a connection waiting page aiming at the target wireless access point; or after entering a waiting period for connecting the target wireless access point, adopting a display control independent of the connection waiting page to display the multimedia resource.
For example, a presentation window (such as a player, etc.) may be embedded in the connection waiting page, and the multimedia asset is presented in the presentation window, specifically referring to fig. 3, which shows a schematic diagram of presenting a multimedia asset provided in some embodiments of the present application; for another example, a display window may also be constructed by using a display control independent from the connection waiting page, and the multimedia resource is displayed in the display window, which are reasonable modification embodiments of the embodiment of the present application.
Considering that a user may cancel a connection during the waiting period, in some embodiments, the method may further include: in the process of displaying the multimedia resource, if the request of canceling the connection with the target wireless access point is detected, the display window of the multimedia resource is reduced to a floating window and then is continuously displayed. Referring to fig. 4, which is a schematic diagram illustrating a floating window displaying a multimedia resource according to some embodiments of the present application, as shown in the figure, when a user cancels a connection in a process of displaying the multimedia resource, the user returns to a WiFi hotspot list page, and displays a nearby WiFi hotspot list (including information such as a WiFi name and a signal strength expected connection waiting time) on the WiFi hotspot list page, and at the same time, reduces a display window of the multimedia resource to a floating window and then places the floating window at an edge of the page for continuous display (as shown in fig. 4). By the method and the device, the multimedia resource can be continuously displayed by adopting the floating window after the user cancels the connection, so that the multimedia resource can be displayed completely.
In view of that, the actual connection waiting duration of the target wireless access point may deviate from the expected connection waiting duration, so that the multimedia resource may not be completely shown after the connection is completed, in some embodiments, the method may further include: and after detecting that the target wireless access point is successfully or unsuccessfully connected, if the multimedia resource is not displayed, reducing the display window of the multimedia resource into a floating window and then continuing to display. Through the embodiment, the multimedia resources can be continuously displayed by adopting the floating window after the connection is finished, so that the multimedia resources can be completely displayed.
Considering that the user may be interested in the multimedia resource displayed, since the display interface of the floating window is small and not easy to view, in some embodiments, the method may further include: and after the clicking operation of the user on the floating window is detected, amplifying the floating window and then continuing displaying. Through the embodiment, the floating window can be continuously displayed after being amplified according to the requirements of the user, and a better watching effect is provided for the user.
Further, to accumulate historical connection records to facilitate more accurate subsequent prediction of the expected connection latency of the target wireless access point, in some embodiments, the method may further comprise: and after detecting that the target wireless access point is successfully connected, uploading a connection record of the target wireless access point to the server, wherein the connection record comprises the waiting time of the connection. Through the implementation mode, the historical connection record of the target wireless access point can be continuously updated, and along with the increase and update of the record, the accuracy of prediction can be improved when the historical connection record is subsequently utilized to predict the predicted connection waiting time, so that the consistency of the actual connection waiting time and the display time of the multimedia resource is ensured, and the synchronization of connection and multimedia resource display is ensured.
Compared with the prior art, the method for displaying the multimedia resource provided by the embodiments of the present application includes obtaining the expected connection waiting duration of the target wireless access point, and determining the multimedia resource matched with the expected connection waiting duration, so that the multimedia resource can be displayed after entering the waiting period for connecting the target wireless access point, and by displaying the multimedia resource, more colorful interface content can be provided in the interface waiting for connection, negative emotion generated by a user in the process of waiting for connection is reduced, so that probability of canceling connection of the user in the connection waiting process can be reduced, and success rate of connection is improved.
In the foregoing embodiment, a method for presenting a multimedia resource is provided, and correspondingly, an apparatus for presenting a multimedia resource is also provided. The device for displaying multimedia resources provided by the embodiment of the application can implement the method for displaying multimedia resources, and the device for displaying multimedia resources can be implemented by software, hardware or a combination of software and hardware. For example, the apparatus for presenting multimedia assets may comprise integrated or separate functional modules or units to perform the corresponding steps of the above-described methods. Please refer to fig. 5, which is a diagram illustrating an apparatus for displaying multimedia resources according to an embodiment of the present disclosure. Since the apparatus embodiments are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for relevant points. The device embodiments described below are merely illustrative.
As shown in fig. 5, some embodiments of the present application provide an apparatus 11 for presenting multimedia resources, including:
a wireless access point determining module 111, configured to determine a wireless access point near the client;
a multimedia resource determining module 112, configured to determine a target wireless access point to be connected among the nearby wireless access points and determine a multimedia resource that matches an expected connection waiting duration of the target wireless access point;
a multimedia resource display module 113, configured to display the multimedia resource after the waiting period for connecting to the target wireless access point is reached.
In an alternative implementation manner provided by the embodiment of the present application, the multimedia resource determining module 112 includes: and the target access point receiving unit is used for receiving the target wireless access point to be connected, which is fed back by the server end in response to the identification information of the nearby wireless access point uploaded by the client end.
In another variation provided by the embodiment of the present application, the multimedia resource determining module 112 includes: and the target access point determining unit is used for determining a target wireless access point to be connected according to the selection operation of the user on the information of the nearby wireless access points presented in the client.
In a further modified implementation manner provided by the embodiment of the present application, the multimedia resource determining module 112 includes: and the multimedia resource receiving unit is used for receiving the multimedia resource which is provided by the server and matched with the expected connection waiting time of the target wireless access point or the identification information of the matched multimedia resource.
In another variation provided by the embodiment of the present application, the multimedia resource determining module 112 includes: the expected duration obtaining unit is used for obtaining the expected connection waiting duration of the target wireless access point; and the multimedia resource selection unit is used for selecting the multimedia resources with the display duration matched with the predicted connection waiting duration.
In another modified embodiment provided by the embodiment of the present application, the predicted duration obtaining unit includes: a local record inquiry subunit, configured to locally inquire a historical connection record of the target wireless access point; and the expected duration determining subunit is used for determining the expected connection waiting duration of the target wireless access point according to the historical connection waiting duration recorded in the inquired historical connection record if the historical connection record of the target wireless access point is inquired.
In another modified embodiment provided by the embodiment of the present application, the predicted duration determining subunit includes: a first time length determining subunit, configured to determine, if the number of historical connection waiting time lengths recorded in the historical connection record is one, the historical connection waiting time length as an expected connection waiting time length of the target wireless access point; and the second time length determining subunit is configured to, if the number of the historical connection waiting time lengths recorded in the historical connection record is multiple, calculate an expected connection waiting time length of the target wireless access point according to the multiple historical connection waiting time lengths.
In yet another variation provided by the embodiment of the present application, the expected connection waiting duration of the target wireless access point is provided by the server in response to the identification information of the target wireless access point uploaded by the client.
In a further variation provided by the examples of this application, the matching multimedia asset is selected from a plurality of locally stored multimedia assets.
In another modified embodiment provided in the example of the present application, the apparatus 11 further includes: the multimedia resource pre-downloading module is used for acquiring a plurality of multimedia resources from the server when the wireless access point is accessed in advance.
In another modified embodiment provided in the example of the present application, the apparatus 11 further includes: the wireless access point duration acquisition module is used for receiving the predicted connection waiting duration of at least one wireless access point in the nearby wireless access points, which is fed back by the server end in response to the identification information of the nearby wireless access points uploaded by the client end; and the wireless access point duration display module is used for displaying the expected connection waiting duration of the at least one wireless access point in the information of the nearby wireless access points presented in the client.
In another modified implementation manner provided in the embodiment of the present application, the multimedia resource presenting module 113 includes: the first display unit is used for displaying the multimedia resource in a connection waiting page aiming at the target wireless access point after entering a waiting period for connecting the target wireless access point; or, the second presentation unit is configured to, after entering a waiting period for connecting the target wireless access point, present the multimedia resource using a presentation control independent of the connection waiting page.
In another modified embodiment provided in the example of the present application, the apparatus 11 further includes: and the record uploading module is used for uploading the connection record of the target wireless access point to the server after detecting that the target wireless access point is successfully connected, wherein the connection record comprises the connection waiting time.
In another modified embodiment provided in the example of the present application, the apparatus 11 further includes: and the first floating window module is used for reducing the display window of the multimedia resource into a floating window and then continuing to display if a request for canceling the connection of the target wireless access point is detected in the process of displaying the multimedia resource.
In another modified embodiment provided in the example of the present application, the apparatus 11 further includes: and the second floating window module is used for reducing the display window of the multimedia resource into a floating window and then continuing to display the multimedia resource if the multimedia resource is not displayed after the successful or failed connection of the target wireless access point is detected.
In another modified embodiment provided in the example of the present application, the apparatus 11 further includes: and the suspension window amplifying module is used for amplifying the suspension window and then continuing displaying after detecting the clicking operation of the user on the suspension window.
In another modified embodiment provided by the embodiment of the present application, the multimedia resource includes: at least one of a video, a picture, an article, a question and answer test, and a game.
The apparatus 11 for presenting multimedia resources provided by the foregoing embodiments of the present application has the same beneficial effects as the method for presenting multimedia resources provided by the foregoing embodiments of the present application.
In the foregoing embodiment, a method and an apparatus for displaying multimedia resources are provided, and correspondingly, the present application also provides a terminal device, where the terminal device may be any computing device that has data processing capability and can surf the internet by connecting to a wireless access point, such as a mobile terminal like a mobile phone, a notebook computer, a tablet computer, and the like, and also such as a vehicle navigation device, a Virtual Reality (VR) device, an Augmented Reality (AR) device, and the like. Referring to fig. 6, fig. 6 is a schematic diagram of a terminal device according to some embodiments of the present disclosure. As shown in fig. 6, the terminal device 12 includes: a processor 120, a memory 121, a bus 122 and a communication interface 123, wherein the processor 120, the communication interface 123 and the memory 121 are connected through the bus 122; the memory 121 stores a computer program that can be executed on the processor 120, and the processor 120 executes the computer program to perform the method for presenting multimedia resources provided by the present application.
The Memory 121 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 123 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like may be used.
The bus 122 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 121 is configured to store a program, and the processor 120 executes the program after receiving an execution instruction, and the method for presenting a multimedia resource disclosed in any of the foregoing embodiments of the present application may be applied to the processor 120, or implemented by the processor 120.
The processor 120 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 120. The Processor 120 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 121, and the processor 120 reads the information in the memory 121 and completes the steps of the method in combination with the hardware thereof.
The terminal device provided by the above-mentioned embodiment of the present application and the method for presenting multimedia resources provided by the above-mentioned embodiment of the present application have the same beneficial effects based on the same inventive concept.
Some embodiments of the present application further provide a computer-readable medium corresponding to the method for presenting multimedia resources described above, please refer to fig. 7, which illustrates a computer-readable storage medium, which is an optical disc 13, on which a computer program (i.e., a program product) is stored, and when the computer program is executed by a processor, the computer program performs the method for presenting multimedia resources provided by any of the foregoing embodiments.
It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory, or other optical and magnetic storage media, which are not described in detail herein.
The computer-readable storage medium provided by the above-mentioned embodiments of the present application has the same beneficial effects as the method for presenting multimedia resources provided by some embodiments of the present application.
Corresponding to the method for presenting multimedia resources described above, some embodiments of the present application further provide a method for predicting a connection waiting duration, where the method for predicting a connection waiting duration is used at a server, and is used to predict a predicted connection waiting duration of a wireless access point, and may be implemented in cooperation with the method for presenting multimedia resources provided in the foregoing embodiments.
Referring to fig. 8, which is a flowchart illustrating a method for predicting a connection waiting duration according to some embodiments of the present application, the method for predicting the connection waiting duration, for a server, may include the following steps:
step S201: identification information of at least one of the wireless access points in the vicinity of the client is obtained from the client.
Step S202: and inquiring and acquiring historical connection records of at least part of the at least one wireless access point according to the identification information, wherein the historical connection records record the historical connection waiting time of the at least part of wireless access points.
Step S203: and predicting the expected connection waiting time of at least part of wireless access points according to the historical connection records.
In some embodiments, the predicting an expected connection latency of the at least some wireless access points from the historical connection record may include: and for each wireless access point in the at least part of wireless access points, calculating the average value of the historical connection waiting time in the historical connection records corresponding to the wireless access point, and taking the average value as the expected connection waiting time of the wireless access point.
In still other embodiments, the predicting an expected connection latency of the at least some wireless access points from the historical connection record includes: and for each wireless access point in at least part of the wireless access points, determining the minimum value and the maximum value of historical connection waiting time in the historical connection records corresponding to the wireless access point, and taking a time interval formed according to the minimum value and the maximum value as the expected connection waiting time of the wireless access point.
Considering that the connection waiting time of the terminal and the wireless access point is also related to the model of the terminal, the version of the operating system used, and other factors, for example, the connection waiting time of different models of terminals connecting to the same wireless access point may be different. Therefore, in some embodiments, before the predicting the expected connection latency of the at least part of the wireless access point according to the historical connection record, the method may further include: acquiring adaptation information of a terminal where the client is located, wherein the adaptation information comprises: model information and/or system version information; and inquiring the historical connection records matched with the adaptation information in the historical connection records of at least part of wireless access points. Then, the expected connection waiting time of at least part of wireless access points is predicted according to the searched historical connection records matched with the adaptation information.
In the prediction of the expected connection waiting duration of at least some wireless access points, referring to the foregoing embodiment, an average value of historical connection waiting durations in the historical connection records corresponding to the wireless access points may be used as the expected connection waiting duration of the wireless access point, or a duration interval formed by a minimum value and a maximum value of the historical connection waiting durations in the historical connection records corresponding to the wireless access points may be used as the expected connection waiting duration of the wireless access point, and so on. By the embodiment, the accuracy of the predicted connection waiting time can be improved.
Considering that there may be differences between the terminals of the same model and/or operating system version, in some embodiments, before predicting the expected connection waiting time of at least part of the wireless access points according to the historical connection records, the method may further include: acquiring a unique identification code of a terminal where the client is located; querying a historical connection record matched with the unique identification code in the historical connection records of at least part of wireless access points; if the historical connection record matched with the unique identification code is inquired, determining the expected connection waiting time of at least part of wireless access points according to the searched historical connection waiting time in the historical connection record; and if the historical connection record matched with the unique identification code is not inquired, the step of predicting the predicted connection waiting time of at least part of wireless access points according to the historical connection record is executed.
Wherein determining the expected connection waiting time of the at least part of wireless access points according to the searched historical connection waiting time in the historical connection record may include: and for each of the at least part of the wireless access points, taking the average value of the historical connection waiting time lengths in the historical connection records matched with the unique identification code corresponding to the wireless access point as the predicted connection waiting time length of the wireless access point, or taking a time length interval formed by the minimum value and the maximum value of the historical connection waiting time lengths in the historical connection records matched with the unique identification code corresponding to the wireless access point as the predicted connection waiting time length of the wireless access point, and the like.
Through the implementation mode, the historical connection record of the wireless access point connected with the terminal where the client is located can be inquired in the historical connection record of the wireless access point, and the expected connection waiting time of the wireless access point is determined according to the inquired historical connection record, so that the accuracy of the obtained expected connection waiting time is higher.
It is easily understood that, in the embodiment of the present application, the at least one wireless access point may include a target wireless access point to which the client is to be connected.
Compared with the prior art, the method for predicting the connection waiting time provided by some embodiments of the present application can determine the predicted connection waiting time according to the historical connection record of the wireless access point, and on one hand, can provide data reference for a user to select a target wireless access point with short connection waiting time for connection, thereby improving connection efficiency; on the other hand, data reference can be provided for selecting multimedia resources with proper duration, and the multimedia resources with the matched display duration are selected and displayed according to the predicted connection waiting duration, so that more colorful interface contents can be provided in the interface waiting for connection, negative emotion generated by the user in the connection waiting process is reduced, the probability of canceling the connection of the user in the connection waiting process can be reduced, and the connection success rate is improved.
In the above embodiment, a method for predicting a connection waiting time is provided, and correspondingly, the present application also provides an apparatus for predicting a connection waiting time. The apparatus for predicting the latency of the connection provided by some embodiments of the present application may implement the method for predicting the latency of the connection, and the apparatus for predicting the latency of the connection may be implemented by software, hardware or a combination of software and hardware. For example, the means for predicting the connection latency may comprise integrated or separate functional modules or units to perform the corresponding steps of the above-described methods. Please refer to fig. 9, which is a diagram illustrating an apparatus for predicting connection latency according to some embodiments of the present disclosure. Since the apparatus embodiments are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for relevant points. The device embodiments described below are merely illustrative.
As shown in fig. 9, an apparatus 21 for predicting a connection waiting time provided in an embodiment of the present application includes:
an identification information obtaining module 211, configured to obtain identification information of at least one wireless access point from the client and among the wireless access points in the vicinity of the client;
a history querying module 212, configured to query and obtain a history connection record of at least some wireless access points in the at least one wireless access point according to the identification information, where a history connection waiting duration of the at least some wireless access points is recorded in the history connection record;
a waiting duration prediction module 213, configured to predict an expected connection waiting duration of the at least part of wireless access points according to the historical connection records.
In a modified implementation manner provided in the embodiment of the present application, the waiting duration prediction module 213 includes: and the first time length prediction unit is used for calculating the average value of the historical connection waiting time lengths in the historical connection records corresponding to the wireless access points for each of the at least part of the wireless access points, and taking the average value as the expected connection waiting time length of the wireless access point.
In another modified implementation manner provided in the embodiment of the present application, the waiting duration prediction module 213 includes: and the second duration prediction unit is used for determining the minimum value and the maximum value of the historical connection waiting duration in the historical connection record corresponding to each wireless access point in at least part of the wireless access points, and taking a duration interval formed by the minimum value and the maximum value as the expected connection waiting duration of the wireless access point.
In a further modification provided in the embodiment of the present application, the apparatus 21 further includes: the identification code acquisition module is used for acquiring a unique identification code of a terminal where the client is located; the identification code matching module is used for inquiring the historical connection records matched with the unique identification codes in the historical connection records of at least part of wireless access points; the time length determining module is used for determining the predicted connection waiting time length of at least part of wireless access points according to the searched historical connection waiting time length in the historical connection records if the historical connection records matched with the unique identification codes are searched; and the triggering module is used for executing the step of predicting the predicted connection waiting time of at least part of wireless access points according to the historical connection records if the historical connection records matched with the unique identification codes are not inquired.
In another modified embodiment provided in the example of the present application, the apparatus 21 further includes: an adaptation information obtaining module, configured to obtain adaptation information of a terminal where the client is located, where the adaptation information includes: model information and/or system version information; and the adaptation information matching module is used for inquiring the historical connection record matched with the adaptation information in the historical connection records of at least part of wireless access points.
In another variation provided by the embodiment of the present application, the at least one wireless access point includes a target wireless access point to which the client is to be connected.
The apparatus 21 for predicting the connection waiting time provided by the foregoing embodiment of the present application has the same beneficial effects as the method for predicting the connection waiting time provided by the foregoing embodiment of the present application.
In the foregoing embodiment, a method and an apparatus for predicting connection waiting duration are provided, and correspondingly, the present application also provides a terminal device, where the terminal device may be a terminal device for a server, such as a server, and includes an independent server and a distributed server cluster. Referring to fig. 10, fig. 10 is a schematic diagram of a terminal device according to some embodiments of the present disclosure. As shown in fig. 10, the terminal device 22 includes: a processor 220, a memory 221, a bus 222 and a communication interface 223, wherein the processor 220, the communication interface 223 and the memory 221 are connected through the bus 222; the memory 221 stores a computer program that can be executed on the processor 220, and the processor 220 executes the computer program to perform the method for predicting the connection waiting time provided by the present application.
The Memory 221 may include a Random Access Memory (RAM) and a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 223 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, etc. may be used.
Bus 222 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 221 is configured to store a program, and the processor 220 executes the program after receiving an execution instruction, and the method for predicting the connection waiting time disclosed in any embodiment of the foregoing application may be applied to the processor 220, or implemented by the processor 220.
The processor 220 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 220. The Processor 220 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 221, and the processor 220 reads the information in the memory 221 and completes the steps of the above method in combination with the hardware thereof.
The terminal device provided by the above embodiment of the present application and the method for predicting the connection waiting time provided by the embodiment of the present application have the same beneficial effects with the same inventive concept.
Some embodiments of the present application further provide a computer-readable medium corresponding to the method for predicting the connection waiting time length, please refer to fig. 11, which illustrates a computer-readable storage medium, which is an optical disc 23, on which a computer program (i.e., a program product) is stored, and when the computer program is executed by a processor, the computer program performs the method for predicting the connection waiting time length provided by any of the foregoing embodiments.
It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory, or other optical and magnetic storage media, which are not described in detail herein.
The computer-readable storage medium provided by the above-mentioned embodiment of the present application and the collaborative shooting method provided by the embodiment of the present application have the same beneficial effects from the same inventive concept.
It should be noted that 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 application. 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.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present disclosure, and the present disclosure should be construed as being covered by the claims and the specification.

Claims (29)

1. A method for presenting a multimedia asset, for a client, comprising:
determining a wireless access point in the vicinity of the client;
determining a target wireless access point to be connected in the nearby wireless access points and determining a multimedia resource matched with the expected connection waiting duration of the target wireless access point;
after entering a waiting period for connecting the target wireless access point, displaying the multimedia resource;
wherein the determining the expected connection waiting duration of the target wireless access point comprises: acquiring adaptation information of a terminal where the client is located, wherein the adaptation information comprises: model information and/or system version information;
querying a historical connection record matched with the adaptation information in the historical connection record of the target wireless access point;
and determining the expected connection waiting time according to the searched historical connection record matched with the adaptation information.
2. The method of claim 1, wherein the determining a target wireless access point to connect to among the nearby wireless access points comprises:
and receiving a target wireless access point to be connected, which is fed back by the server end in response to the identification information of the nearby wireless access point uploaded by the client end.
3. The method of claim 1, wherein the determining a target wireless access point to connect to among the nearby wireless access points comprises:
and determining a target wireless access point to be connected according to the selection operation of the user on the information of the nearby wireless access points presented in the client.
4. The method of claim 1, wherein determining the multimedia resource that matches the expected connection latency of the target wireless access point comprises:
and receiving the multimedia resource which is provided by the server and matched with the expected connection waiting time of the target wireless access point or the identification information of the matched multimedia resource.
5. The method of claim 1, wherein determining the multimedia resource that matches the expected connection latency of the target wireless access point comprises:
acquiring the expected connection waiting time of the target wireless access point;
and selecting the multimedia resources with the display duration matched with the expected connection waiting duration.
6. The method of claim 5, wherein the obtaining the expected connection latency of the target wireless access point comprises:
locally querying a historical connection record of the target wireless access point;
and if the historical connection record of the target wireless access point is inquired, determining the expected connection waiting time of the target wireless access point according to the historical connection waiting time recorded in the inquired historical connection record.
7. The method of claim 6, wherein determining the expected connection latency of the target wireless access point according to the queried historical connection latency recorded in the historical connection record comprises:
if the number of the historical connection waiting time lengths recorded in the historical connection record is one, determining the historical connection waiting time length as the predicted connection waiting time length of the target wireless access point;
and if the number of the historical connection waiting time lengths recorded in the historical connection records is multiple, calculating the expected connection waiting time length of the target wireless access point according to the multiple historical connection waiting time lengths.
8. The method of claim 5, wherein the expected connection latency of the target wireless access point is provided by a server in response to the client uploading identification information of the target wireless access point.
9. The method of claim 5, wherein the matching multimedia asset is selected from a plurality of locally stored multimedia assets.
10. The method of claim 1, wherein prior to determining the multimedia resource that matches the expected connection latency of the target wireless access point, the method further comprises:
and acquiring a plurality of multimedia resources from the server when the wireless access point is accessed previously.
11. The method of claim 1, wherein prior to said determining a target wireless access point to connect to from among said nearby wireless access points, the method further comprises:
receiving the expected connection waiting time of at least one wireless access point in the nearby wireless access points fed back by the server end in response to the identification information of the nearby wireless access points uploaded by the client end;
displaying an expected connection latency of the at least one wireless access point in the information of the nearby wireless access points presented in the client.
12. The method of claim 1, wherein the exposing the multimedia resource after the waiting period for connecting to the target wireless access point is entered comprises:
after entering a waiting period for connecting the target wireless access point, displaying the multimedia resource in a connection waiting page aiming at the target wireless access point; alternatively, the first and second electrodes may be,
and after the waiting period for connecting the target wireless access point is entered, adopting a display control independent of the connection waiting page to display the multimedia resource.
13. The method of claim 1, further comprising:
and after detecting that the target wireless access point is successfully connected, uploading a connection record of the target wireless access point to the server, wherein the connection record comprises the waiting time of the connection.
14. The method of claim 1, further comprising:
in the process of displaying the multimedia resource, if the request of canceling the connection with the target wireless access point is detected, the display window of the multimedia resource is reduced to a floating window and then is continuously displayed.
15. The method of claim 1, further comprising:
and after detecting that the target wireless access point is successfully or unsuccessfully connected, if the multimedia resource is not displayed, reducing the display window of the multimedia resource into a floating window and then continuing to display.
16. The method of claim 14 or 15, further comprising:
and after the clicking operation of the user on the floating window is detected, amplifying the floating window and then continuing displaying.
17. The method according to any of claims 1 to 15, wherein the multimedia resource comprises: at least one of a video, a picture, an article, a question and answer test, and a game.
18. An apparatus for presenting multimedia assets, comprising:
the wireless access point determining module is used for determining wireless access points near the client;
a multimedia resource determining module, configured to determine a target wireless access point to be connected among the nearby wireless access points and determine a multimedia resource that matches an expected connection waiting duration of the target wireless access point;
the multimedia resource display module is used for displaying the multimedia resource after the waiting period for connecting the target wireless access point is entered;
wherein the determining the expected connection waiting duration of the target wireless access point comprises: acquiring adaptation information of a terminal where the client is located, wherein the adaptation information comprises: model information and/or system version information;
querying a historical connection record matched with the adaptation information in the historical connection record of the target wireless access point;
and determining the expected connection waiting time according to the searched historical connection record matched with the adaptation information.
19. A terminal device, comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor performs the method of any of claims 1-17 when executing the computer program.
20. A computer readable medium having computer readable instructions stored thereon which are executable by a processor to implement the method of any one of claims 1 to 17.
21. A method for predicting connection latency for a server, comprising:
acquiring identification information of at least one wireless access point in wireless access points near a client from the client;
querying and acquiring historical connection records of at least part of the at least one wireless access point according to the identification information, wherein the historical connection records record historical connection waiting time of the at least part of wireless access points;
and predicting the expected connection waiting time of at least part of wireless access points according to the historical connection records.
22. The method of claim 21, wherein predicting an expected connection latency for the at least some wireless access points based on the historical connection records comprises:
and for each wireless access point in the at least part of wireless access points, calculating the average value of the historical connection waiting time in the historical connection records corresponding to the wireless access point, and taking the average value as the expected connection waiting time of the wireless access point.
23. The method of claim 21, wherein predicting an expected connection latency for the at least some wireless access points based on the historical connection records comprises:
and for each wireless access point in at least part of the wireless access points, determining the minimum value and the maximum value of historical connection waiting time in the historical connection records corresponding to the wireless access point, and taking a time interval formed according to the minimum value and the maximum value as the expected connection waiting time of the wireless access point.
24. The method of claim 21, further comprising, prior to said predicting an expected connection latency for the at least some wireless access points based on the historical connection records:
acquiring a unique identification code of a terminal where the client is located;
querying a historical connection record matched with the unique identification code in the historical connection records of at least part of wireless access points;
if the historical connection record matched with the unique identification code is inquired, determining the expected connection waiting time of at least part of wireless access points according to the searched historical connection waiting time in the historical connection record;
and if the historical connection record matched with the unique identification code is not inquired, the step of predicting the predicted connection waiting time of at least part of wireless access points according to the historical connection record is executed.
25. The method of claim 21, further comprising, prior to said predicting an expected connection latency for the at least some wireless access points based on the historical connection records:
acquiring adaptation information of a terminal where the client is located, wherein the adaptation information comprises: model information and/or system version information;
and inquiring the historical connection records matched with the adaptation information in the historical connection records of at least part of wireless access points.
26. The method of claim 21, wherein the at least one wireless access point comprises a target wireless access point to which the client is to connect.
27. An apparatus for predicting connection latency, comprising:
the identification information acquisition module is used for acquiring identification information of at least one wireless access point in wireless access points near a client from the client;
a history record query module, configured to query and obtain a history connection record of at least some wireless access points in the at least one wireless access point according to the identification information, where a history connection waiting duration of the at least some wireless access points is recorded in the history connection record;
and the waiting duration prediction module is used for predicting the expected connection waiting duration of at least part of wireless access points according to the historical connection records.
28. A terminal device, comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor performs the method of any of claims 21 to 26 when executing the computer program.
29. A computer readable medium having computer readable instructions stored thereon which are executable by a processor to implement the method of any one of claims 21 to 26.
CN201810636979.XA 2018-06-20 2018-06-20 Method, device and equipment for displaying multimedia resources and predicting connection waiting duration Active CN108966316B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810636979.XA CN108966316B (en) 2018-06-20 2018-06-20 Method, device and equipment for displaying multimedia resources and predicting connection waiting duration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810636979.XA CN108966316B (en) 2018-06-20 2018-06-20 Method, device and equipment for displaying multimedia resources and predicting connection waiting duration

Publications (2)

Publication Number Publication Date
CN108966316A CN108966316A (en) 2018-12-07
CN108966316B true CN108966316B (en) 2020-11-03

Family

ID=64490235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810636979.XA Active CN108966316B (en) 2018-06-20 2018-06-20 Method, device and equipment for displaying multimedia resources and predicting connection waiting duration

Country Status (1)

Country Link
CN (1) CN108966316B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110248395B (en) * 2019-05-07 2021-11-30 腾讯科技(深圳)有限公司 Wireless network access method, device, storage medium and computer equipment
CN111159435B (en) * 2019-12-27 2023-09-05 新方正控股发展有限责任公司 Multimedia resource processing method, system, terminal and computer readable storage medium
CN112527171B (en) * 2020-12-14 2022-06-21 北京聪明核桃教育科技有限公司 Multimedia file playing method, device, equipment and medium
CN113268690B (en) * 2021-04-15 2023-08-29 微梦创科网络科技(中国)有限公司 Method and system for safely filtering website short video playing information

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572875A (en) * 2010-11-22 2012-07-11 微软公司 Network latency estimation for mobile devices
CN102981873A (en) * 2012-11-14 2013-03-20 广东欧珀移动通信有限公司 Displaying method and device for waiting interface
CN105491594A (en) * 2015-11-24 2016-04-13 小米科技有限责任公司 Network connection processing method and device
EP3099098A1 (en) * 2014-04-18 2016-11-30 Huawei Technologies Co., Ltd Method, device and electronic terminal for information reminding
CN106488585A (en) * 2015-09-02 2017-03-08 腾讯科技(深圳)有限公司 Display control method and system in wireless connection realization
CN106714271A (en) * 2016-06-14 2017-05-24 腾讯科技(深圳)有限公司 Wireless network access method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572875A (en) * 2010-11-22 2012-07-11 微软公司 Network latency estimation for mobile devices
CN102981873A (en) * 2012-11-14 2013-03-20 广东欧珀移动通信有限公司 Displaying method and device for waiting interface
EP3099098A1 (en) * 2014-04-18 2016-11-30 Huawei Technologies Co., Ltd Method, device and electronic terminal for information reminding
CN106488585A (en) * 2015-09-02 2017-03-08 腾讯科技(深圳)有限公司 Display control method and system in wireless connection realization
CN105491594A (en) * 2015-11-24 2016-04-13 小米科技有限责任公司 Network connection processing method and device
CN106714271A (en) * 2016-06-14 2017-05-24 腾讯科技(深圳)有限公司 Wireless network access method and device

Also Published As

Publication number Publication date
CN108966316A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN108966316B (en) Method, device and equipment for displaying multimedia resources and predicting connection waiting duration
CN107329750B (en) Identification method and skip method of advertisement page in application program and mobile terminal
CN110366041B (en) Media data sharing method, device and equipment
CN108900469B (en) Connection progress page display method, terminal device and computer readable medium
CN107370780B (en) Media pushing method, device and system based on Internet
CN110913135A (en) Video shooting method and device, electronic equipment and storage medium
CN103368947A (en) Media information control method, related equipment and system
US20170171329A1 (en) Video recommendaton method and system, and server
WO2011127770A1 (en) Method and device for controlling outputting frequency of information
CN106713985B (en) Method and device for recommending network video
CN110740088B (en) Method, device, terminal and medium for recommending and adding social resources
CN104090899A (en) Method and device for feeding back display content information
CN111158793A (en) Application page skipping method and device, electronic equipment and readable storage medium
WO2023116219A1 (en) Cdn node distribution method and apparatus, electronic device, medium and program product
CN109034867B (en) Click traffic detection method and device and storage medium
US9853711B2 (en) Method and apparatus for providing content and method and apparatus for displaying content
CN111240564B (en) Material display method and device, electronic equipment and storage medium
CN113127723B (en) User portrait processing method, device, server and storage medium
CN109068371A (en) Push, method, apparatus, equipment, medium and the system for showing multimedia resource
CN109657164B (en) Method, device and storage medium for publishing message
CN108960911A (en) Ad revenue acquisition methods and device
US20170171339A1 (en) Advertisement data transmission method, electrnoic device and system
CN111050217B (en) Video playing method and device
CN106372254B (en) Method, device and terminal for processing service data
CN111031117B (en) Multimedia file downloading method and related device

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