Storage method, device, readable medium and computing device of audio and video data

By flexibly selecting the storage area for audio and video data based on the number and activity level of user-associated terminals, the problem of the single storage method in existing technologies is solved, achieving more efficient data storage and management.

CN115657951BActive Publication Date: 2026-04-10HANGZHOU NETEASE CLOUD MUSIC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-31
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

Existing audio and video data storage methods are limited and inflexible, making it impossible to flexibly select storage areas based on the number and activity levels of terminal devices.

Method used

The system determines whether audio and video data should be stored in a cached area or a persistent storage area by considering the number of terminals associated with the user. This includes setting the storage duration and determining active devices, thus enabling flexible data storage.

Benefits of technology

It enriches the storage methods for audio and video data, improves storage flexibility and efficiency, and avoids resource waste and data loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115657951B_ABST
    Figure CN115657951B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a storage method and device of audio and video data, a medium and a computer readable storage medium, the method comprising: receiving a storage request of first audio and video data sent by a first terminal, and determining a user associated with the first terminal according to the storage request; determining a second terminal associated with the user, the first terminal being an arbitrary second terminal; determining a target storage area of the first audio and video data according to the number of the second terminal, and storing the first audio and video data to the target storage area, the target storage area comprising a cache area or a persistent storage area. In the present disclosure, whether the reported audio and video data is stored to the cache area or the persistent storage area is determined by the number of terminals associated with the user, so that the audio and video data can be stored in the cache area or the persistent storage area, the storage mode of the audio and video data is enriched, and the storage flexibility of the audio and video data is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present disclosure relate to the field of audio and video, and more particularly, to a storage method, device, medium and computing device for audio and video data. BACKGROUND

[0002] This section is intended to provide background or context to the embodiments of the present disclosure. The description herein is not admitted to be prior art merely by inclusion in this section.

[0003] Audio and video can be continued between multiple terminals of a user. For example, a user plays an audio and video on a mobile phone, and when using a tablet, the tablet will continue to play the audio and video on the mobile phone.

[0004] To achieve cross-terminal continuation of audio and video between multiple terminals, audio and video data of each terminal needs to be reported to a server for storage, and other terminals obtain the audio and video data from the server as needed.

[0005] In an exemplary technology, the data reported by each terminal is stored persistently, and when other terminals obtain the audio and video data, the persistently stored audio and video data is downloaded, that is, the audio and video data is only stored in the persistent storage area. This storage method is single and inflexible. SUMMARY

[0006] The present disclosure provides a storage method, device, medium and computing device for audio and video data to solve the problem of single and inflexible storage of audio and video data.

[0007] In a first aspect of the embodiments of the present disclosure, a storage method for audio and video data is provided, comprising: receiving a storage request of first audio and video data sent by a first terminal, and determining a user associated with the first terminal according to the storage request; determining a second terminal associated with the user, the first terminal being an arbitrary second terminal; determining a target storage area of the first audio and video data according to the number of the second terminals, and storing the first audio and video data to the target storage area, the target storage area comprising a cache area or a persistent storage area.

[0008] In an embodiment of the present disclosure, the determining of the target storage area of the first audio and video data according to the number of the second terminals comprises:

[0009] obtaining a comparison result between the number of the second terminals and a preset number;

[0010] determining the target storage area of the first audio and video data according to the comparison result.

[0011] In another embodiment of the present disclosure, the determining the target storage region of the first audio-video data according to the comparison result comprises:

[0012] In response to the comparison result being that the number of the second terminals is less than or equal to a preset number, determining the cache region as the target storage region;

[0013] In response to the comparison result being that the number of the second terminals is greater than a preset number, determining the persistent storage region as the target storage region.

[0014] In another embodiment of the present disclosure, the target storage region is a persistent storage region, and after the storing the first audio-video data into the target storage region, the method further comprises:

[0015] storing second audio-video data stored in the cache region by the second terminal into the persistent storage region, and deleting the second audio-video data from the cache region.

[0016] In another embodiment of the present disclosure, the determining the comparison result between the number of the second terminals and a preset number comprises:

[0017] determining a position of a user identifier corresponding to the user in a preset bitmap;

[0018] obtaining a value corresponding to the position, and determining the comparison result between the number of the second terminals and a preset number according to the value.

[0019] In another embodiment of the present disclosure, the target storage region is a cache region, and the storing the first audio-video data into the target storage region further comprises:

[0020] setting a storage duration of the first audio-video data in the target storage region.

[0021] In another embodiment of the present disclosure, after the setting the storage duration of the first audio-video data in the target storage region, the method further comprises:

[0022] in response to the actual storage duration of the first audio-video data exceeding the set storage duration, deleting the first audio-video data from the target storage region.

