A recording method, system, mobile terminal and storage medium

By automatically controlling recording and file upload of recording applications using network servers and background services in the preset mode of the mobile terminal, the problems of artificial operation efficiency and recording files in the existing recording methods are solved, and the recording process is stabilized and automated.

CN115361472BActive Publication Date: 2025-07-18TIANJIN AUTOHOME DATA INFORMATION TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210793168.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-05
Publication Date
2025-07-18
Estimated Expiration
2042-07-05

AI Technical Summary

Technical Problem

Existing recording methods have problems such as excessive human operation in mobile terminals, resulting in inefficiency and loss of recording file collection, especially in the Android system, push services are easily suspended, resulting in untimely or missing recordings.

Method used

In the preset mode of the mobile terminal, the network server and background services are used to achieve automated operations, receive passenger flow start and end information, notify the recording application to start and end recording, and automatically upload the recording file to the file server, solving the uncertainty of human operations during the recording process and the instability of push services.

Benefits of technology

It realizes the stable operation of recording applications within the system and continuously accessing the network server, avoids the loss of recording files, and improves the automation and stability of the recording process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115361472B_ABST
    Figure CN115361472B_ABST
Patent Text Reader

Abstract

The present invention discloses a recording method, system, mobile terminal and storage medium. The method is suitable for being executed in a mobile terminal. The mobile terminal is in a preset mode and is installed with a recording application. Communication connections are established between the mobile terminal, the network server and the file server. The method includes: receiving the passenger flow start information sent by the network server; according to the passenger flow start information, notifying the recording application to start recording and sending the recording status to the network server; receiving the passenger flow end information sent by the network server; based on the passenger flow end information, notifying the recording application to end recording and saving the corresponding recording file; uploading the recording file to the file server to instruct the file server to store the recording file, and sending the storage address of the recording file to the network server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet technologies, and particularly to a recording method, a system, a mobile terminal, and a storage medium. Background Art

[0002] In a work scenario, there are often requirements related to recording. For example, in meetings and sales processes, it is necessary to collect the meeting content or the real communication content between a sales consultant and a customer. For example, in a sales scenario, when a customer enters a store, a customer flow order is formed. The customer flow order is assigned to the currently available sales consultant, and recording starts simultaneously to obtain the voice record of the communication between the sales consultant and the customer.

[0003] Currently, there are generally two solutions to achieve recording in the above scenario. The first solution is to use a recording pen. When a customer arrives at the store, the sales consultant first claims the customer flow order and manually turns on the recording pen. After the customer leaves the store, the recording pen is manually turned off, and at this time, the recording file is saved in the recording pen. The second solution is to complete customer flow distribution, reception, recording, recording file uploading, etc. through the interaction between a client device and a server. The server pushes the customer flow order to the client device through push. After receiving the customer flow order, the client device performs operations such as recording, and uploads the recording file to the server after the recording ends.

[0004] Although the above two solutions can both obtain the corresponding recording files, there are still certain defects. For the first solution, although the recording is stable and the sound quality is clear, if you want to obtain the recording file, you still need to connect to the specified application of the recording pen to upload the recording file. There are too many manual operations in the entire recording process, which is completely manually completed, affecting efficiency, and if there is a mistake in any link, the acquisition of the recording file will be lost.

[0005] The second solution seems reliable, but in an actual scenario, taking a client device pre-installed with the Android system as an example, receiving a push is a background service running, but the background service is not a service that can run continuously. It will be interfered by the system or other applications. If it is suspended by the system, the push will not arrive or will be delayed, resulting in failure to respond in a timely manner, causing less or zero acquisition of recordings, and the recording file will be missing or lost.

[0006] Therefore, a new recording method is needed to optimize the above processing process. Summary of the Invention

[0007] To this end, the present invention provides a recording solution in an attempt to solve or at least alleviate the problems existing above.

[0008] According to one aspect of the present invention, there is provided a recording method suitable for execution in a mobile terminal. The mobile terminal is in a preset mode and is installed with a recording application. Communication connections are established between the mobile terminal, a network server, and a file server. The method includes the following steps: First, receive the passenger flow start information sent by the network server; according to the passenger flow start information, notify the recording application to start recording and send the recording status to the network server; receive the passenger flow end information sent by the network server; based on the passenger flow end information, notify the recording application to end recording and save the corresponding recording file; upload the recording file to the file server to instruct the file server to store the recording file, and send the storage address of the recording file to the network server.

