CN114449026A - Method for recording online learning duration and related equipment - Google Patents

Method for recording online learning duration and related equipment Download PDF

Info

Publication number
CN114449026A
CN114449026A CN202111546761.3A CN202111546761A CN114449026A CN 114449026 A CN114449026 A CN 114449026A CN 202111546761 A CN202111546761 A CN 202111546761A CN 114449026 A CN114449026 A CN 114449026A
Authority
CN
China
Prior art keywords
client
learning
duration
recording
learning duration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111546761.3A
Other languages
Chinese (zh)
Other versions
CN114449026B (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.)
Beijing Honghe Aixue Education Technology Co ltd
Original Assignee
Beijing Honghe Aixue Education 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 Beijing Honghe Aixue Education Technology Co ltd filed Critical Beijing Honghe Aixue Education Technology Co ltd
Priority to CN202111546761.3A priority Critical patent/CN114449026B/en
Publication of CN114449026A publication Critical patent/CN114449026A/en
Application granted granted Critical
Publication of CN114449026B publication Critical patent/CN114449026B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/20Education
    • G06Q50/205Education administration or guidance
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C1/00Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people
    • G07C1/10Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people together with the recording, indicating or registering of other data, e.g. of signs of identity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Educational Technology (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Educational Administration (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • General Business, Economics & Management (AREA)
  • General Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Electrically Operated Instructional Devices (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a method for recording online learning duration and related equipment, wherein the method comprises the following steps: receiving a first request message, wherein the first request message comprises a first user unique identifier and a first client random code; controlling a first client to perform online learning, and recording a first learning duration; receiving a second request message, wherein the second request message comprises a second user unique identifier and a second client random code; when the unique identifiers of the two users are the same and the random codes of the two clients are different, stopping the online learning of the first client and the recording of the first learning duration, controlling the second client to perform the online learning, and recording the second learning duration; and taking the sum of the first learning duration and the second learning duration as the online learning duration of the target user corresponding to the first user unique identifier. The online learning method and the online learning system ensure that the same user can only perform online learning at one client at the same time, and accurately and conveniently record the online learning duration of the user.

Description

Method for recording online learning duration and related equipment
Technical Field
The application relates to the technical field of online education, in particular to a method for recording online learning duration and related equipment.
Background
In an educational informatization scenario, when a student learns live or on-demand courses on a learning platform, a background generally performs data statistics and analysis on the process, wherein the learning duration is an important learning data. If the student uses the same account to open multiple clients (the clients may be App applications or browsers) at the same time, the records of the learning duration may be overlapped. When the student uses a plurality of clients to play simultaneously to refresh, the learning effect is influenced. Therefore, in the recording process of the online learning duration, the influence of multi-end playing needs to be eliminated.
However, in the related art, the processing method for the problem of simultaneous learning of multiple terminals is complicated, and the mutual exclusion of the multiple terminals has a certain delay and non-real-time response. The recording of the learning duration is complex, the efficiency is not high, the accuracy of the duration recording is low, and the problem of repeated accumulation of the playing duration is easy to occur.
Disclosure of Invention
In view of the above, an object of the present application is to provide a method and related device for recording an online learning duration, so as to provide a method for recording an online learning duration, which is suitable for a live-broadcast class and a video class, and has a timely multi-terminal mutual exclusion response and a convenient learning duration recording.
Based on the above purpose, the present application provides a method for recording an online learning duration, comprising:
receiving a first request message, wherein the first request message comprises a first user unique identifier and a first client random code;
controlling a first client corresponding to the first client random code to perform online learning, and recording a first learning duration;
receiving a second request message, wherein the second request message comprises a second user unique identifier and a second client random code;
in response to the fact that the first user unique identifier is the same as the second user unique identifier and the first client random code is different from the second client random code, stopping online learning of the first client and recording of the first learning duration, controlling a second client corresponding to the second client random code to perform online learning, and recording a second learning duration;
and taking the sum of the first learning duration and the second learning duration as the online learning duration of a target user corresponding to the first user unique identifier.
In some embodiments, the controlling a first client corresponding to the first client random code to perform online learning and record a first learning duration includes:
sending first request success information to the first client to control the first client to perform online learning;
and establishing a first message channel connected with the first client, and determining the first learning duration according to data received by the first message channel.
In some embodiments, the determining the first learning duration based on the data received by the first message channel includes:
receiving a first initial time sent by the first client through the first message channel;
receiving a first moment sent by the first client at certain intervals;
and subtracting the first initial time from the latest received first time to obtain the first learning duration.
In some embodiments, the stopping the online learning of the first client and the recording of the first learning duration includes:
sending disconnection information to the first client to stop online learning of the first client;
disconnecting the first message channel with the first client to stop recording the first learning duration.
In some embodiments, after sending the disconnection information to the first client, the method further includes:
receiving a third moment sent by the first client through the first message channel;
and subtracting the first initial time from the third time to obtain the first learning duration.
In some embodiments, the controlling the second client corresponding to the second client random code to perform online learning and record a second learning duration includes:
sending second request success information to the second client to control the second client to perform online learning;
and establishing a second message channel connected with the second client, and determining the second learning duration according to the data received by the second message channel.
In some embodiments, the determining the second learning duration according to the data received by the second message channel includes:
receiving a second initial time sent by the second client through the second message channel;
receiving a second moment sent by the second client at certain intervals;
and subtracting the second initial time from the newly received second time to obtain the second learning duration.
Based on the same concept, the application also provides a device for recording the online learning duration, which comprises:
a first message receiving module configured to receive a first request message, the first request message including a first user unique identifier and a first client random code;
the first learning module is configured to control a first client corresponding to the first client random code to perform online learning and record a first learning duration;
a second message receiving module configured to receive a second request message, the second request message containing a second user unique identifier and a second client random code;
a second learning module, configured to, in response to determining that the first user unique identifier is the same as the second user unique identifier and the first client random code is different from the second client random code, stop online learning of the first client and recording of the first learning duration, control a second client corresponding to the second client random code to perform online learning, and record a second learning duration;
and the duration module is configured to take the sum of the first learning duration and the second learning duration as the online learning duration of a target user corresponding to the first user unique identifier.
Based on the same concept, the present application also provides an electronic device, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the method according to any one of the above.
Based on the same concept, the present application also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to implement the method of any one of the above.
As can be seen from the above, according to the method for recording the online learning duration and the related device provided by the application, when a first request message is received, a first user unique identifier and a first client random code carried by the first request message are obtained; controlling a first client corresponding to the first client random code to perform online learning, and recording a first learning duration; when a second request message is received, acquiring a second user unique identifier and a second client random code carried by the second request message; when the first user unique identifier is the same as the second user unique identifier and the first client random code is different from the second client random code, stopping the online learning of the first client and the recording of the first learning duration, controlling the second client corresponding to the second client random code to perform the online learning, and recording the second learning duration; and taking the sum of the first learning duration and the second learning duration as the online learning duration of the target user corresponding to the first user unique identifier. Therefore, in the process of online learning, whether the same user opens another client for learning or not can be judged according to the unique user identifier and the client random code, and the condition that the same user opens a plurality of clients for online learning is avoided. The method and the device stop the on-line learning of the client and also stop the recording of the learning time length of the client at the same time, have quick response, and ensure that only the learning time length of one client can be recorded at the same time, thereby avoiding the repeated accumulation of the learning time lengths. The learning time lengths of the same user on all the client sides are added to obtain the total learning time length, and the online learning time length of the user can be accurately and conveniently recorded.
Drawings
In order to more clearly illustrate the technical solutions in the present application or the related art, the drawings needed to be used in the description of the embodiments or the related art will be briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flowchart of a method for recording online learning duration according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating interaction between a client and a server according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an apparatus for recording online learning duration according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is further described in detail below with reference to the accompanying drawings in combination with specific embodiments.
It should be noted that technical terms or scientific terms used in the embodiments of the present application should have a general meaning as understood by those having ordinary skill in the art to which the present application belongs, unless otherwise defined. The use of "first," "second," and similar terms in the embodiments of the present application do not denote any order, quantity, or importance, but rather the terms are used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect.
As described in the background section, in a training platform, a user uses the training platform to perform live or on-demand curriculum learning, and needs to perform data statistical analysis on the process, wherein the learning duration is an important learning data. In order to prevent a user from using the same account and simultaneously opening a plurality of clients to refresh, training effect is affected, so that a multi-terminal learning scene needs to be processed.
In the related art, for the processing of multi-end playing, a client continuously polls and cooperates with a server to determine whether a user watches video courses in multiple browsers at the same time. However, the method for processing the multi-end playing video in the related art is too complicated and is not timely processed. Whether another playing page is opened is judged by generating the time stamp, and the processing mode needs to continuously generate the time stamp and calculate the interval time. When the second client is opened for learning, but the interval time is not calculated yet, the second playing page cannot be found in time, and the time delay is generated when the multi-end problem is processed. For multi-terminal processing, the method is complex, the calculation method is complex, and the response has delay.
The calculation method of the total playing time length when the multi-end playing occurs in the related art is more complicated. The calculation of the duration not only requires recording according to the playing and stopping of the video, but also determines whether the time interval meets a predetermined time interval. Therefore, when recording the time length, it is necessary to determine whether to continue recording the time length by constantly receiving the calculated time interval. The time length recording mode is not only complicated, but also correspondingly delays the time length recording when the delay occurs on the multi-terminal processing problem. When the second client is opened to play the video, the problem of multiple ends is possibly found out untimely, the time length of the first client is recorded, meanwhile, the second client also starts to record the time length, the playing time lengths of the two clients are overlapped, the recording of the total time length generates errors, and the accuracy is low.
In view of this, one or more embodiments of the present disclosure provide a scheme for recording an online learning duration, where in an online learning process, it can be determined whether a user opens another client for learning according to a unique user identifier and a client random code, so that the situation that the same user opens multiple clients for online learning at the same time is avoided. The method stops the on-line learning of the client and also stops the recording of the learning time length of the client at the same time, has quick response, ensures that only the learning time length of one client can be recorded at the same time, and avoids the repeated accumulation of the learning time lengths. The learning time lengths of the same user on all the client sides are added to obtain the total learning time length, and the online learning time length of the user can be accurately and conveniently recorded. The following describes technical solutions of specific embodiments of the present application.
Referring to fig. 1, a method for recording an online learning duration according to an embodiment of the present specification includes the following steps:
step S101, receiving a first request message, wherein the first request message comprises a first user unique identifier and a first client random code.
In this step, after receiving the first request message, the first unique user identifier and the first random client code in the first request message are obtained. The first user unique identification is generated after the user logs in, and the user unique identification is the identity information of the user. Each user can be distinguished according to the unique user identification, and when other data are recorded, the cross error of data recording is avoided. And after the user opens the first client, generating a random code of the first client. The client random code is identification information of the client, and the client can be determined according to the client random code. Therefore, the user and the client can be determined according to the first request message.
As a specific application scene, a user opens the learning platform, inputs an account password for logging in, acquires user information, and generates a user unique identifier according to the user information. And creating a session, and storing the user information and the user unique identifier into the session. Each user can create a corresponding session when logging in, and one session corresponds to one user, so that messy information recording is avoided. When the user logs off, the corresponding session will also disappear. After logging in, a user opens a video playing page for online learning, and an opened client generates a client random code which is stored for marking the client. When the request message is sent to the server, the stored unique user identification and the client random code are found and are used as request parameters to be put into the request message and sent to the server together.
And S102, controlling the first client corresponding to the first client random code to perform online learning, and recording a first learning duration.
In this step, the first user unique identifier and the first client random code in the first request information are recorded, and the corresponding first client is determined according to the first client random code, so that the first client can obtain the corresponding online learning permission. The server records a first learning duration of the first client while the first client performs online learning. The online learning can be live-broadcast class learning or recorded-broadcast class learning.
Step S103, receiving a second request message, wherein the second request message comprises a second user unique identifier and a second client random code.
In this step, after receiving the second request message, the second unique user identifier and the second random client code in the second request message are obtained to mark the user and the client.
Step S104, in response to the fact that the first user unique identifier is the same as the second user unique identifier and the first client random code is different from the second client random code, stopping online learning of the first client and recording of the first learning duration, controlling a second client corresponding to the second client random code to perform online learning, and recording a second learning duration.
In this step, when recording the second user unique identifier and the second client random code included in the second request message, the server finds that the user unique identifier and the client random code have been recorded. Therefore, comparing the first user unique identifier with the second user unique identifier, the same user unique identifier is regarded as the same user. And comparing the first client random code with the second client random code, wherein the client random code is identification information of the client, and the random codes of different clients are different. If the first user unique identification is the same as the second user unique identification, the first user unique identification and the second user unique identification are the same user. And the random code of the first client is different from the random code of the second client, so that the two clients are different. The unique user identification and the random client code in the two request messages are compared to judge whether one user opens two clients at the same time, and the judging mode is simple in processing and quick in response.
And determining that the same user opens a second client, stopping the online learning of the first client and stopping the recording of the first learning duration in order to avoid the online learning of multiple terminals. And simultaneously recording a second user unique identifier and a second client random code in the second request information, determining a corresponding second client according to the second client random code, and acquiring a corresponding learning right by the second client. And the server records a second learning duration at the second client while the second client performs online learning. When the multi-end problem is generated, the learning of the previous client is stopped, and the on-line learning is started at the new client, so that the multi-end conflict during playing is avoided. The second client may be a tab located in the same browser as the first client, a tab located in a different browser from the first client, or an H5 client, which is not limited herein.
And step S105, taking the sum of the first learning duration and the second learning duration as the online learning duration of the target user corresponding to the first user unique identifier.
In this step, the calculation of the total online learning duration is to determine the same user according to the unique user identifier, record the learning durations on different clients respectively, and then accumulate the learning durations of the same user on each client to obtain the total learning duration, so that the online learning duration can be recorded more simply.
In a specific implementation scenario, referring to fig. 2, a process of interaction between a server and a client is shown. And the user logs in the learning platform and opens the first client side for online learning. After the first client is opened, first request information needs to be sent to the server to request for starting playing of the video. The first request message includes parameters of a first user unique identifier and a first client random code. And after receiving the first request message, the server records the unique identifier of the first user and the random code of the first client and responds to the first client. And the first client starts playing the video after receiving the first request success message, and simultaneously locally records the learning duration. And continuously reporting the first learning duration to the server in the process of playing the video by the first client, and updating and recording the first learning duration by the server. When the user opens another client, the second client also needs to send request information to the server before playing the video, and requests to start playing the video. The second request message contains parameters of a second user unique identifier and a second client random code. And after receiving the second request message, the server records the unique identifier of the second user and the random code of the second client. And in the recording process, the server finds that the unique user identifier and the random client code exist, compares the unique user identifier with the random client code, and judges whether the same user opens two clients for online learning. And when the unique user identifiers are the same and the random client codes are different, the fact that the same user opens two clients at the same time is indicated. At this time, the server needs to respond to two clients and keep one client to continue online learning. Therefore, disconnection information is sent to the first client, online learning of the first client is stopped, and recording of the learning duration of the first client is stopped. And sending the learning duration when the video is terminated to the server while the first client stops playing the video, so as to obtain the total learning duration of the user on the first client. And sending second request success information to the second client, starting to play the learning video after the second client receives the second request success information, and simultaneously recording second learning duration. And continuously reporting the second learning duration to the server in the process of online learning of the second client, and updating and recording the second learning duration by the server.
From the above, in the online learning process, the embodiment of the application can judge whether the same user opens another client for learning or not according to the unique user identifier and the client random code, so that the condition that the same user opens a plurality of clients for online learning at the same time is avoided. The method stops the on-line learning of the client and also stops the recording of the learning time length of the client at the same time, has quick response, ensures that only the learning time length of one client can be recorded at the same time, and avoids the repeated accumulation of the learning time lengths. The learning time lengths of the same user on all the client sides are added to obtain the total learning time length, and the online learning time length of the user can be accurately and conveniently recorded.
In some embodiments, controlling the first client corresponding to the first client random code to perform online learning, and recording a first learning duration includes:
and sending first request success information to the first client to control the first client to carry out online learning.
And establishing a first message channel connected with the first client, and determining the first learning duration according to data received by the first message channel.
In this embodiment, the first request success information is sent to the first client, and the first client starts to play the learning video after receiving the first request success information. The learning video may be a recorded broadcast course local to the client, or may be a live broadcast course, and is not specifically limited herein. And meanwhile, a first message channel connected with the first client is established, and the first client locally records the first learning duration data. A first message channel is established between the server and the first client, and two ports of the first message channel are respectively connected to the server and the first client. The first message channel conforms to a message protocol when transmitting the first learning duration. In the transmission process, the transmission efficiency is higher, and the response is timely. In the process of online learning of the first client, the first message channel is always kept in a connected state, and the first learning duration can be directly transmitted to the server through the message channel. When the first client side conducts online learning, the first message channel exists all the time, when the first learning duration is recorded, whether the first learning duration is recorded continuously or not does not need to be judged, and the first message channel can be directly used for sending the first learning duration. When the first learning duration is transmitted, the first client does not need to send a message transmission request to the server every time, and response time is reduced.
In the process of online learning, first learning duration data is received through a first message channel, and first learning duration is determined according to the first learning duration data. The record of the first learning duration may be the learning duration locally and directly recorded at the first client by the first client, and the first learning duration is sent to the server at a certain interval. Or, the online learning at the first client is taken as an initial, a fixed interval duration is set in advance, the first client sends a duration recording message to the server at every interval of the fixed duration, the server accumulates the duration recording message on the original duration after receiving the request, and the duration recording message is accumulated for every time at a fixed interval to obtain the first learning duration. The recording manner of the first learning period is not particularly limited herein.
In some embodiments, determining the first learning duration based on data received by the first message channel comprises:
and receiving a first initial time sent by the first client through the first message channel.
And receiving the first moment sent by the first client at certain intervals.
And subtracting the first initial time from the latest received first time to obtain the first learning duration.
In this embodiment, for the data received according to the first message channel, determining the first learning duration may be a first initial time sent by the first client when online learning starts to be performed on the first client through the first message channel, where the first initial time is a time when online learning starts to be performed on the first client. And receiving a first moment sent by the first client at a certain time interval, wherein the first moment is continuously updated. And subtracting the first initial time from the latest received first time to obtain a first learning time length, and continuously updating the first learning time length. And receiving the first moment sent by the first client at certain intervals, so that the online learning is not disconnected. The time length is calculated more quickly by subtracting the first initial time from the latest received first time. And the record of the first learning duration is not influenced by the first moment received before, the latest first learning duration is not influenced when an error occurs in the data transmission process, and the recorded first learning duration has higher accuracy.
In some embodiments, stopping the online learning of the first client and the recording of the first learning duration comprises:
and sending disconnection information to the first client to stop the online learning of the first client.
Disconnecting the first message channel with the first client to stop recording the first learning duration.
In this embodiment, after receiving the disconnection information, the first client stops online learning of the first client. And meanwhile, the first message channel is disconnected, and after the first message channel is disconnected, the first client cannot report the learning duration to the server, so that the first client is ensured to stop recording the first learning duration while stopping on-line learning. After the first message channel is disconnected, if the first client records the learning duration, the first message channel connected with the server is disconnected when the server is reported, and the duration cannot be continuously uploaded. Therefore, the problem that the first learning duration continues to be reported is solved, the record of the first learning duration is more accurate, and the problem that the learning durations of a plurality of clients are repeatedly recorded is solved.
In some embodiments, after sending the disconnection information to the first client, the method further includes:
and receiving a third moment sent by the first client through the first message channel.
And subtracting the first initial time from the third time to obtain the first learning duration.
In this embodiment, after receiving the disconnection information, the first client reports a third time to the server, where the third time is a termination time at which the first client stops online learning. And subtracting the first initial time from the third time to obtain the final first learning duration. The obtained first learning duration is the total learning duration of the user at the first client, and is used for accumulating the learning duration of the user at other clients to obtain the total learning duration of the user.
In some embodiments, controlling the second client corresponding to the second client random code to perform online learning, and recording a second learning duration includes:
and sending second request success information to the second client to control the second client to carry out online learning.
And establishing a second message channel connected with the second client, and determining the second learning duration according to data received by the second message channel.
In this embodiment, the second request success information is sent to the second client, and the second client starts to play the learning video after receiving the second request success information. The learning video may be a recorded broadcast course local to the client, or may be a live broadcast course, and is not limited herein. And meanwhile, a second message channel connected with a second client is established, and the second client locally records second learning duration data. And a second message channel is established between the server and the second client, and two ports of the second message channel are respectively connected to the server and the second client. The second message channel conforms to the message protocol when transmitting the second learning duration. In the process of online learning of the second client, the second message channel is always kept in a connected state, the second learning duration can be directly transmitted to the server through the message channel, and whether to continue recording the second learning duration is not required to be judged. When the second learning duration is transmitted, the second client does not need to send a message transmission request to the server every time, and response time is reduced.
And in the process of online learning, receiving second learning duration data through a second message channel, and determining second learning duration according to the second learning duration data. The recording of the second learning duration may be that the second client directly records the learning duration locally at the second client, and the second learning duration is sent to the server at a certain interval. Or, the online learning at the second client is taken as an initial, a fixed interval duration is set in advance, the second client sends a duration recording message to the server at every interval of the fixed duration, the server accumulates the duration recording message on the original duration after receiving the request, and the duration recording message is accumulated for every time of receiving one fixed interval duration. The recording manner of the second learning period is not particularly limited.
In some embodiments, determining the second learning duration based on the data received by the second message channel comprises:
and receiving a second initial time sent by the second client through the second message channel.
And receiving a second moment sent by the second client at certain intervals.
And subtracting the second initial time from the newly received second time to obtain the second learning duration.
In this embodiment, for the data received according to the second message channel, the determining the second learning duration may be a second initial time when online learning starts on the second client and the second initial time is sent by the second client and received through the second message channel, where the second initial time is a time when online learning starts on the second client. And receiving a second moment sent by the second client at a certain time interval, wherein the second moment is continuously updated. And subtracting the second initial time from the newly received second time to obtain a second learning time length, and continuously updating the second learning time length. And receiving the second moment sent by the second client at a certain time interval, so that the online learning is not disconnected. And the time length is calculated more quickly by subtracting the second initial time from the latest received second time. And the record of the second learning duration is not influenced by the second moment received before, the latest second learning duration is not influenced when an error occurs in the data transmission process, and the recorded second learning duration has higher accuracy.
It should be noted that the method of the embodiment of the present application may be executed by a single device, such as a computer or a server. The method of the embodiment can also be applied to a distributed scene and completed by the mutual cooperation of a plurality of devices. In such a distributed scenario, one of the multiple devices may only perform one or more steps of the method of the embodiment, and the multiple devices interact with each other to complete the method.
It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments described above and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Based on the same inventive concept, corresponding to the method of any embodiment, the application also provides a device for recording the online learning time length.
Referring to fig. 3, the apparatus for recording an online learning time period includes:
a first message receiving module 301 configured to receive a first request message, the first request message including a first user unique identifier and a first client random code;
a first learning module 302, configured to control a first client corresponding to the first client random code to perform online learning, and record a first learning duration;
a second message receiving module 303 configured to receive a second request message, where the second request message includes a second user unique identifier and a second client random code;
a second learning module 304, configured to, in response to determining that the first user unique identifier is the same as the second user unique identifier and the first client random code is different from the second client random code, stop online learning of the first client and recording of the first learning duration, control a second client corresponding to the second client random code to perform online learning, and record a second learning duration;
a duration module 305 configured to use the sum of the first learning duration and the second learning duration as the online learning duration of the target user corresponding to the first user unique identifier.
As an alternative embodiment, the first learning module 302 is further configured to:
sending first request success information to the first client to control the first client to perform online learning;
and establishing a first message channel connected with the first client, and determining the first learning duration according to data received by the first message channel.
As an alternative embodiment, the first learning module 302 is further configured to:
receiving a first initial time sent by the first client through the first message channel;
receiving a first moment sent by the first client at certain intervals;
and subtracting the first initial time from the latest received first time to obtain the first learning duration.
As an alternative embodiment, the second learning module 304 is further configured to:
sending disconnection information to the first client to stop online learning of the first client;
disconnecting the first message channel with the first client to stop recording the first learning duration.
As an alternative embodiment, the second learning module 304 is further configured to:
receiving a third moment sent by the first client through the first message channel;
and subtracting the first initial time from the third time to obtain the first learning duration.
As an alternative embodiment, the second learning module 304 is further configured to:
sending second request success information to the second client to control the second client to perform online learning;
and establishing a second message channel connected with the second client, and determining the second learning duration according to the data received by the second message channel.
As an alternative embodiment, the second learning module 304 is further configured to:
receiving a second initial time sent by the second client through the second message channel;
receiving a second moment sent by the second client at certain intervals;
and subtracting the second initial time from the newly received second time to obtain the second learning duration.
For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, the functionality of the various modules may be implemented in the same one or more software and/or hardware implementations as the present application.
The device of the foregoing embodiment is used to implement the method for recording the online learning duration corresponding to any one of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Based on the same inventive concept, corresponding to the method of any embodiment described above, the present application further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the method for recording the online learning duration according to any embodiment described above.
Fig. 4 is a schematic diagram illustrating a more specific hardware structure of an electronic device according to this embodiment, where the electronic device may include: a processor 410, a memory 420, an input/output interface 430, a communication interface 440, and a bus 450. Wherein processor 410, memory 420, input/output interface 430, and communication interface 1040 are communicatively coupled to each other within the device via bus 450.
The processor 410 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present specification.
The Memory 420 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 420 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 420 and called to be executed by the processor 410.
The input/output interface 430 is used for connecting an input/output module to realize information input and output. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 440 is used for connecting a communication module (not shown in the figure) to implement communication interaction between the present device and other devices. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 450 includes a pathway to transfer information between various components of the device, such as processor 410, memory 420, input/output interface 430, and communication interface 440.
It should be noted that although the above-mentioned device only shows the processor 410, the memory 420, the input/output interface 430, the communication interface 440 and the bus 450, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
The electronic device of the foregoing embodiment is used to implement the method for recording the online learning duration in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the method of recording an online learning duration as described in any of the above embodiments.
Computer-readable media of the present embodiments, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media 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 memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
The computer instructions stored in the storage medium of the foregoing embodiment are used to enable the computer to execute the method for recording the online learning duration according to any embodiment, and have the beneficial effects of the corresponding method embodiment, which are not described herein again.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the context of the present application, features from the above embodiments or from different embodiments may also be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of brevity.
In addition, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown in the provided figures for simplicity of illustration and discussion, and so as not to obscure the embodiments of the application. Furthermore, devices may be shown in block diagram form in order to avoid obscuring embodiments of the application, and this also takes into account the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which the embodiments of the application are to be implemented (i.e., specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the application, it should be apparent to one skilled in the art that the embodiments of the application can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative instead of restrictive.
While the present application has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic ram (dram)) may use the discussed embodiments.
The present embodiments are intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present application are intended to be included within the scope of the present application.

Claims (10)

1. A method for recording online learning duration, comprising:
receiving a first request message, wherein the first request message comprises a first user unique identifier and a first client random code;
controlling a first client corresponding to the first client random code to perform online learning, and recording a first learning duration;
receiving a second request message, wherein the second request message comprises a second user unique identifier and a second client random code;
in response to the fact that the first user unique identifier is the same as the second user unique identifier and the first client random code is different from the second client random code, stopping online learning of the first client and recording of the first learning duration, controlling a second client corresponding to the second client random code to perform online learning, and recording a second learning duration;
and taking the sum of the first learning duration and the second learning duration as the online learning duration of the target user corresponding to the first user unique identifier.
2. The method according to claim 1, wherein the controlling the first client corresponding to the first client random code to perform online learning and recording the first learning duration comprises:
sending first request success information to the first client to control the first client to perform online learning;
and establishing a first message channel connected with the first client, and determining the first learning duration according to data received by the first message channel.
3. The method of claim 2, wherein determining the first learning duration based on the data received via the first message channel comprises:
receiving a first initial time sent by the first client through the first message channel;
receiving a first moment sent by the first client at certain intervals;
and subtracting the first initial time from the latest received first time to obtain the first learning duration.
4. The method for recording online learning time period according to claim 2, wherein the stopping of the online learning of the first client and the recording of the first learning time period comprises:
sending disconnection information to the first client to stop online learning of the first client;
disconnecting the first message channel with the first client to stop recording the first learning duration.
5. The method for recording online learning duration according to claim 4, wherein after sending the disconnection information to the first client, the method further comprises:
receiving a third moment sent by the first client through the first message channel;
and subtracting the first initial time from the third time to obtain the first learning duration.
6. The method according to claim 1, wherein the controlling the second client corresponding to the second client random code to perform online learning and recording the second learning duration comprises:
sending second request success information to the second client to control the second client to carry out online learning;
and establishing a second message channel connected with the second client, and determining the second learning duration according to the data received by the second message channel.
7. The method of claim 6, wherein determining the second learning duration according to the data received by the second message channel comprises:
receiving a second initial time sent by the second client through the second message channel;
receiving a second moment sent by the second client at certain intervals;
and subtracting the second initial time from the newly received second time to obtain the second learning duration.
8. An apparatus for recording online learning duration, comprising:
a first message receiving module configured to receive a first request message, the first request message including a first user unique identifier and a first client random code;
the first learning module is configured to control a first client corresponding to the first client random code to perform online learning and record a first learning duration;
a second message receiving module configured to receive a second request message, the second request message containing a second user unique identifier and a second client random code;
a second learning module, configured to, in response to determining that the first user unique identifier is the same as the second user unique identifier and the first client random code is different from the second client random code, stop online learning of the first client and recording of the first learning duration, control a second client corresponding to the second client random code to perform online learning, and record a second learning duration;
and the duration module is configured to take the sum of the first learning duration and the second learning duration as the online learning duration of a target user corresponding to the first user unique identifier.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the program.
10. A non-transitory computer readable storage medium storing computer instructions for causing a computer to implement the method of any one of claims 1 to 7.
CN202111546761.3A 2021-12-16 2021-12-16 Method for recording online learning duration and related equipment Active CN114449026B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111546761.3A CN114449026B (en) 2021-12-16 2021-12-16 Method for recording online learning duration and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111546761.3A CN114449026B (en) 2021-12-16 2021-12-16 Method for recording online learning duration and related equipment

Publications (2)

Publication Number Publication Date
CN114449026A true CN114449026A (en) 2022-05-06
CN114449026B CN114449026B (en) 2023-09-22

Family

ID=81364244

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111546761.3A Active CN114449026B (en) 2021-12-16 2021-12-16 Method for recording online learning duration and related equipment

Country Status (1)

Country Link
CN (1) CN114449026B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115660910A (en) * 2022-10-29 2023-01-31 中国人民解放军国防科技大学 Learning duration calculation method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120079918A (en) * 2011-01-06 2012-07-16 (주)비상교과서 Learning services providing method and system
CN106781753A (en) * 2017-01-06 2017-05-31 广州网才信息技术有限公司 A kind of training system suitable for different mobile terminal
US20180301046A1 (en) * 2016-11-23 2018-10-18 Broadband Education Pte. Ltd. Application for interactive learning in real-time
CN109151602A (en) * 2018-09-26 2019-01-04 浙江浙大万朋软件有限公司 A kind of method of video class record on-line study duration
CN112016029A (en) * 2020-09-01 2020-12-01 北京弘远博学科技有限公司 Method for synchronously recording courseware learning of multiple terminals

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120079918A (en) * 2011-01-06 2012-07-16 (주)비상교과서 Learning services providing method and system
US20180301046A1 (en) * 2016-11-23 2018-10-18 Broadband Education Pte. Ltd. Application for interactive learning in real-time
CN106781753A (en) * 2017-01-06 2017-05-31 广州网才信息技术有限公司 A kind of training system suitable for different mobile terminal
CN109151602A (en) * 2018-09-26 2019-01-04 浙江浙大万朋软件有限公司 A kind of method of video class record on-line study duration
CN112016029A (en) * 2020-09-01 2020-12-01 北京弘远博学科技有限公司 Method for synchronously recording courseware learning of multiple terminals

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵以霞 等: ""2018年中国科学院继续教育网科研人员在线学习数据集"", 《中国科学数据(中英文网络版)》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115660910A (en) * 2022-10-29 2023-01-31 中国人民解放军国防科技大学 Learning duration calculation method and system
CN115660910B (en) * 2022-10-29 2023-09-19 中国人民解放军国防科技大学 Learning duration calculation method and system

Also Published As

Publication number Publication date
CN114449026B (en) 2023-09-22

Similar Documents

Publication Publication Date Title
US9788206B2 (en) Method and apparatus for sharing content
US10381047B2 (en) Method, device, and system of synchronously playing media file
US20180373792A1 (en) App processing method and apparatus
CN108737636B (en) Message reminding method and device and electronic equipment
CN110022260B (en) Cross-environment receipt message processing method and system
CN112203111A (en) Multimedia resource preloading method and device, electronic equipment and storage medium
US20170171585A1 (en) Method and Electronic Device for Recording Live Streaming Media
CN111314433A (en) Message transmission method and device and electronic equipment
CN114449026B (en) Method for recording online learning duration and related equipment
CN113676761B (en) Multimedia resource playing method and device and main control equipment
CN110022327B (en) Short message authentication test method and device
CN111225255B (en) Target video push playing method and device, electronic equipment and storage medium
CN113050904A (en) Screen sharing method and device
CN111767558A (en) Data access monitoring method, device and system
CN110060477B (en) Method and device for pushing information
CN110806909A (en) Method and device for determining page frame dropping information of application program and electronic equipment
CN108009247B (en) Information pushing method and device
CN113626402A (en) Log data acquisition method and device, electronic equipment and storage medium
CN104159125A (en) Video display method, virtual player and video player
CN112915550A (en) Comment information generation method and device, electronic equipment and storage medium
CN116849724B (en) Communication method, device, equipment and storage medium based on surgical robot
CN118041804B (en) Communication equipment networking data detection method and device, electronic equipment and readable medium
JP6253251B2 (en) Content providing server, content providing method, and program for content providing server
CN116566868A (en) Network test method, computer device, and computer-readable storage medium
CN111277888B (en) Video management method and device, electronic equipment and storage medium

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