CN107092482B - Method and system for guiding user attention by mobile terminal - Google Patents

Method and system for guiding user attention by mobile terminal Download PDF

Info

Publication number
CN107092482B
CN107092482B CN201710183074.7A CN201710183074A CN107092482B CN 107092482 B CN107092482 B CN 107092482B CN 201710183074 A CN201710183074 A CN 201710183074A CN 107092482 B CN107092482 B CN 107092482B
Authority
CN
China
Prior art keywords
user
attention
function
array
judging whether
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
CN201710183074.7A
Other languages
Chinese (zh)
Other versions
CN107092482A (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.)
Guangdong Xiecheng Information Technology Co.,Ltd.
Original Assignee
Wuhan Douyu 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710183074.7A priority Critical patent/CN107092482B/en
Publication of CN107092482A publication Critical patent/CN107092482A/en
Application granted granted Critical
Publication of CN107092482B publication Critical patent/CN107092482B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a method and a system for guiding user attention by a mobile terminal, and relates to the field of application development of internet mobile terminals. The method comprises the following steps: establishing a timer and setting the callback of the timer; setting the execution time of a timer; setting conditions for executing the function of displaying the attention interface: judging whether the uid of the current concerned user is consistent with the uid of the room owner or not, and executing a function when the uid of the current concerned user is inconsistent with the uid of the room owner; judging whether a user logs in, and executing a function after the user logs in; judging whether the gift panel is folded or not, and executing the function when the gift panel is folded; judging whether the live broadcast is in a vertical screen live broadcast room state, and executing a function if the live broadcast is in a vertical screen live broadcast room state; the function is executed only when the execution time is reached and all the conditions are met simultaneously, and the function returns directly as long as one condition is not met. The method and the system can guide the user to pay attention to the favorite anchor, and improve the retention time of the user in App.

Description