[0009] Optionally, in the recording method according to the present invention, it further includes: starting a background service at a preset time interval, and sending a polling request to the network server through the background service to instruct the network server to respond to the polling request and send the passenger flow start information or the passenger flow end information.

[0010] Optionally, in the recording method according to the present invention, it further includes: reporting the device status of the mobile terminal to the network server through the background service, where the device status includes at least one of device identification, whether the screen is on, whether the wireless network is used, network type, wireless network information, whether the flight mode is used, and the remaining battery power of the device.

[0011] Optionally, in the recording method according to the present invention, the step of, according to the passenger flow start information, notifying the recording application to start recording and sending the recording status to the network server includes: according to the passenger flow start information, determining whether there is a passenger flow; if there is a passenger flow, determining whether the passenger flow is consistent with the currently received passenger flow; if the passenger flow is consistent with the currently received passenger flow, determining whether the recording time corresponding to the passenger flow reaches the maximum recording duration.

[0012] Optionally, in the recording method according to the present invention, the step of, according to the passenger flow start information, notifying the recording application to start recording and sending the recording status to the network server includes: if the recording time corresponding to the passenger flow does not reach the maximum recording duration, determining whether the recording status upload service is enabled; if the recording status upload service is enabled, determining whether the recording service associated with the recording application is available and sending the recording status to the network server; if the recording service is available, starting the recording service to start recording.

[0013] Optionally, in the recording method according to the present invention, it further includes: if there is no passenger flow, determining whether the recording status upload service is enabled; if the recording status upload service is enabled, stopping the recording status upload service and determining whether the recording application is currently recording; if the recording application is currently recording, ending the recording and saving the corresponding recording file.

[0014] Optionally, in the recording method according to the present invention, the step of uploading the recording file to the file server includes: slicing the recording file to generate a plurality of slice files; uploading the plurality of slice files to the file server, and sending a file merging message to the file server to instruct the file server to merge and transcode the received plurality of slice files to obtain the recording file.

[0015] According to another aspect of the present invention, there is provided a recording system, including a network server, a file server, and a plurality of mobile terminals. Among them, the file server is communicatively connected to the network server, and each of the plurality of mobile terminals is communicatively connected to the network server and the file server respectively. Each mobile terminal is in a preset mode and is installed with a recording application, and is used to execute the above-mentioned recording method for recording.

[0016] According to another aspect of the present invention, there is provided a mobile terminal, including: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, and the program instructions include instructions for executing the above-mentioned recording method.

[0017] According to another aspect of the present invention, there is provided a readable storage medium storing program instructions, which, when read and executed by a mobile terminal, cause the mobile terminal to execute the above-mentioned recording method.

[0018] According to the recording solution of the present invention, in the preset mode, based on the passenger flow start information sent by the network server, the recording application is notified to start recording, and the recording status is sent to the network server. According to the passenger flow end information sent by the network server, the recording application is notified to end recording, and the corresponding recording file is saved. The recording file is uploaded to the file server to instruct the file server to store the recording file, and the storage address of the recording file is sent to the network server. Among them, the passenger flow start information and the passenger flow end information can be obtained by actively polling the network server by using a timed start background service, or can be passively received by the network server pushing and sending them, which solves the uncertainty of the passenger flow related information reaching the mobile terminal.

[0019] The above technical solution can not only control the recording application in the mobile terminal to start recording, end recording, upload the recording file, and feedback the recording status through the network server, fully realizing automatic operation, but also, based on the preset mode, significantly improving the running stability of the recording application in the system and the persistence of polling the network server by using the background service, and avoiding problems such as low timeliness caused by low arrival rate of the push on the system. Description of the Drawings

[0020] To achieve the above and related purposes, certain illustrative aspects are described herein in conjunction with the following description and the accompanying drawings, which indicate various ways in which the principles disclosed herein can be practiced, and all aspects and their equivalent aspects are intended to fall within the scope of the claimed subject matter. The above and other purposes, features, and advantages of the present disclosure will become more apparent by reading the following detailed description in conjunction with the accompanying drawings. Throughout the present disclosure, the same reference numerals generally refer to the same components or elements.

[0021] Figure 1 FIG. 4 shows a schematic diagram of a recording system 100 according to an embodiment of the present invention;

[0022] Figure 2 FIG. 5 shows an interaction timing diagram of each device in the recording system according to an embodiment of the present invention;