[0023] In another embodiment of the present disclosure, after the storing the first audio-video data into the target storage region, the method further comprises:

[0024] receiving login information sent by a third terminal;

[0025] In response to determining that the third terminal is associated with the user according to the login information, the first audio and video data stored in the target storage area is sent to the third terminal.

[0026] In another embodiment of the present disclosure, the second terminal is a terminal with an interval duration less than a preset duration, the interval duration being an interval duration between a time point when the second terminal logs in an audio and video application last time and a current time point.

[0027] In a second aspect of the embodiments of the present disclosure, a storage device of audio and video data is provided, comprising:

[0028] A first receiving module is configured to receive a storage request of first audio and video data sent by a first terminal, and determine a user associated with the first terminal according to the storage request.

[0029] A determining module is configured to determine a second terminal associated with the user, the first terminal being an arbitrary second terminal.

[0030] The determining module is further configured to determine a target storage area of the first audio and video data according to a number of the second terminals, and store the first audio and video data in the target storage area, the target storage area comprising a cache area or a persistent storage area.

[0031] In an embodiment of the present disclosure, the determining module comprises:

[0032] A obtaining unit is configured to obtain a comparison result between the number of the second terminals and a preset number.

[0033] A determining unit is configured to determine the target storage area of the first audio and video data according to the comparison result.

[0034] In another embodiment of the present disclosure, the determining unit comprises:

[0035] A first determining subunit is configured to determine the cache area as the target storage area in response to the comparison result being that the number of the second terminals is less than or equal to the preset number.

[0036] The first determining subunit is configured to determine the persistent storage area as the target storage area in response to the comparison result being that the number of the second terminals is greater than the preset number.

[0037] In another embodiment of the present disclosure, the first determining unit comprises:

[0038] a storage subunit, configured to store second audio and video data stored by the second terminal in the cache area into the persistent storage area after determining the persistent storage area as the target storage area, and delete the second audio and video data from the cache area.

[0039] In another embodiment of the present disclosure, the acquisition unit comprises:

[0040] a second determination subunit, configured to determine a position of the user identifier corresponding to the user in a preset bitmap;

[0041] an acquisition subunit, configured to acquire a value corresponding to the position, and determine a comparison result between the number of the second terminal and a preset number according to the value.

[0042] In another embodiment of the present disclosure, the determination module further comprises:

[0043] a setting unit, configured to set a storage duration of the first audio and video data in the target storage area.

[0044] In another embodiment of the present disclosure, the determination module further comprises:

[0045] a deletion unit, configured to delete the first audio and video data from the target storage area after setting the storage duration of the first audio and video data in the target storage area, and in response to an actual storage duration of the first audio and video data exceeding the set storage duration.

[0046] In another embodiment of the present disclosure, further comprising:

[0047] a second receiving module, configured to receive login information sent by a third terminal after storing the first audio and video data into the target storage area.

[0048] a storage module, configured to send the first audio and video data stored in the target storage area to the third terminal in response to determining that the third terminal is associated with the user according to the login information.

[0049] In another embodiment of the present disclosure, the second terminal is a terminal with an interval duration less than a preset duration, and the interval duration is an interval duration between a time point when the second terminal logs in an audio and video application last time and a current time point.

[0050] In a third aspect of the embodiments of the present disclosure, a medium is provided, comprising: computer execution instructions, which are used to implement the audio and video data storage method as described above when executed by a processor.

[0051] In a fourth aspect of the embodiments of the present disclosure, a computing device is provided, comprising:

[0052] a memory and a processor;

[0053] the memory stores computer-executed instructions;

[0054] the processor executes the computer-executed instructions stored by the memory, so that the processor executes the storage method of audio and video data as described above.

[0055] In the embodiments of the present disclosure, whether the reported audio and video data is stored in a cache area or a persistent storage area is determined by the number of terminals associated with the user, so that the audio and video data can be stored in the cache area or the persistent storage area, the storage method of the audio and video data is enriched, and the storage flexibility of the audio and video data is improved. BRIEF DESCRIPTION OF DRAWINGS

[0056] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will be more apparent from the following detailed description taken in conjunction with the accompanying drawings, in which:

[0057] Figure 1 A schematic diagram of an application scenario of the storage method of audio and video data according to an embodiment of the present disclosure is schematically shown;

[0058] Figure 2 A schematic diagram of a flow according to an embodiment of the present disclosure is schematically shown;

[0059] Figure 3 A schematic diagram of a flow according to another embodiment of the present disclosure is schematically shown;

[0060] Figure 4 A schematic diagram of a flow according to still another embodiment of the present disclosure is schematically shown;

[0061] Figure 5 A schematic diagram of a flow according to yet another embodiment of the present disclosure is schematically shown;

[0062] Figure 6 A schematic diagram of a flow according to still another embodiment of the present disclosure is schematically shown;

