Data acquisition method and device, storage medium and electronic equipment
By collecting multimedia playback status in preset time slices and generating data packets, it solves the problem of high server pressure in traditional technology, achieves efficient data collection and evaluation, and reduces server computing pressure.
Patent Information
- Application Number
- CN202411039880.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-08
AI Technical Summary
Traditional data burying technology causes excessive pressure on the server in high concurrency scenarios and cannot effectively collect and process a large amount of multimedia playback status data, resulting in low computing pressure and low data analysis efficiency.
Use time slices of preset duration to collect multimedia playback status, and determine the playback progress sequence when the status changes or the time slice ends, generate data packets for server evaluation, and reduce the number of data packet transmissions and server computing pressure.
Constraining the data reporting cycle through time slicing reduces server reception and calculation pressure, reduces the number of data packet transmissions, improves data collection efficiency, and enables effective evaluation of multimedia playback.
Smart Images

Figure CN118748729A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular, to a data acquisition method, device, storage medium and electronic device. Background Art
[0002] In the field of education, video interactive teaching methods such as recording and live broadcasting are already very common. In the process of education and teaching, collecting data related to the client's video consumption behavior, such as the continuous playback of teaching videos and the degree of playback completion, is of great significance for determining the teaching process, teaching quality, and time billing.
[0003] Related technologies usually use traditional data point technology for data collection. Traditional data point technology often sends data information immediately after it is collected, so the higher the collection frequency, the more data is sent. However, a large number of data points put tremendous pressure on the server to collect data. For example, concurrent collection of 10,000 people can often reach thousands of QPS (Queries Per Second). Given that collecting more valid data is of great significance for scenarios such as online teaching, how to collect valid data while reducing server pressure is an urgent problem to be solved. Summary of the invention
[0004] The purpose of the present disclosure is to provide a data collection method, device, storage medium and electronic device to solve the problems existing in the related art.
[0005] In order to achieve the above-mentioned purpose, a first aspect of an embodiment of the present disclosure provides a data collection method, the method comprising: Collect multimedia playback status in time slices according to preset duration; When the playing state of the multimedia changes or the current time slice ends, determining the playing progress sequence of the content played in the current time slice in the multimedia; A data packet is generated based on the play progress sequence, and the data packet is used to be sent to a server to evaluate the play status of the multimedia.
[0006] Optionally, generating a data packet based on the playback progress sequence includes: compressing the playback progress sequence; The data packet is generated based on the compressed play progress sequence and the play status of the played content.
[0007] Optionally, compressing the playback progress sequence includes: Determine the first element and the last element of the playback progress sequence; The first element and the last element are used as the compressed playback progress sequence.
[0008] Optionally, collecting the multimedia playing status according to time slices of preset duration includes: In each of the time slices, the playback status is periodically collected at a preset unit time.
[0009] Optionally, the data collection method further includes: Determine a sequence difference between a first element of the play progress sequence and a last element of the play progress sequence, wherein the sequence difference represents an actual play progress of the multimedia; The generating of the data packet based on the playback progress sequence comprises: The data packet is generated based on the compressed play progress sequence, the play status of the played content, and the sequence difference.
[0010] Optionally, when the playing state of the multimedia changes or the time slice ends, determining the playing progress sequence of the content played in the multimedia in the time slice includes: When the playback state of the multimedia changes, if the current time slice has not ended, return to the step of collecting the playback state of the multimedia until determining the playback progress sequence of the played content of the same playback state in the current time slice in the multimedia when the playback state of the multimedia changes, until the current time slice ends, to obtain a plurality of the playback progress sequences; The data collection method further comprises: Determining a same-state sequence having a same playback state during playback from a plurality of the playback progress sequences; Determine a sequence to be merged that has repeated subsequences in the sequence with the same state; The sequences to be merged are merged into a playback progress sequence.
[0011] Optionally, the playback status includes at least normal playback, playback freeze, the playback progress bar is dragged, and playback is paused.
[0012] According to a second aspect of an embodiment of the present disclosure, a data acquisition device is provided, the device comprising: A collection module, used for collecting multimedia playback status according to time slices of preset duration; A determination module, configured to determine a playback progress sequence of the content played in the multimedia within the current time slice when the playback state of the multimedia changes or the current time slice ends; A generating module is used to generate a data packet based on the play progress sequence, and the data packet is used to be sent to a server to evaluate the play status of the multimedia.
[0013] According to a third aspect of an embodiment of the present disclosure, there is provided a non-temporary computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the data acquisition method described in any one of the first aspects are implemented.
[0014] According to a fourth aspect of an embodiment of the present disclosure, there is provided an electronic device, including: a memory having a computer program stored thereon; A processor is used to execute the computer program in the memory to implement the steps of the data acquisition method described in any one of the first aspects above.
[0015] Through the above technical solution, the multimedia playback status is collected in time slices of preset duration, and when the multimedia playback status changes or the current time slice ends, the playback progress sequence of the played content in the multimedia in this time slice is determined, so that the data reporting cycle can be constrained by the time slice of preset duration, and the playback progress sequence representing multiple continuous state data in the same playback state before the playback state changes can be determined in each data reporting cycle, thereby, the playback progress sequence representing the same playback state can be encapsulated in a data packet and sent as a whole. Compared with the multiple data representing the playback status sent in a discrete manner in the related art, this technical solution of the present application can reduce the number of data packet transmissions and reduce the server receiving pressure. In addition, when the server receives the data packet encapsulated with the playback progress sequence representing the same playback state, there is no need to perform sorting and filtering state operations, thereby reducing the server computing pressure.
[0016] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings: Figure 1 It is a flow chart of a data collection method shown in an exemplary embodiment of the present disclosure.
[0018] Figure 2 It is a block diagram of a data acquisition device shown in an exemplary embodiment of the present disclosure.
[0019] Figure 3 It is a block diagram of an electronic device shown in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0020] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0021] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.
[0022] In the field of education, collecting relevant data such as the length of the teacher's lectures and the students' repeated learning process during the teaching process is of great significance for teaching quality evaluation. When these relevant data are applied to related systems such as quality feedback systems, for multiple teaching processes / supervision processes, a very large amount of collected data is often involved. Dense data description can effectively feedback the quality of teaching / learning.
[0023] Related technologies usually use traditional data point-burying technology for data collection. Traditional data point-burying technology often sends data information immediately after it is collected, with low latency and complete single data, and the server can monitor and calculate in real time. However, as mentioned in the background technology, a large number of data points put tremendous pressure on the server to collect data, and the server's computing pressure is also large. In the process of collecting multimedia playback status, since simple data transmission cannot make the server know the previous state, the state change usually needs to record the previous state. In this case, not only the operation of server filtering status is added, but also local storage is needed to process the collected data. In addition, since the order in which the server receives data is often not exactly the same as the order in which the client sends data, after the server receives the data, it must be calculated after sorting according to regulations on the server side. It can be seen that in the case of huge data volume, the data collection method in the related technology often causes pressure on server data processing and data analysis.
[0024] In view of this, the present disclosure provides a data collection method, device, storage medium and electronic device, which constrain the data reporting cycle by time slices of preset duration, thereby reducing the number of data packet transmissions and alleviating the server receiving pressure. In addition, in each data reporting cycle, the playback progress sequence representing multiple continuous state data in the same playback state before the playback state changes is determined, and encapsulated into a data packet and sent as a whole. Therefore, for the received data packets, the server does not need to perform sorting and filtering state operations, thereby alleviating the server computing pressure.
[0025] Figure 1FIG. 1 is a flow chart of a data collection method shown in an exemplary embodiment of the present disclosure. The data collection method can be applied to an electronic device, wherein the electronic device can be provided as a client. Figure 1 As shown, the data collection method may include the following steps: Step S101 : collecting multimedia playing status according to time slices of preset duration.
[0026] The multimedia may include audio, video, documents and other data carriers related to the continuous data collection problem. The preset duration may be determined according to actual conditions, and the present disclosure does not make any specific limitation on this.
[0027] For multimedia, multiple playback states can be preset according to actual conditions, and the present disclosure does not specifically limit this. For example, for audio or video, the playback state can at least include normal playback, playback freeze, playback progress bar being dragged, and playback pause, etc.
[0028] In the embodiments of the present disclosure, a preset mark may be used to represent the playback status. For details, reference may be made to related technologies, and the present disclosure does not make any specific limitation on this.
[0029] Step S102: when the playing state of the multimedia changes or the current time slice ends, determining the playing progress sequence of the content played in the current time slice in the multimedia.
[0030] The play progress sequence may represent the sequence corresponding to the play time during multimedia play. Since the play time of multimedia usually changes continuously with the play progress, the elements in the corresponding sequence usually also change continuously. For example, for a video with a total play time of 60 seconds (s), the sequence corresponding to the play time of the video may be [1, 2, 3, ..., 60].
[0031] It should be understood that, since the change in the play state can trigger the collection of the play progress sequence, the played content before the play state changes is usually the same play state, and these same play states are usually continuous. Therefore, mathematical continuity can be used to replace the continuity of the state, that is, a continuous sequence is used to represent multiple continuous state data. For example, the play progress sequence of the played content in the multimedia is used to represent multiple continuous play states, and is encapsulated into a data packet and sent as a whole. Therefore, the server does not need to sort and filter the state operations for the received data packets encapsulated with the play progress sequence representing the same play state, thereby reducing the computing pressure of the server.
[0032] In addition, it is not difficult to understand that if the multimedia playback status does not change before the end of this time slice, then at the end of this time slice, the collection of the playback progress sequence of the content played in this time slice can be triggered, and the corresponding data can be reported to the server on this basis. In this way, the data reporting cycle can be constrained by the preset time slice, the number of data packet transmissions can be reduced, and the server receiving pressure can be reduced.
[0033] Step S103: Generate a data packet based on the play progress sequence, and the data packet is used to send to the server to evaluate the play status of the multimedia.
[0034] The multimedia playing situation may include the multimedia played content, actual playing progress, playing status, etc. In the disclosed embodiment, the playing progress sequence encapsulated in the data packet may at least be used by the server to determine the multimedia played content.
[0035] It is worth noting that the technical solution provided by the embodiment of the present disclosure does not send the multimedia playback status immediately after it is collected, but constrains the data reporting cycle through the configured time slices of preset duration. On this basis, when the multimedia playback status changes or the current time slice ends, the data packet generated based on the playback progress sequence of the content played in the multimedia within the current time slice is sent to the server. In this way, the receiving pressure of the server can be reduced on the basis of realizing the collection of effective data.
[0036] Furthermore, since the data packets received by the server are encapsulated with a play progress sequence representing the same play status and are continuous data, they can be directly used to evaluate the play status of the multimedia without sorting and filtering status operations, thereby reducing the computing pressure on the server.
[0037] In one embodiment, during the process of collecting the multimedia playback status, the multimedia playback status changes multiple times. Therefore, based on each change of the playback status and the determination of the corresponding playback progress sequence, a data packet can be generated based on the determined playback progress sequence, and the data packet can be sent to the server to evaluate the multimedia playback status.
[0038] For example, the multimedia is played for 1-30 seconds under normal playback, then the playback state changes to the playback progress bar being dragged, and then it is played for 40-45 seconds under normal playback, then the playback state changes to the playback progress bar being dragged, and then it is played for 20-45 seconds under normal playback. Thus, the playback progress sequence of the played content in the multimedia can be determined correspondingly each time the playback state changes: A: [1, 2, 3, ..., 30], B: [40, 41, 42, ..., 45], and C: [20, 21, 22, ..., 45].
[0039] It should be noted that the change of multimedia playback status can trigger the determination of the playback progress sequence and the sending of the corresponding generated data packet, so the playback progress sequences A to C determined in the above example can be reported three times.
[0040] In a possible implementation, after receiving the play progress sequences A-C, the server may connect the play progress sequences A-C end to end and remove duplicate elements to obtain a final play progress sequence [1, 2, 3, ..., 45].
[0041] Optionally, generating a data packet based on the play progress sequence in the above step S103 may include: Compress the playback progress sequence; Generate data packets based on the compressed playback progress sequence.
[0042] It should be noted that, since the elements of the playback progress sequence collected by the embodiment of the present disclosure are usually continuously changing and represent multiple continuous state data, the playback progress sequence can be compressed to reduce the transmitted data packets and further reduce the cost.
[0043] In a possible implementation, the step of compressing the playback progress sequence may include: Determine the first and last elements of the play progress sequence; The first element and the last element are used as the compressed playback progress sequence.
[0044] It is understandable that the play progress sequence represents multiple consecutive identical play states, so the time attribute and / or length attribute in the play progress sequence can be discretized, and only the mathematical marks at the beginning and end of the play progress sequence are obtained, thereby forming compression.
[0045] For example, data collection is performed for a video with a preset duration of 60 seconds in a time slice. If the playback status of the video does not change before the end of this time slice, then at the end of this time slice, the collection of the playback progress sequence of the content played in this time slice can be triggered, thereby obtaining a playback progress sequence [1, 2, 3, ..., 60]. On this basis, the first element of the playback progress sequence, that is, 1, and the last element of the playback progress sequence, that is, 60, can be determined. Thus, a compressed playback progress sequence [1-60] can be obtained.
[0046] It should also be noted that the technical solution provided by the embodiment of the present disclosure can use the playback state of the played content as the playback state corresponding to the determined playback progress sequence.
[0047] For example, for the play progress sequences A~C determined in the above example, the play status of the played contents corresponding to these sequences is normal, so the play status can be added to the play progress sequences A~C in the form of play status mark, and the play progress sequences A': [1, 2, 3, ..., 30]g, B': [40, 41, 42, ..., 45]g, C': [20, 21, 22, ...45]g are obtained. Among them, g can represent the play status of the play progress sequence A'~C'.
[0048] On this basis, a data packet can be generated based on the compressed play progress sequence and the play status of the played content, and the data packet can be sent to the server to evaluate the play status of the multimedia. On this basis, the server can at least determine the played content of the multimedia and the play status of the played content according to the received data packet.
[0049] For example, for the play progress sequence A'-C' determined in the above example, maximum compression can be performed, and the compressed play progress sequences A': [1-30]g, B': [40-45]g, and C': [20-45]g are reported to the server respectively.
[0050] Optionally, the playback progress sequences A'-C' may be merged on the client to obtain a compressed final playback progress sequence [1-45]g, and report it to the server.
[0051] Optionally, the above step S101 may include: In each time slice, the playback status is collected periodically at a preset unit time.
[0052] The preset unit time may be determined according to actual conditions, and the present disclosure does not specifically limit this. In a possible implementation, the period of collecting the playback status in each time slice may be configured to correspond to the unit time of the multimedia playback time, that is, the preset unit time may be configured as the unit time of the multimedia playback time. For example, when the unit time of the multimedia playback time is 1 second, the preset unit time may be set to 1 second.
[0053] In this way, the playback status collected within this time slice can be made to correspond one-to-one with the playback time of the played content, so that the playback progress sequence of the played content within this time slice in the multimedia can be obtained according to the playback status collected within this time slice, and then the actual playback progress of the multimedia can be determined according to the determined playback progress sequence.
[0054] Optionally, the technical solution provided by the embodiment of the present disclosure may also include: A sequence difference between a first element of a play progress sequence and a last element of the play progress sequence is determined, wherein the sequence difference represents an actual play progress of the multimedia.
[0055] On this basis, generating a data packet based on the play progress sequence in the above step S103 may include: A data packet is generated based on the compressed play progress sequence, the play status of the played content, and the sequence difference.
[0056] Thus, the server can at least determine the played content, actual play progress, and play status of the played content of the multimedia according to the received data packet.
[0057] Optionally, the above step S102 may include: When the playback status of the multimedia changes, if the current time slice has not ended, return to the step of collecting the playback status of the multimedia and determining the playback progress sequence of the content played in the current time slice in the multimedia when the playback status of the multimedia changes, until the current time slice ends, and obtain multiple playback progress sequences.
[0058] It is understandable that the data reporting cycle can be constrained by a time slice of a preset duration. Therefore, the steps of collecting the multimedia playback status and determining the playback progress sequence corresponding to the played content when the multimedia playback status changes can be performed multiple times before the end of this time slice. On this basis, for the played content that appears in multiple playback states within this time slice, the playback progress sequence corresponding to the multiple playback states can be obtained.
[0059] It is not difficult to understand that further processing can be performed on the same progress sequence with the same playback status to reduce the transmitted data packets and further reduce the cost.
[0060] Optionally, the technical solution provided by the embodiment of the present disclosure may also include: Determine, from a plurality of playback progress sequences, a same-state sequence having a same playback state during playback; Determine the sequence to be merged that has repeated subsequences in the same state sequence; Merge the sequences to be merged into a playback progress sequence.
[0061] The repeated subsequence may be a subsequence with the same elements in a sequence with the same state.
[0062] In one embodiment, the multimedia playback state changes multiple times in this time slice, and based on this, the following playback progress sequences D: [1-30]g, E: [40-45]b, F: [20-40]g are determined according to the playback time of the played content and the playback state during playback. Among them, g can represent the playback state corresponding to sequence D and sequence F, and b can represent the playback state corresponding to sequence E.
[0063] On this basis, the same-state sequence D and the same-state sequence F with the same playback state during playback can be determined from the playback progress sequence D~F, and it can be determined that there is a repeated subsequence [20-30]g between the same-state sequence D and the same-state sequence F. Therefore, in a possible implementation, the same-state sequence D and the same-state sequence F can be used as sequences to be merged, and merged to obtain a playback progress sequence [1-40]g.
[0064] It is understandable that the client can report the merged play progress sequence [1-40]g and E: [40-45]b at the end of this time slice. In this way, by merging the sequences to be merged with repeated subsequences, the data packet can be further reduced, thereby reducing the cost.
[0065] In another embodiment, the playback status of the multimedia changes multiple times within this time slice, and on this basis, the following playback progress sequence G: [1-10]g, H: [15-25]b, I: [20-40]g is determined according to the playback time of the played content and the playback status during playback.
[0066] On this basis, although the same state sequence G and the same state sequence F with the same playback state can be determined from the playback progress sequence G~I, the same state sequence G and the same state sequence F do not have repeated subsequences, so the two sequences cannot be merged. On this basis, the client can report the playback progress sequence G: [1-10]g, H: [15-25]b, I: [20-40]g at the end of this time slice.
[0067] The technical solution provided by the disclosed embodiment is applicable to data collection services with data continuity, and can further be applied to data collection services that can be assigned data status tags. In addition, the disclosed embodiment can also effectively compress the collected data. In one possible implementation, 10-30 times of data compression can be achieved. The disclosed embodiment has made effective improvements to data collection and data compression, and the collection frequency can be adjusted according to needs without losing data details. In addition, the client can effectively share the server computing power, saving server computing and recognition processes, thereby significantly reducing the collection cost pressure.
[0068] Through the above technical solution, the multimedia playback status is collected in time slices of preset duration, and when the multimedia playback status changes or the current time slice ends, the playback progress sequence of the played content in the multimedia in this time slice is determined, so that the data reporting cycle can be constrained by the time slice of preset duration, and the playback progress sequence representing multiple continuous state data in the same playback state before the playback state changes can be determined in each data reporting cycle, thereby, the playback progress sequence representing the same playback state can be encapsulated in a data packet and sent as a whole. Compared with the multiple data representing the playback status sent in a discrete manner in the related art, this technical solution of the present application can reduce the number of data packet transmissions and reduce the server receiving pressure. In addition, when the server receives the data packet encapsulated with the playback progress sequence representing the same playback state, there is no need to perform sorting and filtering state operations, thereby reducing the server computing pressure.
[0069] Based on the same inventive concept, the present disclosure also provides a data acquisition device. Figure 2 FIG. 1 is a block diagram of a data acquisition device according to an exemplary embodiment of the present disclosure. Figure 2 As shown, the data acquisition device 200 includes: The acquisition module 201 is used to acquire the multimedia playing status according to the time slices of preset duration; The determination module 202 is used to determine the play progress sequence of the content played in the multimedia in the current time slice when the play state of the multimedia changes or the current time slice ends; The generating module 203 is used to generate a data packet based on the playing progress sequence, and the data packet is used to be sent to the server to evaluate the playing status of the multimedia.
[0070] Through the above technical solution, the multimedia playback status is collected in time slices of preset duration, and when the multimedia playback status changes or the current time slice ends, the playback progress sequence of the played content in the multimedia in this time slice is determined, so that the data reporting cycle can be constrained by the time slice of preset duration, and the playback progress sequence representing multiple continuous state data in the same playback state before the playback state changes can be determined in each data reporting cycle, thereby, the playback progress sequence representing the same playback state can be encapsulated in a data packet and sent as a whole. Compared with the multiple data representing the playback status sent in a discrete manner in the related art, this technical solution of the present application can reduce the number of data packet transmissions and reduce the server receiving pressure. In addition, when the server receives the data packet encapsulated with the playback progress sequence representing the same playback state, there is no need to perform sorting and filtering state operations, thereby reducing the server computing pressure.
[0071] Optionally, the generating module 203 is used to: compressing the playback progress sequence; The data packet is generated based on the compressed play progress sequence and the play status of the played content.
[0072] Optionally, the generating module 203 is used to: Determine the first element and the last element of the playback progress sequence; The first element and the last element are used as the compressed playback progress sequence.
[0073] Optionally, the acquisition module 201 is used to: In each of the time slices, the playback status is periodically collected at a preset unit time.
[0074] Optionally, the data acquisition device 200 further includes a first determining submodule, and the first determining submodule is used to: Determine a sequence difference between a first element of the play progress sequence and a last element of the play progress sequence, wherein the sequence difference represents an actual play progress of the multimedia; The generation module 203 is used for: The generating of the data packet based on the playback progress sequence comprises: The data packet is generated based on the compressed play progress sequence, the play status of the played content, and the sequence difference.
[0075] Optionally, the determination module 202 is used to: When the playback state of the multimedia changes, if the current time slice has not ended, return to the step of collecting the playback state of the multimedia until determining the playback progress sequence of the content played in the current time slice in the multimedia when the playback state of the multimedia changes, until the current time slice ends, to obtain a plurality of playback progress sequences; The data acquisition device 200 further includes a second determining submodule, which is used to: Determining a same-state sequence having a same playback state during playback from a plurality of the playback progress sequences; Determine a sequence to be merged that has repeated subsequences in the sequence with the same state; The sequences to be merged are merged into a playback progress sequence.
[0076] Optionally, the playback status includes at least normal playback, playback freeze, the playback progress bar is dragged, and playback is paused.
[0077] Regarding the data acquisition device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0078] Figure 3 FIG. 1 is a block diagram of an electronic device 300 according to an exemplary embodiment. Figure 3 As shown, the electronic device 300 may include: a processor 301 , a memory 302 . The electronic device 300 may also include one or more of a multimedia component 303 , an input / output (I / O) interface 304 , and a communication component 305 .
[0079] The processor 301 is used to control the overall operation of the electronic device 300 to complete all or part of the steps in the above-mentioned data collection method. The memory 302 is used to store various types of data to support the operation of the electronic device 300. For example, these data may include instructions for any application or method used to operate on the electronic device 300, and application-related data, such as contact data, messages sent and received, pictures, audio, video, etc. The memory 302 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk. The multimedia component 303 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in the memory 302 or sent through the communication component 305. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 304 provides an interface between the processor 301 and other interface modules, and the other interface modules may be keyboards, mice, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 305 is used for wired or wireless communication between the electronic device 300 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, is not limited here. Therefore, the corresponding communication component 305 may include: Wi-Fi module, Bluetooth module, NFC module, etc.
[0080] In an exemplary embodiment, the electronic device 300 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned data acquisition method.
[0081] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned data collection method are implemented. For example, the computer-readable storage medium can be the above-mentioned memory 302 including program instructions, and the above-mentioned program instructions can be executed by the processor 301 of the electronic device 300 to complete the above-mentioned data collection method.
[0082] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program executable by a programmable device, and the computer program has a code portion for executing the above data collection method when executed by the programmable device.
[0083] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.
[0084] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0085] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.
Claims
1. A data collection method, characterized in that: The method comprises: Collect multimedia playback status in time slices according to preset duration; When the playing state of the multimedia changes or the current time slice ends, determining the playing progress sequence of the content played in the current time slice in the multimedia; A data packet is generated based on the play progress sequence, and the data packet is used to be sent to a server to evaluate the play status of the multimedia.
2. The data collection method according to claim 1, characterized in that: The generating of the data packet based on the playback progress sequence comprises: compressing the playback progress sequence; The data packet is generated based on the compressed play progress sequence and the play status of the played content.
3. The data collection method according to claim 2, characterized in that: The compressing the playback progress sequence comprises: Determine the first element and the last element of the playback progress sequence; The first element and the last element are used as the compressed playback progress sequence.
4. The data collection method according to any one of claims 1 to 3, characterized in that: The step of collecting the multimedia playing status according to the time slices of the preset duration includes: In each of the time slices, the playback status is periodically collected at a preset unit time.
5. The data collection method according to claim 4, characterized in that: The data collection method further comprises: Determine a sequence difference between a first element of the play progress sequence and a last element of the play progress sequence, wherein the sequence difference represents an actual play progress of the multimedia; The generating of the data packet based on the playback progress sequence comprises: The data packet is generated based on the compressed play progress sequence, the play status of the played content, and the sequence difference.
6. The data collection method according to any one of claims 1 to 3, characterized in that: The step of determining the playback progress sequence of the content played in the multimedia within the current time slice when the playback state of the multimedia changes or the current time slice ends includes: When the playback state of the multimedia changes, if the current time slice has not ended, return to the step of collecting the playback state of the multimedia until determining the playback progress sequence of the content played in the current time slice in the multimedia when the playback state of the multimedia changes, until the current time slice ends, to obtain a plurality of playback progress sequences; The data collection method further comprises: Determining a same-state sequence having a same playback state during playback from a plurality of the playback progress sequences; Determine a sequence to be merged that has repeated subsequences in the sequence with the same state; The sequences to be merged are merged into a playback progress sequence.
7. The data collection method according to any one of claims 1 to 3, characterized in that: The playback status includes at least normal playback, playback freeze, the playback progress bar being dragged, and playback pause.
8. A data acquisition device, characterized in that: The data acquisition device comprises: A collection module, used for collecting multimedia playback status according to time slices of preset duration; A determination module, configured to determine a playback progress sequence of the content played in the multimedia within the current time slice when the playback state of the multimedia changes or the current time slice ends; A generating module is used to generate a data packet based on the play progress sequence, and the data packet is used to be sent to a server to evaluate the play status of the multimedia.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the data acquisition method described in any one of claims 1 to 7 are implemented.
10. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the data acquisition method according to any one of claims 1 to 7.