[0023] Figure 3 FIG. 6 shows a structural block diagram of a mobile terminal 300 according to an embodiment of the present invention;

[0024] Figure 4 FIG. 7 shows a flowchart of a recording method 400 according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0025] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided so that the present disclosure can be more thoroughly understood and the scope of the present disclosure can be completely conveyed to those skilled in the art.

[0026] Figure 1 FIG. 4 shows a schematic diagram of a recording system 100 according to an embodiment of the present invention. It should be noted that Figure 1 the recording system 100 is merely exemplary. In a specific implementation, according to the actual situation, the recording system 100 may include a different number of mobile terminals, network servers, and file servers. The present invention does not limit the number of mobile terminals, network servers, and file servers included in the recording system 100.

[0027] As Figure 1 shown, the recording system 100 includes mobile terminals 111, 112, a network server 120, and a file server 130. Among them, the file server 130 is communicatively connected to the network server 120 through a communication network, and the mobile terminals 111, 112 are respectively communicatively connected to the network server 120 and the file server 130. The mobile terminals 111, 112 are in a preset mode and are installed with a recording application.

[0028] The recording system 100 may further include a management server ( Figure 1 not shown), and a communication connection is established between the management server and the network server 120. The management server is used for performing background management on the customer flow. For example, when a customer arrives at the store, the management server allocates the customer flow to the network server 120, so that the network server 120 sends the customer flow start information to the corresponding mobile terminal, such as the mobile terminal 111. When the customer leaves the store, the customer flow is ended and the network server 120 is informed, so that the network server 120 sends the customer flow end information to the mobile terminal 111. After the network server 120 receives the storage address of the recording file sent by the file server 130, the network server 120 may also synchronize the storage address to the management server for saving.

[0029] In practical applications, the network server 120 can also directly replace the management server to implement its functions, that is, the network server 120 allocates the customer flow, ends the customer flow, synchronizes and saves the storage address of the recording file by itself, etc., without setting up another management server to perform the above operations. For the convenience of description, the following will use the network server 120 with the functions of the management server for subsequent description.

[0030] Next, taking the mobile terminal 111, the network server 120, and the file server 130 as examples, the interaction timing sequence among the devices in the recording system 100 will be briefly described. Figure 2 The interaction timing diagram of the devices in the recording system according to an embodiment of the present invention is shown. It should be noted that Figure 2 the numbers 1 to 15 in are used to describe the sequence of the timing of each processing step, and the smaller the value, the earlier the timing.

[0031] First, the user (for example, it can be a salesperson in the store) logs in to the recording application in the mobile terminal 111. At this time, the mobile terminal 111 sends a login request to the network server 120 through the recording application, and the login request includes the user identifier of the user using the recording application in the mobile terminal 111. After receiving the login request, the network server 120 performs the login of the recording application (the timing corresponding to the login step Figure 2 is not shown), and returns the corresponding device user information to the mobile terminal 111. The device user information includes the user name corresponding to the above user identifier.

[0032] Then, the mobile terminal 111 will regularly send a polling request to the network server 120 to obtain the customer flow start information or the customer flow end information. When a customer arrives at the store, the customer flow management background operator can enter the customer arrival information in the network server 120 to generate a corresponding customer flow entity to allocate the customer flow.

[0033] For the network server 120, on the one hand, it can respond to the polling request sent by the mobile terminal 111 and send the passenger flow start information to the mobile terminal 111. On the other hand, it can also actively push information, that is, directly send the passenger flow start information to the mobile terminal 111 after allocating the passenger flow.

[0034] After receiving the passenger flow start information sent by the network server 120, the mobile terminal 111 notifies the recording application to start recording and sends the recording status to the network server 120 (the timing sequence corresponding to the step of sending the recording status Figure 2 is not shown in the figure). In the subsequent stage, the mobile terminal 111 still sends polling requests to the network server 120 regularly to obtain the passenger flow start information or the passenger flow end information.

[0035] When the customer leaves the store, the operator of the passenger flow management background can enter the customer leaving store information in the network server 120 to end the passenger flow. Then, the network server 120 will send the passenger flow end information to the mobile terminal 111. Similar to the aforementioned sending of the passenger flow start information, the network server 120 can either respond to the polling request sent by the mobile terminal 111 and send the passenger flow end information to the mobile terminal 111, or actively push information, that is, directly send the passenger flow end information to the mobile terminal 111 after ending the passenger flow.