[0063] Figure 7 A schematic diagram of a program product provided according to an embodiment of the present disclosure is schematically shown;

[0064] Figure 8 A structural schematic diagram of a storage device of audio and video data provided according to an embodiment of the present disclosure is schematically shown;

[0065] Figure 9 A structural schematic diagram of a computing device provided according to an embodiment of the present disclosure is schematically shown.

[0066] In the drawings, identical or similar reference numerals denote identical or similar elements throughout. DETAILED DESCRIPTION

[0067] The principles and spirits of the present disclosure will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are given only to enable those skilled in the art to better understand and implement the present disclosure, and in no way limit the scope of the present disclosure. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0068] Those skilled in the art understand that the embodiments of the present disclosure can be implemented as a system, device, apparatus, method or computer program product. Therefore, the present disclosure can be embodied in the form of a complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.

[0069] According to the embodiments of the present disclosure, a storage method, device, medium and computing device of audio and video data are provided.

[0070] In addition, any number of elements in the drawings is used for illustration only and not limitation, and any naming is only for distinction and does not have any limiting meaning.

[0071] In addition, the data involved in the present disclosure can be data authorized by the user or fully authorized by all parties, and the collection, dissemination, use, etc. of the data meet the requirements of relevant national laws and regulations. The embodiments of the present disclosure can be combined with each other.

[0072] The principles and spirits of the present disclosure will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are given only to enable those skilled in the art to better understand and implement the present disclosure, and in no way limit the scope of the present disclosure. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art. SUMMARY

[0074] The audio and video data is implemented between multiple terminal devices to realize cross-terminal continuous playback streaming, and the audio and video data of each terminal needs to be reported to the server for storage, and other terminals can obtain the audio and video data from the server according to needs.

[0075] The inventors of the present patent find that the data reported by each terminal is stored persistently, and the persistently stored audio and video data is downloaded when other terminals obtain the audio and video data, that is, the audio and video data is only stored in the persistent storage area. This storage method is single and inflexible.

[0076] The patent inventor conceives that the audio and video data reported is stored in the cache area or the persistent storage area by determining whether the audio and video data is stored in the cache area or the persistent storage area according to the number of the terminals associated with the user, so that the audio and video data can be stored in the cache area or the persistent storage area, the storage mode of the audio and video data is enriched, and the storage flexibility of the audio and video data is improved.

[0077] OVERVIEW OF APPLICATION SCENARIOS

[0078] Firstly, refer to Figure 1 , Figure 1 The figure is a schematic diagram of an application scenario of the audio and video data storage method of the embodiment of the present disclosure. The audio and video data storage device 100 is in communication connection with the terminal device 200 associated with the user. The audio and video data storage device 100 can be a server, a computer or the like, and the terminal device 200 can be a mobile phone, a tablet computer or the like. The terminal device 200 sends a storage request to the audio and video data storage device 100 in the process of playing the audio and video data, and the storage request includes the currently played audio and video data. The audio and video data storage device 100 determines a target area in the cache area 110 or the persistent storage area 120 based on the number of the terminal devices 200 associated with the user, and then stores the audio and video data in the target area. For example, the audio and video data storage device 100 determines the cache area 110 as the target area based on the data amount of the terminal devices 200 associated with the user, and then stores the audio and video data in the cache area 110.

[0079] Exemplary Method

[0080] Next, the audio and video data storage method according to the exemplary embodiment of the present disclosure will be described with reference to the application scenario of Figure 1 and Figures 2-6 It should be noted that the above application scenario is only shown for the purpose of facilitating the understanding of the spirit and principles of the present disclosure, and the embodiments of the present disclosure are not limited in this respect. On the contrary, the embodiments of the present disclosure can be applied to any applicable scenario.

[0081] Refer to Figure 2 , Figure 2 The figure is a flowchart of an embodiment of the audio and video data storage method provided by the embodiment of the present disclosure, and the audio and video data storage method includes the following steps.

[0082] In step S201, the storage request of the first audio and video data sent by the first terminal is received, and the user associated with the first terminal is determined according to the storage request.

[0083] In the embodiment, the execution subject is the audio and video data storage device, and for the purpose of facilitating the description, the device is used to represent the audio and video data storage device hereinafter. The device can be a server or the like having a large data storage capacity.

[0084] The first terminal reports the played audio and video data to the device in the process of playing the audio and video data, so that the device stores the audio and video data. The audio and video data refers to the audio or video played by the first terminal. The first terminal is a terminal device associated with the user, for example, a mobile phone, a tablet, etc. of the user. When reporting the audio and video data, the first terminal obtains the device identifier of the first terminal, generates a storage request based on the device identifier and the currently played audio and video data, and sends the storage request to the device.