Method and system for guiding user attention by mobile terminal
Technical Field
The invention relates to the field of application development of an internet mobile terminal, in particular to a method and a system for guiding user attention by a mobile terminal.
Background
With the rapid development of mobile terminals of mobile phones, many users like to watch live programs, and in the process of watching the anchor, many users can watch the content of the anchor and feel attractive, and pay attention to the anchor, so that the users can quickly find the favorite anchor next time. Through statistics, many users are found to favor the anchor that the users pay attention to, and therefore the guidance of the users to pay attention to the favorite anchor needs to be realized.
Disclosure of Invention
The invention aims to overcome the defects of the background technology, and provides a method and a system for guiding a user to pay attention by a mobile terminal, which can guide the user to pay attention to a favorite anchor and improve the retention time of the user in an App.
The invention provides a method for guiding user attention by a mobile terminal, which comprises the following steps:
A. creating a timer and setting the callback of the timer; setting the execution time of a timer;
B. setting conditions for executing the function of displaying the attention interface:
judging whether the unique user identifier uid of the current concerned user is consistent with the uid of the room owner or not, and executing a function when the unique user identifier uid of the current concerned user is inconsistent with the uid of the room owner;
judging whether a user logs in, and executing a function after the user logs in;
judging whether the gift panel is folded or not, and executing the function when the gift panel is folded;
judging whether the live broadcast is in a vertical screen live broadcast room state, and executing a function if the live broadcast is in a vertical screen live broadcast room state;
the function is executed only when the execution time is reached and all the conditions are met simultaneously, and the function returns directly as long as one condition is not met.
On the basis of the technical scheme, the method also comprises the following steps after the step B:
C. setting the frequency of the popup of the concerned page:
c1, acquiring a character string displayed by the time of the day, splicing the character string, and splicing the uid of the user and the room id of the user together to form a new character string todayStrhaveShow;
c2, acquiring array arrayM formed by the character strings spliced and displayed in history, judging whether the array arrayM contains the character string todayStrhaveShow spliced in the step C1, and if the array arrayM contains the character string todayStrhaveShow, not displaying a banner prompting attention; otherwise, continuing to step C3;
c3, judging the number of the arrays, and if the number of the arrays is larger than the specified number, periodically removing the data in the specified range in the arrays;
and C4, creating a bullet frame for guiding attention, wherein the interface for guiding attention is provided with a closing button and an attention button.
On the basis of the above technical solution, in step C3, the specified number is 200, and when the data in the specified range in the array is periodically removed, the character strings stored in the range of 0 to 100 are removed, so as to prevent the data in the arrayM from infinitely increasing.
On the basis of the above technical solution, the step C4 is followed by the following steps:
and C5, when the user clicks the attention button, the displayed interface disappears, and meanwhile, a function for executing the attention action is called to pay attention to the anchor.
On the basis of the above technical solution, step C5 specifically includes the following steps:
c5.1, judging the current network state, directly calling by using the class name according to the apple language characteristic class method, judging the network connection condition when the calling is finished and directly returning and terminating if the network connection is disconnected;
c5.2, if the network condition is detected to be good in the last step, sending a network request to a background to inform a server that a current user pays attention to a main broadcast of a current live broadcast room;
c5.3, if the request of the attention interface is successful, opening the broadcasting prompt, adding push to the user, and informing the user: and when the next main broadcast is played, the user receives the play prompt of the main broadcast.
The invention also provides a system for guiding the user to pay attention by the mobile terminal, which comprises a timer creating unit, a function execution condition setting unit and a function execution unit, wherein:
the timer creating unit is to: creating a timer and setting the callback of the timer; setting the execution time of a timer;
the function execution condition setting unit is configured to: setting conditions for executing the function of displaying the attention interface:
judging whether the unique user identifier uid of the current concerned user is consistent with the uid of the room owner or not, and if not, indicating the function execution unit to execute the function;
judging whether a user logs in, and indicating a function execution unit to execute a function after the user logs in;
judging whether the gift panel is folded or not, and indicating the function execution unit to execute the function when the gift panel is folded;
judging whether the live broadcast is in a vertical screen live broadcast room state, and if the live broadcast is in a vertical screen live broadcast room state, indicating a function execution unit to execute a function;
and only when the execution time is reached and all the conditions are met simultaneously, the function execution unit is instructed to execute the function, and the function is instructed to return directly as long as one condition is not met.
On the basis of the technical scheme, the system also comprises a pop-up frequency setting unit,
the pop-up frequency setting unit is configured to: setting the frequency of the popup of the concerned page:
acquiring a character string displayed by the time of the day, splicing the character string, and splicing the uid of the user and the room id of the user together to form a new character string todayStrhaveShow;
acquiring array arrayM formed by spliced character strings which are displayed historically, judging whether the array arrayM contains the spliced character strings todayStrhaveShow or not, and if the array arrayM contains the spliced character strings todayStrhaveShow, not displaying a banner prompting attention; otherwise, judging the number of the arrays, and if the number of the arrays is larger than the specified number, periodically removing the data in the specified range in the arrays;
and creating a bullet box for guiding attention, wherein the interface for guiding attention is related to a closing button and an attention button.
On the basis of the technical scheme, the specified number is 200, and when the pop-up frequency setting unit periodically removes the data in the specified range in the array, the removal range is the character string stored between 0 and 100, so that the data in the arrayM is prevented from infinitely increasing.
On the basis of the above technical solution, the pop-up frequency setting unit is further configured to: and when the user clicks the attention button, the displayed interface disappears, and meanwhile, a function for executing the attention action is called to pay attention to the anchor.
On the basis of the above technical solution, the pop-up frequency setting unit is specifically configured to:
judging the current network state, directly calling by using the class name according to the characteristic class method of the apple language, judging the network connection condition when the calling is finished and directly returning and terminating if the network connection is disconnected;
if the network condition is detected to be good in the last step, sending a network request to a background to inform a server that a current user pays attention to a main broadcast of a current live broadcast room;
if the attention interface request is successful, opening the play prompt, adding push to the user, and informing the user: and when the next main broadcast is played, the user receives the play prompt of the main broadcast.
Compared with the prior art, the invention has the following advantages:
(1) the invention creates a timer, and sets the callback of the timer; setting the execution time of a timer; setting conditions for executing the function of displaying the attention interface: judging whether the unique user identifier uid of the current concerned user is consistent with the uid of the room owner or not, and executing a function when the unique user identifier uid of the current concerned user is inconsistent with the uid of the room owner; judging whether a user logs in, and executing a function after the user logs in; judging whether the gift panel is folded or not, and executing the function when the gift panel is folded; judging whether the live broadcast is in a vertical screen live broadcast room state, and executing a function if the live broadcast is in a vertical screen live broadcast room state; the function is executed only when the execution time is reached and all the conditions are met simultaneously, and the function returns directly as long as one condition is not met. The method and the device can guide the user to pay attention to the favorite anchor, and improve the retention time of the user in App.
(2) The invention creates a timer, and sets the callback of the timer; the execution time of the timer is set. The invention sets the calling time of the function displaying the attention interface, and after the user watches for 10 minutes, the user can consider whether the function tryShowFollowNotice displaying the attention interface needs to be executed or not, and then the next operation needs to be executed.
(3) The invention sets the condition for executing the function for displaying the attention interface: judging whether the unique user identifier uid of the current concerned user is consistent with the uid of the room owner or not, and executing a function when the unique user identifier uid of the current concerned user is inconsistent with the uid of the room owner; judging whether a user logs in, and executing a function after the user logs in; judging whether the gift panel is folded or not, and executing the function when the gift panel is folded; judging whether the live broadcast is in a vertical screen live broadcast room state, and executing a function if the live broadcast is in a vertical screen live broadcast room state; the function is executed only when the execution time is reached and all the conditions are met simultaneously, and the function returns directly as long as one condition is not met. According to the method and the device, conditions for guiding the user to pop up the frame are set, the user needs to pop up the concerned guiding conditions only when certain conditions are met, and the concerned guiding conditions are not popped up when the conditions are not met, so that conditions are set for guiding the appearance of the concerned interface, and the method and the device are safer and more reliable.
(4) The invention sets the frequency of the popup of the concerned page, and sets conditions for the appearance frequency of the popup concerned guided interface, such as: the user pops up the interface once a day, so that frequent popping up of the concerned page can be avoided, and the user can feel dislike.
(5) The invention judges the number of the arrays, and if the number of the arrays is larger than the specified number, the data in the specified range in the arrays are removed regularly. For example: after the number of the arrays exceeds the specified number of 200, a clearing operation is executed, and the unlimited increase of the stored arrays is avoided.
(6) The invention creates a bullet box for guiding attention, and the interface for guiding attention is provided with a closing button and an attention button. The method can be carried out by using a function, the creation of the concerned interface is guided, the concerned guide interface can be constructed only by transmitting the head portrait of the anchor and the name of the anchor, the operation is simple, and the use by a user is convenient.
(7) When a user clicks the attention button, the displayed interface disappears, and when the user clicks the attention button, the displayed interface disappears, and meanwhile, a function for executing the attention action is called to pay attention to the anchor. When a user pays attention to the broadcasting station, the broadcasting reminding can be opened to remind the user and improve user experience in the process that the function is written to pay attention to the broadcasting station by using the function followOrNotTheRoom.
Drawings
Fig. 1 is a flowchart of a method for guiding a user to focus on by a mobile terminal in an embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the figures and the embodiments.
Referring to fig. 1, an embodiment of the present invention provides a method for guiding a user to pay attention by a mobile terminal, including the following steps:
A. creating a timer and setting the callback of the timer; setting the execution time of a timer;
B. setting conditions for executing the function of displaying the attention interface:
judging whether the unique user identifier uid of the current concerned user is consistent with the uid of the room owner or not, and executing the function when the unique user identifier uid of the current concerned user is inconsistent with the uid of the room owner;
judging whether a user logs in, and executing a function after the user logs in;
judging whether the gift panel is folded or not, and executing the function when the gift panel is folded;
judging whether the live broadcast is in a vertical screen live broadcast room state, and executing a function if the live broadcast is in a vertical screen live broadcast room state;
the function is executed only when the execution time is reached and all the conditions are met simultaneously, and the function returns directly as long as one condition is not met.
C. Setting the frequency of the popup of the concerned page:
c1, acquiring a character string displayed by the time of the day, splicing the character string, and splicing the uid of the user and the room id of the user together to form a new character string todayStrhaveShow;
c2, acquiring array arrayM formed by the character strings spliced and displayed in history, judging whether the array arrayM contains the character string todayStrhaveShow spliced in the step C1, and if the array arrayM contains the character string todayStrhaveShow, not displaying a banner prompting attention; otherwise, continuing to step C3;
c3, judging the number of the arrays, if the number of the arrays is more than 200, regularly removing the data in the designated range in the arrays, wherein the removal range is a character string stored between 0 and 100, and the data in the arrayM is prevented from infinitely increasing;
c4, creating a bullet frame for guiding attention, wherein the interface for guiding attention is provided with a closing button and an attention button;
and C5, when the user clicks the attention button, the displayed interface disappears, and meanwhile, a function for executing the attention action is called to pay attention to the anchor.
Step C5 specifically includes the following steps:
c5.1, judging the current network state, directly calling by using the class name according to the apple language characteristic class method, judging the network connection condition when the calling is finished and directly returning and terminating if the network connection is disconnected;
c5.2, if the network condition is detected to be good in the last step, sending a network request to a background to inform a server that a current user pays attention to a main broadcast of a current live broadcast room;
c5.3, if the request of the attention interface is successful, opening the broadcasting prompt, adding push to the user, and informing the user: and when the next main broadcast is played, the user receives the play prompt of the main broadcast.
The invention also provides a system for guiding the user to pay attention by the mobile terminal, which comprises a timer creating unit, a function execution condition setting unit and a function execution unit, wherein:
the timer creating unit is to: creating a timer and setting the callback of the timer; setting the execution time of a timer;
the function execution condition setting unit is configured to: setting conditions for executing the function of displaying the attention interface:
judging whether the unique user identifier uid of the current concerned user is consistent with the uid of the room owner or not, and if not, indicating the function execution unit to execute the function;
judging whether a user logs in, and indicating a function execution unit to execute a function after the user logs in;
judging whether the gift panel is folded or not, and indicating the function execution unit to execute the function when the gift panel is folded;
judging whether the live broadcast is in a vertical screen live broadcast room state, and if the live broadcast is in a vertical screen live broadcast room state, indicating a function execution unit to execute a function;
and only when the execution time is reached and all the conditions are met simultaneously, the function execution unit is instructed to execute the function, and the function is instructed to return directly as long as one condition is not met.
The system may further include a pop-up frequency setting unit for: setting the frequency of the popup of the concerned page:
acquiring a character string displayed by the time of the day, splicing the character string, and splicing the uid of the user and the room id of the user together to form a new character string todayStrhaveShow;
acquiring array arrayM formed by spliced character strings which are displayed historically, judging whether the array arrayM contains the spliced character strings todayStrhaveShow or not, and if the array arrayM contains the spliced character strings todayStrhaveShow, not displaying a banner prompting attention; otherwise, judging the number of the arrays, and if the number of the arrays is more than 200, periodically removing the data in the designated range in the arrays, wherein the removal range is the character string stored between 0 and 100, and preventing the data in the arrayM from infinitely increasing;
creating a bullet frame for guiding attention, wherein the interface for guiding attention is provided with a closing button and an attention button;
when a user clicks the attention button, the displayed interface disappears, when the user clicks the attention button, the displayed interface disappears, meanwhile, a function for executing the attention action is called, and attention is paid to the anchor:
judging the current network state, directly calling by using the class name according to the characteristic class method of the apple language, judging the network connection condition when the calling is finished and directly returning and terminating if the network connection is disconnected;
if the network condition is detected to be good in the last step, sending a network request to a background to inform a server that a current user pays attention to a main broadcast of a current live broadcast room;
if the attention interface request is successful, opening the play prompt, adding push to the user, and informing the user: and when the next main broadcast is played, the user receives the play prompt of the main broadcast.
The following is a detailed description of the writing process of a specific function.
The scheme for guiding the user to pay attention is mainly realized by a function tryShowFollowNotice displaying an attention interface, and the calling time of the function is as follows: after the user performs the login operation, the time that the user watches exceeds a certain time, for example, 10 minutes later, it may be considered whether to call the function tryshow follownote displaying the attention interface.
Firstly, displaying the calling time of a function tryShowFollowNotice of an attention interface:
(1) creating a timer by using a function scheduledTimerWithTimeInterval, and setting a callback didwatchtenroute of the timer;
(2) the time for executing the didWatchTenMinute function of the timer is set to 600 seconds (or other values), and when the time of the timer expires, whether the function trysrowfulownotice displaying the attention interface needs to be executed or not may be considered.
The first step has the advantages that: the calling time of the function displaying the attention interface is set, and when the user watches for 10 minutes, whether the function tryShowFollowNotice displaying the attention interface needs to be executed or not can be considered.
Secondly, a writing process of a function tryShowFollowNotice for displaying an attention interface:
(1) setting conditions for executing the function of displaying the attention interface:
(1.1) judging whether the uid (user unique identifier) of the current concerned user is consistent with the uid of the room owner by using a function isEqualToString, and continuing to execute the function if the uid of the current concerned user is inconsistent with the uid of the room owner;
(1.2) use function! Judging whether the user logs in by the isLogin, and continuing to execute the function if the user logs in, wherein the DYUserManger shareInsentt creates a user instance, and the user instance calls the isLogin to judge whether the user logs in;
(1.3) judging whether the gift panel is folded or not, and only if the gift panel is folded, continuing to execute the function;
(1.4) use function! Judging whether the video is in a state of a vertical screen live broadcast room or not by using the isLandscape, and if the video is in the vertical screen, not in the horizontal screen, executing a function;
and only when the execution time is reached and all the conditions are met simultaneously, the function is continuously executed, and the function directly returns as long as one condition is not met.
(2) Setting frequency of page pop-up of interest
For example: setting frequency of popping up pages of interest once a day
(2.1) acquiring a string todayStr displayed by the time of the day using a function stringFromDate;
(2.2) splicing the character strings by using a stringwithFormat function, and splicing the uid of the user, the room id of the user and the todayStr in the step (2.1) into todayStrhaveShow;
(2.3) acquiring an array arrayM formed by the character strings spliced by the step (2.1) and the step (2.2) and displayed in history;
(2.4) using the function continainObject to judge whether the array M in the step (2.3) contains the character string todayStrHaveShow spliced in the step (2.2), if the array contains the todayStrHaveShow, indicating that the banner prompting attention is already displayed, and not displaying the banner prompting attention; otherwise, continuing to execute the step (3);
(3) using the function if (array m. count >200), the number of arrays is determined, and if the number in an array is greater than 200, the function [ array m removeObjectsInRange: NSMakeRange (0, 100), where removeObjectsInRange refers to a specified range of data in an array that is periodically removed, the removal range being a string stored between 0 and 100, the purpose of the periodic removal being to prevent data in arrayM from growing indefinitely;
(4) using the function- (instancetype) initWithImgStr: (NSString) avararimgstrname: (NSString) name followBtnClick: (void ^) is ()) followBtnClick, wherein the type of the return value of the function is instancetype, instancetype represents that the type of the return is not limited, the type of the parameter avatar ImgStr is NSString type, represents the character string of the image address, the second parameter name is the name of the concerned anchor, (void ^) followBtnClick represents the callback executed after the function clicks, some clicked operations can be executed in the callback function, and a guided concerned bullet box is created, and the guided concerned interface is related to a closed button and a concerned button;
(5) when a user clicks an attention button, a function dismis is used to make the displayed interface disappear, when the user clicks the attention button, the function dismis is used to make the displayed interface disappear and simultaneously call a function followOrNotTheRoom for executing an attention action to pay attention to the main broadcast, and the compiling process of the function followOrNotTheRoom is as follows:
(5.1) using a function ([ device helper connected to network ] ═ notReaable), wherein the left [ device helper connected to network ] function statement is a function for judging the current network state, the connected to network is a class method, the class method is directly called by a class name according to the apple language characteristic class method, a return value is obtained after calling is finished, the return value contains notReaable, the notReaable represents that the current network is disconnected, the network connection condition is judged, and if the network connection is disconnected, the network connection is directly returned and terminated;
(5.2) if the network condition is detected to be good in the last step, sending a network request to a background by using a function userFolloowOrDel the rom, and informing a server that a current user pays attention to a main broadcast of a current live broadcast room;
(5.3) if the focus interface request is successful, opening a play reminder by using a function openOrCloseRoomReund, adding push to the user, and informing the user of: and when the next main broadcast is played, the user receives the play prompt of the main broadcast.
The advantage of step two:
1. the conditions for guiding the user to pop up the frame are set from the step (1.1) to the step (1.4), the user needs to pop up the concerned guiding conditions only when certain conditions are met, and the concerned guiding conditions are not popped up when the conditions from the step (1.1) to the step (1.4) are not met, so that the conditions are set for guiding the appearance of the concerned interface, and the method is safer and more reliable.
2. The steps (2.1) to (2.4) set conditions for the frequency of appearance of the interface for ejecting the attention guide, for example: the user pops up the interface once a day, so that frequent popping up of the concerned page can be avoided, and the user can feel dislike.
3. And (3) judging the number of the arrays, and if the number of the arrays is larger than the specified number, periodically removing the data in the specified range in the arrays. For example: after the number of the arrays exceeds the specified number of 200, a clearing operation is executed, and the unlimited increase of the stored arrays is avoided.
4. And (4) the function is used to establish the concerned interface, the concerned guide interface can be established only by transmitting the head portrait of the anchor and the name of the anchor, the operation is simple, and the user can use the concerned guide interface conveniently.
5. When a user pays attention to the broadcasting station, the broadcasting reminding can be opened to remind the user and improve user experience in the process that the function is written to pay attention to the broadcasting station by using the function followOrNotTheRoom.
In summary, the embodiment of the present invention selects a reasonable function call timing, and calls the function written by the user at a reasonable timing, so that the attention guidance interface can be automatically popped up, and the user can perform the attention operation.
Various modifications and variations of the embodiments of the present invention may be made by those skilled in the art, and they are also within the scope of the present invention, provided they are within the scope of the claims of the present invention and their equivalents.
What is not described in detail in the specification is prior art that is well known to those skilled in the art.