[0036] After receiving the passenger flow end information, the mobile terminal 111 notifies the recording application to end recording and saves the corresponding recording file. Subsequently, it uploads the recording file to the file server 130. After receiving the recording file, the file server 130 stores the recording file (the timing sequence corresponding to the step of storing the recording file Figure 2 is not shown in the figure) and sends the storage address of the recording file to the network server 120. The network server 120 synchronizes the storage address for background management.

[0037] Finally, the user operates the recording application on the mobile terminal 111 to log out the account. At this time, the mobile terminal 111 sends a logout request to the network server 120 through the recording application. After receiving the logout request, the network server 120 logs out the recording application (the timing sequence corresponding to the logout step Figure 2 is not shown in the figure). After successful logout, it sends a logout success notification to the mobile terminal 111.

[0038] Figure 3 The structural block diagram of the mobile terminal 300 according to an embodiment of the present invention is shown.

[0039] The mobile terminal 300 can be a mobile phone, a tablet computer, a notebook computer, a multimedia player, a wearable device, etc. configured with a front camera and a display screen, but is not limited thereto. For example, Figure 3As shown, the mobile terminal 300 may include a memory interface 302, a multi-core processor 304, and a peripheral interface 306.

[0040] The memory interface 302, the multi-core processor 304, and / or the peripheral interface 306 may be discrete components or integrated in one or more integrated circuits. In the mobile terminal 300, various components may be coupled via one or more communication buses or signal lines. Sensors, devices, and subsystems may be coupled to the peripheral interface 306 to facilitate various functions.

[0041] For example, an acceleration sensor 310, a magnetic field sensor 312, and a gravity sensor 314 may be coupled to the peripheral interface 306. The acceleration sensor 310 can collect acceleration data in the three coordinate axis directions of the body coordinate system. The magnetic field sensor 312 can collect magnetic field data (magnetic induction intensity) in the three coordinate axis directions of the body coordinate system. The gravity sensor 314 can collect gravity data on the three coordinate axes of the body coordinate system. The above sensors can facilitate functions such as step counting, orientation, and intelligent switching between portrait and landscape screens. Other sensors 316 can also be connected to the peripheral interface 306, such as a positioning system (e.g., a GPS receiver), a temperature sensor, a biometric sensor, or other sensing devices, which can thus help implement related functions.

[0042] The camera subsystem 320 and the optical sensor 322 can be used to facilitate the implementation of camera functions such as recording photos and video clips, where the camera subsystem and the optical sensor can be, for example, a charge-coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) optical sensor. Communication functions can be facilitated by one or more wireless communication subsystems 324, where the wireless communication subsystem may include a radio frequency receiver and transmitter and / or an optical (e.g., infrared) receiver and transmitter. The specific design and implementation of the wireless communication subsystem 324 may depend on one or more communication networks supported by the mobile terminal 300. For example, the mobile terminal 300 may include a wireless communication subsystem 324 designed to support LTE, 3G, GSM networks, GPRS networks, EDGE networks, Wi-Fi or WiMax networks, and BluetoothTM networks.

[0043] The audio subsystem 326 can be coupled to a speaker 328 and a microphone 330 to assist in implementing voice-enabled functions such as speech recognition, speech reproduction, digital recording, and telephone functions. The I / O subsystem 340 can include a touchscreen controller 342 and / or one or more other input controllers 344. The touchscreen controller 342 can be coupled to a touchscreen 346. For example, the touchscreen 346 and the touchscreen controller 342 can use any of a variety of touch sensing technologies to detect contact with, movement on, or pausing of the touchscreen, where the sensing technologies include, but are not limited to, capacitive, resistive, infrared, and surface acoustic wave technologies. One or more other input controllers 344 can be coupled to other input / control devices 348, such as one or more buttons, rocker switches, thumb wheels, infrared ports, USB ports, and / or pointing devices such as a stylus. The one or more buttons (not shown) can include up / down buttons for controlling the volume of the speaker 328 and / or the microphone 330.