[0085] The first terminal is bound to the user, and the binding relationship is realized through the association relationship between the device identifier of the first terminal and the user identifier corresponding to the user, and the device stores the association relationship. After receiving the storage request, the device analyzes the storage request to obtain the device identifier of the first terminal, and determines the user identifier of the user associated with the first terminal based on the device identifier and the stored association relationship. The user identifier is, for example, the account of the user, the identity information of the user, or the biological characteristics of the user, etc.

[0086] Step S202, determine the second terminal associated with the user, and the first terminal is an arbitrary second terminal.

[0087] The user may be associated with multiple terminals, and the multiple terminals associated with the user are defined as the second terminal. After obtaining the user identifier, the device determines the device identifier associated with the user identifier in the stored association relationship, and the terminal corresponding to each device identifier is the second terminal associated with the user. For example, the user has a mobile phone, a computer and a tablet, and the user can associate the mobile phone, the computer and the tablet. The second terminal associated with the user includes the first terminal, that is, the first terminal is an arbitrary second terminal.

[0088] Step S203, determine the target storage area of the first audio and video data according to the number of second terminals, and store the first audio and video data to the target storage area. The target storage area includes a cache area or a persistent storage area.

[0089] The device counts the number of second terminals, and determines the target storage area of the first audio and video data according to the data. The first audio and video data is the currently played audio and video data of the first terminal. The device is provided with a cache area and a persistent storage area, and the target area can be a cache area or a persistent storage area.

[0090] When the user is associated with a large number of second terminals, it can be determined that the audio and video data reported by the first terminal has a high probability of being played on other terminals associated with the user. Since the data stored in the persistent storage area is not easy to lose, the persistent storage area can be used as the target storage area, so that the other terminals associated with the user can extract the audio and video data from the persistent storage area for playback. When the user is associated with a small number of second terminals, it can be determined that the audio and video data reported by the first terminal has a small probability of being played on other terminals associated with the user, so the playback of the audio and video data is uncertain. Therefore, the cache area with a storage time limit can be used as the target storage area, so as to avoid occupying the storage space of the persistent storage area, and ensure the playback of the audio and video data within the storage time limit of the cache area.

[0091] Further, there may be inactive devices among the terminals associated with the user. Inactive devices refer to devices that the user has not logged in for a long time. For example, the user is associated with a computer, but the user has not logged in to the computer to play audio and video data for a long time, so it can be determined that the computer is an inactive device. As can be seen, the possibility of playing audio and video data on an inactive device is small. Therefore, in this embodiment, active devices are determined among the terminal devices associated with the user, and the active devices are determined as the second terminals associated with the user. Active devices refer to terminals with an interval time length less than a preset time length, and the interval time length is the interval time length between the time point when the device last logged in to the audio and video application and the current time point, that is, the second terminal is a terminal with an interval time length less than a preset time length.

[0092] It should be noted that the audio and video data stored in the target storage area includes at least one of audio resources, video resources, an identifier of the audio, an identifier of the video, a played time of the audio, and a played time of the video. The audio resources refer to the playable audio uploaded by the first terminal, and the video resources refer to the playable video uploaded by the first terminal.

[0093] In this embodiment, whether the reported audio and video data is stored in the cache area or the persistent storage area is determined by the number of terminals associated with the user, so that the audio and video data can be stored in the cache area or the persistent storage area, which enriches the storage method of the audio and video data and improves the storage flexibility of the audio and video data.

[0094] Referring to Figure 3 , Figure 3 An exemplary flowchart of another embodiment of the method for storing audio and video data provided by the embodiments of the present disclosure is shown, which is based on Figure 2 As shown in the embodiment, step S203 includes:

[0095] In step S301, the comparison result between the number of second terminals and the preset number is obtained.

[0096] In the embodiment, the device stores a preset number, which can be any suitable value. For example, the preset number is 1. After obtaining the number of second terminals, the device compares the number with the preset number to obtain a comparison result.

[0097] In step S302, the target storage area of the first audio / video data is determined according to the comparison result.

[0098] The device determines the target storage area of the first audio / video data according to the comparison result. For example, in response to the comparison result that the number of second terminals is less than or equal to the preset number, i.e., the comparison result that the number of second terminals is less than or equal to the preset number, it can be determined that the number of second terminals associated with the user is small, and the possibility of the audio / video data stream reported by the first terminal being transferred to other devices associated with the user for continuous playing is small. Therefore, the cache area is determined as the target storage area, i.e., the first audio / video data is stored in the cache area, so as to avoid occupying the storage space of the persistent storage area.

[0099] In response to the comparison result that the number of second terminals is greater than the preset number, i.e., the comparison result that the number of second terminals is greater than the preset number, it can be determined that the number of second terminals associated with the user is large, and the possibility of the audio / video data stream reported by the first terminal being transferred to other devices associated with the user for continuous playing is large. Therefore, the persistent storage area can be determined as the target storage area, so as to avoid the loss of the first audio / video data causing the first audio / video data being unable to be continuously played on the other devices associated with the user.