Claims (10)

1. A method for guiding user attention by a mobile terminal is characterized by comprising the following steps:
A. creating a timer and setting the callback of the timer; setting the execution time of a timer;
B. setting conditions for executing the function of displaying the attention interface:
judging whether the unique user identifier uid of the current user is consistent with the uid of the room owner;
judging whether a current user logs in;
judging whether the gift panel is folded;
judging whether the live broadcast is in a vertical screen live broadcast room state;
and executing the function only when the execution time is up, the unique user identifier uid of the current user is inconsistent with the uid of the room owner, the current user logs in, the gift panel is folded and is in a vertical screen live broadcasting room state, and the function is directly returned as long as one condition is not met.
2. The method for guiding user attention by a mobile terminal according to claim 1, wherein: the step B also comprises the following steps:
C. setting the frequency of the popup of the concerned page:
c1, acquiring the character string displayed by the time of the day, splicing the character strings, and splicing the uid of the user, the room id of the user and the character string displayed by the time of the day to form a new character string todayStrhaveshow;
c2, acquiring array arrayM formed by the character strings spliced and displayed in history, judging whether the array arrayM contains the character string todayStrhaveShow spliced in the step C1, and if the array arrayM contains the character string todayStrhaveShow, not displaying a banner prompting attention; otherwise, continuing to step C3;
c3, judging the number of the data in the array, and if the number of the data in the array is larger than the specified number, periodically removing the data in the specified range in the array;
and C4, creating a bullet frame for guiding attention, wherein the interface for guiding attention is provided with a closing button and an attention button.
3. The method for guiding user attention by a mobile terminal according to claim 2, wherein: in step C3, the designated number is 200, and when the data in the designated range in the array is periodically removed, the character strings stored in the range of 0 to 100 are removed, so as to prevent the data in the arrayM from infinitely increasing.
4. The method for guiding user attention by a mobile terminal according to claim 2, wherein: step C4 is followed by the steps of:
and C5, when the user clicks the attention button, the displayed interface disappears, and meanwhile, a function for executing the attention action is called to pay attention to the anchor.
5. The method of claim 4, wherein the mobile terminal directs the attention of the user: step C5 specifically includes the following steps:
c5.1, judging the current network state, directly calling by using a class name according to the characteristic class method of the apple development language, judging the network connection condition when the calling is finished and directly returning and terminating if the network connection is disconnected;
c5.2, if the network condition is detected to be good in the last step, sending a network request to a background to inform a server that a current user pays attention to a main broadcast of a current live broadcast room;
c5.3, if the request of the attention interface is successful, opening the broadcasting prompt, adding push to the user, and informing the user: and when the next main broadcast is played, the user receives the play prompt of the main broadcast.
6. A system for guiding user attention by a mobile terminal is characterized by comprising a timer creating unit, a function execution condition setting unit and a function executing unit, wherein:
the timer creating unit is to: creating a timer and setting the callback of the timer; setting the execution time of a timer;
the function execution condition setting unit is configured to: setting conditions for executing the function of displaying the attention interface:
judging whether the unique user identifier uid of the current user is consistent with the uid of the room owner;
judging whether a current user logs in;
judging whether the gift panel is folded;
judging whether the live broadcast is in a vertical screen live broadcast room state;
and only when the execution time is up, the unique user identifier uid of the current user is inconsistent with the uid of the room owner, the current user logs in, the gift panel is folded and is in a vertical screen live broadcast room state, the function execution unit is instructed to execute the function, and the function is instructed to directly return as long as one condition is not met.
7. The system of claim 6, wherein the mobile terminal directs the attention of the user: the system further comprises a pop-up frequency setting unit,
the pop-up frequency setting unit is configured to: setting the frequency of the popup of the concerned page:
acquiring a character string displayed by the time of the day, splicing the character string, and splicing the uid of the user, the room id of the user and the character string displayed by the time of the day to form a new character string todayStrhaveShow;
acquiring array arrayM formed by spliced character strings which are displayed historically, judging whether the array arrayM contains the spliced character strings todayStrhaveShow or not, and if the array arrayM contains the spliced character strings todayStrhaveShow, not displaying a banner prompting attention; otherwise, judging the number of the data in the array, and if the number of the data in the array is larger than the specified number, periodically removing the data in the specified range in the array;
and creating a bullet box for guiding attention, wherein the interface for guiding attention is related to a closing button and an attention button.
8. The system for guiding user attention by a mobile terminal according to claim 7, wherein: the specified number is 200, and when the pop-up frequency setting unit periodically removes the data in the specified range in the array, the removal range is the character string stored between 0 and 100, so that the data in the arrayM is prevented from infinitely increasing.
9. The system for guiding user attention by a mobile terminal according to claim 7, wherein: the pop-up frequency setting unit is further configured to: when a user clicks the attention button, the displayed interface disappears, and meanwhile, a function for executing the attention action is called to pay attention to the anchor.
10. The system for guiding user attention by a mobile terminal according to claim 9, wherein: the pop-up frequency setting unit is specifically configured to:
judging the current network state, directly calling by using the class name according to the characteristic class method of the apple development language, judging the network connection condition when the calling is finished and directly returning and terminating if the network connection is disconnected;
if the network condition is detected to be good in the last step, sending a network request to a background to inform a server that a current user pays attention to a main broadcast of a current live broadcast room;
if the attention interface request is successful, opening the play prompt, adding push to the user, and informing the user: and when the next main broadcast is played, the user receives the play prompt of the main broadcast.
CN201710183074.7A 2017-03-24 2017-03-24 Method and system for guiding user attention by mobile terminal Active CN107092482B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710183074.7A CN107092482B (en) 2017-03-24 2017-03-24 Method and system for guiding user attention by mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710183074.7A CN107092482B (en) 2017-03-24 2017-03-24 Method and system for guiding user attention by mobile terminal