[0044] The memory interface 302 can be coupled to a memory 350. The memory 350 can include internal memory and external memory. The internal memory can be, for example, static random access memory (SRAM), non-volatile random access memory (NVRAM), etc., but is not limited thereto; the external memory can be, for example, a hard disk, a removable hard disk, a USB flash drive, etc., but is not limited thereto. The memory 350 can store program instructions, which can include an operating system 352 and applications 354. The operating system 352 can be, for example, Android, iOS, Windows Phone, etc., and includes program instructions for handling basic system services and performing hardware-dependent tasks. The memory 350 can also store applications 354, which can include program instructions for implementing various functions desired by users. The applications 354 can be provided independently of the operating system or can be included with the operating system. Additionally, when the applications 354 are installed in the mobile terminal 300, they can also add driver modules to the operating system. When the mobile device is running, the operating system 352 is loaded from the memory 350 and executed by the processor 304. When the applications 354 are running, they are also loaded from the memory 350 and executed by the processor 304. The applications 354 run on top of the operating system and utilize the interfaces provided by the operating system and the underlying hardware to implement various functions desired by users, such as hardware management, instant messaging, web browsing, etc.

[0045] In an embodiment according to the present invention, the mobile terminal 300 can be implemented as Figure 1The mobile terminal 111 or 112 shown, and is configured to execute the recording method 400 according to the present invention. Among them, multiple program instructions for executing the recording method 400 of the present invention are included in the application 354 arranged on the operating system 352, and these program instructions can be executed by the processor 304, so that the recording method 400 of the present invention can be executed in the mobile terminal 300.

[0046] Figure 4 The flowchart of the recording method 400 according to an embodiment of the present invention is shown. The recording method 400 can be executed in a mobile terminal (such as the aforementioned mobile terminal 300). In this embodiment, the mobile terminal 300 can be implemented as Figure 1 the mobile terminal 111 shown. The mobile terminal 111 is in a preset mode and is installed with a recording application. Communication connections are established between the mobile terminal 111, the network server 120, and the file server 130.

[0047] The above-mentioned preset mode can be a management mode preset by the manufacturer of the mobile terminal 111, such as the government-enterprise mode. In this mode, a government-enterprise service API (Application Programming Interface) is provided, and a series of system-level management capabilities are opened, including application control, device control, communication control, system function control, and APN (Access Point Name) configuration management, etc. Through the application control capabilities provided by the government-enterprise mode, the recording application can be kept alive, silently upgraded, and cannot be uninstalled, realizing that the recording application resides in the system permanently and is not suspended by other applications and the system.

[0048] As Figure 4 shown, in step S410, the passenger flow start information sent by the network server 120 is received. According to an embodiment of the present invention, before step S410, the method 400 further includes: the mobile terminal 111 responds to the operation of the user logging in to the recording application, sends a login request to the network server 120 to instruct the network server 120 to log in to the recording application, and returns the corresponding device user information to the mobile terminal 111. Among them, the login request includes the user identification of the user, and the device user information includes the user name corresponding to the user identification.

[0049] After successfully logging in to the recording application, according to an embodiment of the present invention, the method 400 further includes: starting a background service at a preset time interval, and sending a polling request to the network server 120 through the background service to instruct the network server 120 to respond to the polling request and send the passenger flow start information or the passenger flow end information.

[0050] In this embodiment, if the mobile terminal 111 is pre-installed with the Android system, the global timer AlarmManger provided by the Android system can be used to restart the background service every preset time interval, and the polling request is sent through the background service. Among them, the time interval can be preset to 60 seconds.

[0051] According to an embodiment of the present invention, the method 400 further includes: reporting the device status of the mobile terminal 111 to the network server 120 through the background service, where the device status includes at least one of device identification, whether the screen is on, whether the wireless network is used, network type, wireless network information, whether the flight mode is used, and the remaining battery power of the device.

[0052] For the network server 120, when a customer arrives at the store, the operator of the passenger flow management background can enter the customer arrival information in the network server 120 to generate a corresponding passenger flow entity for allocating the passenger flow. Among them, the passenger flow entity includes a passenger flow identifier, arrival time, and remaining recording duration. At this time, the network server 120 can either respond to the polling request sent by the mobile terminal 111 and send the passenger flow start information to the mobile terminal 111, or actively send the passenger flow start information to the mobile terminal 111 after allocating the passenger flow.

[0053] It should be noted that the above passenger flow start information and passenger flow end information both belong to passenger flow-related information, which generally includes a passenger flow identifier and the maximum remaining recording duration, and can be distinguished by adding a passenger flow status flag. For example, the passenger flow status flag of 0 indicates the passenger flow start information, and the passenger flow status flag of 1 indicates the passenger flow end information.