[0100] In addition, the number of second terminals associated with the user increases, so that the audio / video data of a part of the second terminals is stored in the cache area. For example, the preset number is 1, when the number of second terminals associated with the user is 1, the audio / video data of the second terminal is stored in the cache area; when the device stores the first audio / video data at the request of the first terminal, the number of terminals associated with the user changes from 1 to 2, the first audio / video data of the first terminal is stored in the persistent storage area, and the second audio / video data of the second terminal is stored in the cache area. Therefore, after storing the first audio / video data in the target storage area, the second audio / video data stored in the cache area by the second terminal is stored in the persistent storage area, so as to avoid the loss of the second audio / video data, and the second audio / video data is deleted from the cache area.

[0101] In the embodiment, the device compares the data of the second terminal with the preset number to obtain a comparison result, so as to accurately determine the target storage area of the first audio / video data based on the comparison result.

[0102] Reference Figure 4 , Figure 4An exemplary flow diagram illustrating another embodiment of the method for storing audio / video data according to an embodiment of the present disclosure is shown in FIG. 5, which is based on Figure 3 In the embodiment shown, step S301 comprises:

[0103] In step S401, the position of the user identifier corresponding to the user in the preset bitmap is determined.

[0104] In this embodiment, the device is provided with a bitmap bitmap, each bit in the bitmap corresponds to a user identifier, and the value corresponding to the bit represents the comparison result of the number of second terminals associated with the user and the preset number. The comparison result includes: the number of second terminals associated with the user is less than or equal to the preset number, and the number of second terminals associated with the user is greater than the preset number. The value of the bit corresponding to the comparison result that the number of second terminals associated with the user is less than or equal to the preset number can be set to 0, and the value of the bit corresponding to the comparison result that the number of second terminals associated with the user is greater than the preset number can be set to 1.

[0105] In this regard, the device determines the position of the user identifier corresponding to the user in the preset bitmap, that is, determines the bit corresponding to the user identifier in the bitmap.

[0106] In step S402, the value corresponding to the position is obtained, and the comparison result between the number of second terminals and the preset number is determined according to the value.

[0107] After determining the position of the user identifier in the bitmap, the device obtains the value corresponding to the position, which is the bit value. The device can obtain the comparison result between the number of second terminals and the preset number based on the value. For example, if the value is 0, the comparison result is that the number of second terminals is less than or equal to the preset number; if the value is 1, the comparison result is that the number of second terminals is greater than the preset number.

[0108] In this embodiment, the device determines the position of the user identifier corresponding to the user in the bitmap, so as to quickly determine the comparison result between the number of second terminals and the preset number according to the value corresponding to the position.

[0109] Referring to Figure 5 , Figure 5 An exemplary flow diagram illustrating another embodiment of the method for storing audio / video data according to an embodiment of the present disclosure is shown in FIG. 5, which is based on Figures 2-4 In any of the embodiments shown, after step S203, the method further comprises:

[0110] In step S501, the storage duration of the first audio / video data in the target storage area is set.

[0111] In the embodiment, the target storage region is the cache region. In order to avoid the cache region storing too much data, the storage duration of the first audio / video data in the cache region needs to be set.

[0112] In setting the storage duration of the first audio / video data, the device detects the actual storage duration of the first audio / video data in time or in real time. In response to the actual storage duration of the first audio / video data exceeding the set storage duration, that is, in detecting that the actual storage duration exceeds the set storage duration, the first audio / video data expires, and the device deletes the first audio / video data from the target storage region.

[0113] In an example, the storage duration of the first audio / video data set in the target storage region can be determined based on the remaining storage space in the cache region. If the remaining storage space in the cache region is large, the storage duration of the first audio / video data set is larger.

[0114] In another example, the storage duration of the first audio / video data set in the target storage region can be set based on the type of the first terminal. For example, the first terminal is a mobile phone, which is a regular portable terminal of the user. The user is unlikely to use other devices such as a tablet to play the first audio / video data. Therefore, the storage duration of the first audio / video data can be set to be small. If the first terminal is a tablet, since the mobile phone is a regular portable terminal of the user, the user is likely to use the mobile phone to continue playing the first audio / video data uploaded by the tablet. Therefore, the storage duration of the first audio / video data can be set to be large. It can be understood that the device can determine the continuation probability of the first audio / video data based on the type of the first terminal. If the continuation probability is greater than a preset probability, the storage duration is set to be greater than a preset storage duration. If the continuation probability is less than or equal to the preset probability, the storage duration is set to be less than or equal to the preset storage duration.