Publications (2)

Publication Number Publication Date
CN107092482A CN107092482A (en) 2017-08-25
CN107092482B true CN107092482B (en) 2020-06-16

Family

ID=59649043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710183074.7A Active CN107092482B (en) 2017-03-24 2017-03-24 Method and system for guiding user attention by mobile terminal

Country Status (1)

Country Link
CN (1) CN107092482B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109688418B (en) * 2018-12-24 2021-03-05 北京潘达互娱科技有限公司 Live interface function guiding method, device and storage medium
CN111405302B (en) * 2020-03-06 2022-06-10 北京达佳互联信息技术有限公司 Live broadcast room attention reminding method and device, electronic equipment and storage medium
CN113727126B (en) * 2021-08-31 2022-10-18 北京快来文化传播集团有限公司 Anchor attention method based on live broadcast platform
CN115379268B (en) * 2022-08-05 2023-10-03 北京达佳互联信息技术有限公司 Card information display method and device, server, terminal and storage medium
CN116560782B (en) * 2023-07-11 2023-09-19 飞天诚信科技股份有限公司 Fingerprint authentication method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104104524A (en) * 2013-04-09 2014-10-15 广州华多网络科技有限公司 Method and system for providing live broadcast services, terminal, and server
CN105472419A (en) * 2015-12-08 2016-04-06 广州华多网络科技有限公司 Message notification method and apparatus
CN105744289A (en) * 2016-02-01 2016-07-06 广州酷狗计算机科技有限公司 Live broadcast event reminding method and device
CN106488267A (en) * 2016-11-21 2017-03-08 武汉斗鱼网络科技有限公司 A kind of appraisal procedure of direct broadcasting room Generalization bounds, user equipment server system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104104524A (en) * 2013-04-09 2014-10-15 广州华多网络科技有限公司 Method and system for providing live broadcast services, terminal, and server
CN105472419A (en) * 2015-12-08 2016-04-06 广州华多网络科技有限公司 Message notification method and apparatus
CN105744289A (en) * 2016-02-01 2016-07-06 广州酷狗计算机科技有限公司 Live broadcast event reminding method and device
CN106488267A (en) * 2016-11-21 2017-03-08 武汉斗鱼网络科技有限公司 A kind of appraisal procedure of direct broadcasting room Generalization bounds, user equipment server system