[0054] After the mobile terminal 111 receives the passenger flow start information sent by the network server 120, the method 400 enters step S420. According to the passenger flow start information, the recording application is notified to start recording, and the recording status is sent to the network server 120.

[0055] According to an embodiment of the present invention, the recording application can be notified to start recording according to the passenger flow start information and the recording status can be sent to the network server 120 in the following manner. First, according to the passenger flow start information, it is determined whether there is a passenger flow. If there is a passenger flow, it is judged whether the passenger flow is consistent with the currently received passenger flow. If the passenger flow is consistent with the currently received passenger flow, it is judged whether the recording time corresponding to the passenger flow reaches the maximum recording duration.

[0056] In this embodiment, if the passenger flow start information is not empty, it means that there is currently a passenger flow. If it is empty, it means that there is currently no passenger flow. When judging whether the passenger flow is consistent with the currently received passenger flow, it can be processed by comparing whether the corresponding passenger flow identifiers of the two are the same. If the corresponding passenger flow identifiers of the passenger flow and the currently received passenger flow are the same, it means that the passenger flow is consistent with the currently received passenger flow, otherwise it is inconsistent.

[0057] According to an embodiment of the present invention, the method 400 further includes: if the passenger flow is inconsistent with the current received passenger flow, turn off the recording service and save the corresponding recording file.

[0058] After that, if the recording time corresponding to the passenger flow does not reach the maximum recording duration, determine whether the recording status upload service is enabled. If the recording status upload service is enabled, determine whether the recording service associated with the recording application is available, and send the recording status to the network server 120. If the recording status upload service is not enabled, enable the recording status upload service, determine whether the recording service associated with the recording application is available, and send the recording status to the network server 120. If the recording service is available, start the recording service to start recording.

[0059] Among them, the recording status includes at least one of a passenger flow identifier, whether there is a microphone permission, whether the recording application is in the foreground, available storage space, remaining device power, network type, whether recording is in progress, the reason for not recording, and whether an external peripheral microphone is inserted.

[0060] In this embodiment, the recording status can be sent to the network server 120 regularly through the recording status upload service, for example, once every 60 seconds. When performing a recording operation, the MediaRecorder API (an audio and video recording interface) provided by the Android system can be used to implement the recording service.

[0061] According to an embodiment of the present invention, the method 400 further includes: if the recording time corresponding to the passenger flow reaches the maximum recording duration, turn off the recording service and save the corresponding recording file.

[0062] According to another embodiment of the present invention, the method 400 further includes: if there is no passenger flow, determine whether the recording status upload service is enabled. If the recording status upload service is enabled, stop the recording status upload service, and determine whether the recording application is recording. If the recording application is recording, end the recording and save the corresponding recording file.

[0063] In the network server 120, when the customer leaves the store, the operator of the passenger flow management background can enter the customer leaving store information to end the passenger flow, so that the network server 120 can send the passenger flow end information to the mobile terminal 111. Similarly, on the one hand, the network server 120 can respond to the polling request of the mobile terminal 111 and send the passenger flow end information to it. On the other hand, it can also actively push the passenger flow end information to the mobile terminal 111 after ending the passenger flow.

[0064] Next, in step S430, the mobile terminal 111 receives the passenger flow end information sent by the network server 120. Then, step S440 is executed to notify the recording application to end the recording based on the passenger flow end information and save the corresponding recording file.

[0065] Finally, in step S450, the recording file is uploaded to the file server 130 to instruct the file server 130 to store the recording file, and the storage address of the recording file is sent to the network server 120. According to an embodiment of the present invention, the recording file can be uploaded to the file server 130 in the following manner.

[0066] In this embodiment, the mobile terminal 111 first performs fragmentation processing on the recording file to generate multiple slice files. For example, the fragmentation can be performed according to each slice file size of 1MB. Then, the multiple slice files are uploaded to the file server 130, and a file merge message is sent to the file server 130 to instruct the file server 130 to merge and transcode the received multiple slice files to obtain the recording file.

[0067] After receiving the above multiple slice files, the file server 130 will receive the file merge message sent by the mobile terminal 111, and then merge and transcode the multiple slice files to obtain the complete recording file. The file server 130 will store the recording file and send the storage address of the recording file to the network server 120 to instruct the network server 120 to perform synchronization processing on the storage address. The network server 120 will finally synchronize the storage address for background management.