[0115] In the embodiment, when the target storage region is the cache region, the storage duration of the first audio / video data in the target cache region is set, so as to alleviate the storage pressure of the cache region.

[0116] Reference Figure 6 , Figure 6 An example shows a flowchart of another embodiment of the audio / video data storage method provided by the embodiment of the present disclosure, which is based on any of the embodiments shown in Figures 2-5 Based on any of the embodiments shown in

[0117] In step S601, login information sent by the third terminal is received.

[0118] In step S602, in response to determining that the third terminal is associated with the user according to the login information, the first audio / video data is sent to the third terminal.

[0119] In the embodiment, the apparatus determines the user associated with the third terminal based on the login information after receiving the login information sent by the third terminal. Specifically, the login information includes account information of the third terminal logging into the audio-video application, and the user associated with the third terminal can be determined based on the account information.

[0120] When the user associated with the third terminal is the user associated with the first terminal, the first audio-video data stored in the target storage area is sent to the third terminal for continuous playing.

[0121] It should be noted that the third terminal is associated with the user, and it is necessary to determine whether the third terminal is a terminal device newly associated with the user. If the third terminal is a terminal device associated with the user, the apparatus needs to update the comparison result of the second terminal associated with the user and the preset number. If the comparison result changes, that is, the number of the second terminal associated with the user is less than or equal to the preset number and changes to be greater than the preset number, the value corresponding to the comparison result in the bitmap needs to be changed. In addition, if the comparison result changes, the first audio-video data is stored in the cache area, that is, the first audio-video data in the cache area is sent to the third terminal.

[0122] Further, if the target storage area is the cache area and the first audio-video data is expired and deleted in the cache area, the first audio-video data is loaded from the database, and the loaded audio-video data is sent to the third terminal.

[0123] In the embodiment, the apparatus receives the login information sent by the third terminal, and determines that the user associated with the third terminal is the user associated with the first terminal according to the login information, and then sends the first audio-video data stored in the target area to the third terminal for continuous playing.

[0124] Exemplary Medium

[0125] After introducing the method of the example embodiment of the present disclosure, next, with reference to Figure 7 The storage medium of the example embodiment of the present disclosure is described.

[0126] Referring to Figure 7 As shown in the figure, the storage medium 70 stores a program product for implementing the above method according to the embodiment of the present disclosure, which can adopt a portable compact disc read-only memory (CD-ROM) and includes computer execution instructions for making a computing device execute the storage method of the audio-video data provided by the present disclosure. However, the program product of the present disclosure is not limited to this.

[0127] The program product can employ any combination of one or more computer readable media. The computer readable media can be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium include an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0128] The computer readable signal medium can include a computer readable data signal embodied in a carrier wave, or a propagated signal, that is based, at least in part, on the computer executable instructions. The computer readable signal medium can further be a propagated signal, for example, a transmitted Internet packet, or other propagated signal that is based, at least in part, on the computer executable instructions.

[0129] The computer executable instructions can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++, or the like, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer executable instructions can execute entirely on the user's computing device, partly on the user's computing device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device or entirely on the remote computing device or server. In the latter scenario, the remote computing device can be connected to the user's computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computing device, for example, through the Internet using an Internet Service Provider (ISP).

[0130] Exemplary Apparatus

[0131] Having introduced the medium of the exemplary embodiments of the present disclosure, next, the medium of the exemplary embodiments of the present disclosure is described with reference to Figure 8 The storage device of the audio and video data of the exemplary embodiments of the present disclosure is described, which is used to implement the method in any of the above-mentioned storage method embodiments of the audio and video data, and has similar implementation principles and technical effects.

[0132] Reference is made to Figure 8 , Figure 8 The structure schematic diagram of the storage device of the audio and video data provided by the embodiments of the present disclosure is schematically shown.

[0133] As Figure 8As shown, the storage device of the audio and video comprises: a first receiving module 810, configured to receive a storage request of first audio and video data sent by a first terminal, and determine a user associated with the first terminal according to the storage request; a determining module 820, configured to determine a second terminal associated with the user, and the first terminal is an arbitrary second terminal; the determining module 820 is further configured to determine a target storage area of the first audio and video data according to the number of the second terminal, and store the first audio and video data to the target storage area, and the target storage area comprises a cache area or a persistent storage area.

[0134] In an embodiment, the determining module 820 comprises: an obtaining unit, configured to obtain a comparison result between the number of the second terminal and a preset number; a determining unit, configured to determine the target storage area of the first audio and video data according to the comparison result.

[0135] In another embodiment, the determining unit comprises: a first determining subunit, configured to determine the cache area as the target storage area in response to the comparison result that the number of the second terminal is less than or equal to the preset number; and a first determining subunit, configured to determine the persistent storage area as the target storage area in response to the comparison result that the number of the second terminal is greater than the preset number.