Also Published As

Publication number Publication date
CN107092482A (en) 2017-08-25

Similar Documents

Publication Publication Date Title
CN107092482B (en) Method and system for guiding user attention by mobile terminal
CN105867714B (en) Application program method for down loading, apparatus and system
CN108989856B (en) Processing method, terminal and medium for acquiring positive film associated data based on short video
US20230379280A1 (en) Information interaction method, apparatus, device, storage medium and program product
CN106570100B (en) Information search method and device
CN108647068B (en) Method, system and medium product for realizing application recommendation on APP starting page
CN107948672B (en) Method and system for storing video data, server and wearable device
CN104902316B (en) Method, device, intelligent sound box and the mobile terminal of synchronous reproduction time
CN104980563A (en) Operation demonstration method and operation demonstration device
WO2016090889A1 (en) Promotion information processing method, device and apparatus, and non-volatile computer storage medium
CN108933946B (en) Voice-control-based live broadcasting attention method, storage medium, electronic equipment and system
CN103945265A (en) Advertisement processing method and terminal
CN106899455A (en) The method and apparatus that a kind of client is interacted with webpage
CN112764653A (en) Method and device for acquiring information based on pull-down page
CN108509175B (en) Voice interaction method and electronic equipment
CN104881214A (en) Reader and page turning method thereof
CN112473131A (en) Method and device for realizing game running and computer readable storage medium
CN104391628A (en) Process switching method and device
CN109815407B (en) Information resource pushing method, device, equipment and storage medium
CN104615432A (en) Splash screen information handling method and customer terminal
CN108197161B (en) Information recommendation method and device
CN109727597A (en) The interaction householder method and device of voice messaging
CN109214895A (en) A kind of game resource promotion method, apparatus and system
US20150347579A1 (en) Media file marking method and apparatus
CN109348295A (en) A method of solution android advertisement video, which opens, broadcasts preceding blank screen

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
TR01 Transfer of patent right

Effective date of registration: 20230406

Address after: Room 102-212, No. 230 Huangge Section, Shinan Road, Huangge Town, Nansha District, Guangzhou City, Guangdong Province, 511400

Patentee after: Guangdong Xiecheng Information Technology Co.,Ltd.

Address before: 430000 East Lake Development Zone, Wuhan City, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building

Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right