[0068] After the recording ends, the user can operate the recording application in the mobile terminal 111 to log out the account. At this time, the mobile terminal 111 responds to the user's operation of logging out the recording application, sends a logout request to the network server 120 to instruct the network server 120 to log out the recording application, and returns a logout success notification to the mobile terminal 111. The mobile terminal 111 receives the logout success notification and completes the logout process through the recording application.

[0069] In addition, functions such as login, start recording, and end recording can be opened by providing an external interface and using AIDL (Android Interface Definition Language) inter-process communication to realize the operation and control of the above recording application by external applications.

[0070] According to the recording solution of the embodiments of the present invention, in a preset mode, based on the passenger flow start information sent by the network server, the recording application is notified to start recording, and the recording status is sent to the network server. According to the passenger flow end information sent by the network server, the recording application is notified to end recording, and the corresponding recording file is saved. The recording file is uploaded to the file server to instruct the file server to store the recording file, and the storage address of the recording file is sent to the network server. Among them, the passenger flow start information and the passenger flow end information can be obtained by actively polling the network server by using a timed start of the background service, or can be passively received by the network server pushing and sending them on its own, solving the uncertainty of the passenger flow-related information reaching the mobile terminal.

[0071] The above technical solution can not only control the recording application in the mobile terminal to start recording, end recording, upload the recording file, and feedback the recording status through the network server, fully realizing automated operation, but also, based on the preset mode, significantly improving the running stability of the recording application in the system and the persistence of polling and accessing the network server using the background service, and avoiding problems such as low timeliness caused by low arrival rate of the push on the system.

[0072] The various technologies described here can be implemented in combination with hardware or software, or a combination of them. Thus, the method and device of the present invention, or certain aspects or parts of the method and device of the present invention, can take the form of program code (i.e., instructions) embedded in a tangible medium, such as a removable hard disk, a USB flash drive, a floppy disk, a CD-ROM, or any other machine-readable storage medium. When the program is loaded into a machine such as a computer and executed by the machine, the machine becomes a device for practicing the present invention.

[0073] In the case where the program code is executed on a programmable computer, the mobile terminal generally includes a processor, a processor-readable storage medium (including volatile and non-volatile memories and / or storage elements), at least one input device, and at least one output device. Among them, the memory is configured to store the program code; the processor is configured to execute the recording method of the present invention according to the instructions in the program code stored in the memory.

[0074] By way of example and not limitation, the readable medium includes a readable storage medium and a communication medium. The readable storage medium stores information such as computer-readable instructions, data structures, program modules, or other data. The communication medium generally embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and includes any information delivery medium. A combination of any of the above is also included within the scope of the readable medium.

[0075] In the specification provided herein, the algorithms and displays are not inherently related to any particular computer, virtual system, or other device. A variety of general-purpose systems may also be used in conjunction with the examples of the present invention. Structures required to construct such systems will be apparent from the above description. In addition, the present invention is not directed to any particular programming language. It should be understood that the teachings of the present invention described herein can be implemented in a variety of programming languages, and the description of a particular language above is for the purpose of disclosing the best mode of the present invention.

[0076] In the specification provided herein, numerous specific details are set forth. It will be understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of the present specification.

[0077] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the foregoing description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together in a single embodiment, figure, or description thereof. However, the disclosed method should not be construed as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all of the features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of the present invention.

[0078] Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in the devices as described in that embodiment, or alternatively may be located in one or more devices different from those of the examples. The modules in the foregoing examples may be combined into one module or further divided into multiple sub-modules.

[0079] Those skilled in the art can understand that the modules in the devices in the embodiments can be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments can be combined into one module or unit or component, and in addition, they can be divided into multiple sub-modules or sub-units or sub-components. Except that at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all the features disclosed in this specification (including the accompanying claims, abstract and drawings) and all the processes or units of any method or device so disclosed. Unless otherwise explicitly stated, each feature disclosed in this specification (including the accompanying claims, abstract and drawings) can be replaced by an alternative feature that provides the same, equivalent or similar purpose.

[0080] In addition, those skilled in the art can understand that although some of the embodiments described herein include certain features included in other embodiments rather than other features, the combination of the features of different embodiments means that it is within the scope of the present invention and forms different embodiments. For example, in the following claims, any one of the claimed embodiments can be used in any combination.

[0081] In addition, some of the embodiments are described herein as a combination of methods or method elements that can be implemented by a processor of a computer system or by other devices that perform the functions. Therefore, a processor having the necessary instructions for implementing the method or method element forms a device for implementing the method or method element. In addition, the elements described herein in the device embodiments are examples of such devices: the device is used to implement the functions performed by the elements for the purpose of implementing the invention.