[0136] In another embodiment, the first determining unit comprises: a storage subunit, configured to store second audio and video data stored by the second terminal in the cache area to the persistent storage area, and delete the second audio and video data from the cache area after determining the persistent storage area as the target storage area.

[0137] In another embodiment, the obtaining unit comprises: a second determining subunit, configured to determine a position of a user identifier corresponding to the user in a preset bitmap; and an obtaining subunit, configured to obtain a value corresponding to the position, and determine the comparison result between the number of the second terminal and the preset number according to the value.

[0138] In another embodiment, the determining module 820 further comprises: a setting unit, configured to set a storage duration of the first audio and video data in the target storage area.

[0139] In another embodiment, the determining module further comprises: a deletion unit, configured to delete the first audio and video data from the target storage area in response to that the actual storage duration of the first audio and video data exceeds the set storage duration after setting the storage duration of the first audio and video data in the target storage area.

[0140] In another embodiment, further comprising: a second receiving module, configured to receive login information sent by a third terminal after storing the first audio and video data to the target storage area; and a storage module, configured to send the first audio and video data stored in the target storage area to the third terminal in response to determining that the third terminal is associated with the user according to the login information.

[0141] In another embodiment, the second terminal is a terminal with an interval duration less than a preset duration, the interval duration being an interval duration between a time point when the second terminal logs in the audio-video application last time and a current time point.

[0142] Exemplary Computing Device

[0143] After introducing the method, medium and device of the exemplary embodiments of the present disclosure, next, reference is made to Figure 9 The computing device of the exemplary embodiments of the present disclosure is described.

[0144] Figure 9 The displayed computing device 90 is merely an example and should not bring any limitation to the function and use range of the embodiments of the present disclosure. As Figure 9 shown, the computing device 90 is in the form of a general-purpose computing device. The components of the computing device 90 can include but are not limited to: at least one processing unit 901, at least one storage unit 902, a bus 903 connecting different system components (including the processing unit 901 and the storage unit 902). Among them, the at least one storage unit 902 stores computer execution instructions; the at least one processing unit 901 includes a processor, which executes the computer execution instructions to realize the method described above.

[0145] The bus 903 includes a data bus, a control bus and an address bus.

[0146] The storage unit 902 can include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 9021 and / or a cache memory 9022, and can further include a readable medium in the form of a non-volatile memory, such as a read-only memory (ROM) 9023.

[0147] The storage unit 902 can also include programs / utilities 9025 with a set of (at least one) program modules 9024, such as operating systems, one or more application programs, other program modules, and program data, each of which or some combination of which can include the implementation of a network environment.

[0148] The computing device 90 can also communicate with one or more external devices 904 (such as a keyboard, a pointing device, etc.) through an input / output (I / O) interface 905. And the computing device 90 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 906. As Figure 9As shown, the network adapter 906 communicates with other modules of the computing device 900 over the bus 903. It should be appreciated that although not shown, other hardware and / or software modules could be used in conjunction with the computing device 900. These include, but are not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archival storage systems, etc.

[0149] It should be noted that although several units / modules or sub-units / modules of the storage apparatus of audio / video data are mentioned in the foregoing detailed description, such division is merely exemplary and not mandatory. Indeed, according to embodiments of the present disclosure, features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, features and functions of one unit / module described above can be further divided into embodied by multiple units / modules.

[0150] Moreover, while operations of the methods of the present disclosure have been described in a particular order in the drawings, this is not required or implied in any way as to order of performance or that all of the operations be performed to achieve desirable results. Additionally or alternatively, certain steps can be omitted, combined into a single step, and / or separated into multiple steps.

[0151] While the spirit and principles of the present disclosure have been described with reference to several specific embodiments, it is to be understood that the disclosure is not limited to the specific embodiments disclosed and that the division of aspects is not meant to imply that features from these aspects cannot be combined to benefit. The division is merely for ease of presentation. The present disclosure is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the claims appended hereto.

Claims

1. A storage method of audio / video data, characterized by, The method comprises the following steps: receiving a storage request of first audio and video data sent by a first terminal, and determining a user associated with the first terminal according to the storage request; determining a second terminal associated with the user, wherein the first terminal is an arbitrary second terminal; determining a target storage area of the first audio and video data according to the number of second terminals, and storing the first audio and video data into the target storage area, wherein the target storage area comprises a cache area or a persistent storage area; the step of determining the target storage area of the first audio and video data according to the number of second terminals comprises: obtaining a comparison result between the number of second terminals and a preset number; determining the target storage area of the first audio and video data according to the comparison result; the step of determining the target storage area of the first audio and video data according to the comparison result comprises: in response to the comparison result that the number of second terminals is less than or equal to the preset number, determining the cache area as the target storage area; in response to the comparison result that the number of second terminals is greater than the preset number, determining the persistent storage area as the target storage area.

2. The storage method of audio / video data according to claim 1, wherein, the target storage area is a persistent storage area, and after the step of storing the first audio and video data into the target storage area, the method further comprises: storing second audio and video data stored in the cache area by the second terminal into the persistent storage area, and deleting the second audio and video data from the cache area.

3. The method of claim 1, wherein, the step of determining the comparison result between the number of second terminals and the preset number comprises: determining a position of a user identifier corresponding to the user in a preset bitmap; obtaining a value corresponding to the position, and determining the comparison result between the number of second terminals and the preset number according to the value.

4. The method of claim 1, wherein, the target storage area is a cache area, and the step of storing the first audio and video data into the target storage area further comprises: setting a storage duration of the first audio and video data in the target storage area.

5. The method of claim 4, wherein, after the step of setting the storage duration of the first audio and video data in the target storage area, the method further comprises: in response to the actual storage duration of the first audio and video data exceeding the set storage duration, deleting the first audio and video data from the target storage area.

6. The method of claim 1, wherein, after the step of storing the first audio and video data into the target storage area, the method further comprises: receiving login information sent by a third terminal; in response to determining that the third terminal is associated with the user according to the login information, sending the first audio and video data stored in the target storage area to the third terminal.

7. The method according to any one of claims 1 to 6, wherein, the second terminal is a terminal with an interval duration less than a preset duration, and the interval duration is an interval duration between a time point when the second terminal logs into an audio and video application last time and a current time point.

8. A storage apparatus of audiovisual data, characterized by, The method comprises the following steps: a first receiving module, configured to receive a storage request of first audio and video data sent by a first terminal, and determine a user associated with the first terminal according to the storage request; a determining module, configured to determine a second terminal associated with the user, wherein the first terminal is an arbitrary second terminal; a determining module, configured to determine a target storage area of the first audio and video data according to the number of second terminals, and store the first audio and video data into the target storage area, wherein the target storage area comprises a cache area or a persistent storage area; The determining module is further configured to determine a target storage area of the first audio-video data according to the number of the second terminals, and store the first audio-video data into the target storage area, wherein the target storage area includes a cache area or a persistent storage area. The determining module includes: The obtaining unit is configured to obtain a comparison result between the number of the second terminals and a preset number. The determining unit is configured to determine a target storage area of the first audio-video data according to the comparison result. The determining unit includes: The first determining sub-unit is configured to determine the cache area as the target storage area in response to the comparison result that the number of the second terminals is less than or equal to the preset number. The first determining sub-unit is configured to determine the persistent storage area as the target storage area in response to the comparison result that the number of the second terminals is greater than the preset number.

9. The storage device of audio / video data according to claim 8, wherein, The determining unit includes: The storage sub-unit is configured to store second audio-video data stored by the second terminals in the cache area into the persistent storage area and delete the second audio-video data from the cache area after determining the persistent storage area as the target storage area.

10. The storage device of audio / video data according to claim 9, wherein, The obtaining unit includes: The second determining sub-unit is configured to determine a position of a user identifier corresponding to the user in a preset bitmap. The obtaining sub-unit is configured to obtain a value corresponding to the position and determine a comparison result between the number of the second terminals and a preset number according to the value.

11. The storage device of audio / video data according to claim 8, wherein, The determining module further includes: The setting unit is configured to set a storage duration of the first audio-video data in the target storage area.

12. The storage device of audio / video data according to claim 11, wherein, The determining module further includes: The deletion unit is configured to delete the first audio-video data from the target storage area in response to that an actual storage duration of the first audio-video data exceeds the set storage duration after setting the storage duration of the first audio-video data in the target storage area.

13. The storage device of audio / video data according to claim 8, wherein, Further includes: The second receiving module is configured to receive login information sent by a third terminal after storing the first audio-video data into the target storage area. The storage module is configured to send the first audio-video data stored in the target storage area to the third terminal in response to determining that the third terminal is associated with the user according to the login information.

14. The storage device of audiovisual data according to any of claims 8-13, wherein, The second terminal is a terminal with an interval duration less than a preset duration, and the interval duration is an interval duration between a time point when the second terminal logs into an audio-video application last time and a current time point.

15. A readable medium characterized by Includes: Computer execution instructions, when executed by a processor, are used to implement the audio-video data storage method in any one of claims 1 to 7.

16. A computing device, comprising: Includes: A memory and a processor; The memory stores computer execution instructions; The processor executes the computer execution instructions stored in the memory, so that the processor executes the audio-video data storage method in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Seamless continuation of entertainment content

    US9662572B1

  • Data acquisition method and apparatus, electronic device, and computer-readable storage medium

    WO2022206474A1