[0082] As used herein, unless otherwise specified, the use of ordinal numbers "first", "second", "third", etc. to describe ordinary objects only indicates different instances of similar objects, and does not intend to imply that the objects so described must have a given order in terms of time, space, sorting, or in any other way.

[0083] Although the present invention has been described in terms of a limited number of embodiments, those skilled in the art, having the benefit of the foregoing description, will appreciate that other embodiments can be contemplated within the scope of the invention as thus described. In addition, it should be noted that the language used in this specification has been principally selected for readability and instructional purposes and not to limit or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. For the scope of the present invention, the disclosure of the present invention is illustrative, not restrictive, and the scope of the present invention is defined by the appended claims.

Claims

1. A recording method, which is suitable for execution in a mobile terminal. The mobile terminal is in a preset mode and has a recording application installed. Communication connections are established among the mobile terminal, a network server, and a file server. The preset mode is an enterprise-government mode. In the enterprise-government mode, the recording application remains alive, is silently upgraded, and cannot be uninstalled. The method includes: Receiving the passenger flow start information sent by the network server. Specifically, the background service is started at preset time intervals, and a polling request is sent to the network server through the background service to instruct the network server to respond to the polling request and send the passenger flow start information or the passenger flow end information. The mobile terminal is pre-installed with the Android system, and the global timer AlarmManger provided by the Android system is used to restart the background service once every preset time interval, and the polling request is sent through the background service. According to the passenger flow start information, notifying the recording application to start recording and sending the recording status to the network server. Receiving the passenger flow end information sent by the network server. Based on the passenger flow end information, notifying the recording application to end recording and saving the corresponding recording file. Uploading the recording file to the file server to instruct the file server to store the recording file and sending the storage address of the recording file to the network server.

2. The method according to claim 1, further including: Reporting the device status of the mobile terminal to the network server through the background service. The device status includes at least one of device identification, whether the screen is on, whether the wireless network is used, network type, wireless network information, whether the flight mode is used, and the remaining battery power of the device.

3. The method according to claim 1, wherein The step of, according to the passenger flow start information, notifying the recording application to start recording and sending the recording status to the network server includes: Determining whether there is a passenger flow according to the passenger flow start information. If there is the passenger flow, determining whether the passenger flow is consistent with the current received passenger flow. If the passenger flow is consistent with the current received passenger flow, determining whether the recording time corresponding to the passenger flow reaches the maximum recording duration.

4. The method according to claim 3, wherein The step of, according to the passenger flow start information, notifying the recording application to start recording and sending the recording status to the network server includes: If the recording time corresponding to the passenger flow does not reach the maximum recording duration, determining whether the recording status upload service is enabled. If the recording status upload service is enabled, determining whether the recording service associated with the recording application is available and sending the recording status to the network server. If the recording service is available, starting the recording service to start recording.

5. The method according to claim 3 or 4, further including: If there is no such passenger flow, determining whether the recording status upload service is enabled. If the recording status upload service is enabled, stopping the recording status upload service and determining whether the recording application is recording. If the recording application is recording, ending the recording and saving the corresponding recording file.

6. The method according to claim 1, wherein The step of uploading the recording file to the file server includes: Performing sharding processing on the recording file to generate a plurality of shard files; Uploading the plurality of shard files to the file server, and sending a file merging message to the file server to instruct the file server to merge and transcode the received plurality of shard files to obtain the recording file.

7. A recording system, comprising: A network server; A file server, which is communicatively connected to the network server; And A plurality of mobile terminals, each of the plurality of mobile terminals is respectively communicatively connected to the network server and the file server, each mobile terminal is in a preset mode and is installed with a recording application, and is used to perform the method according to any one of claims 1-6 for recording.

8. A mobile terminal, comprising: At least one processor; And A memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, and the program instructions include instructions for performing the method according to any one of claims 1-6.

9. A readable storage medium storing program instructions, when the program instructions are read and executed by a mobile terminal, causing the mobile terminal to execute the method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Signaling obtaining and transmission method and device

    CN106453231A

  • Android APP keep-alive method and system and related equipment

    CN109766177A

  • File uploading method and system

    CN110620890A

  • Method and system for efficiently and completely transmitting online car-hailing travel recording data

    CN114143307A