Polyphonic ringtone music box sequential playing system and method based on distributed cache

By employing distributed caching technology and key-value pair storage in the ringback tone system, the problems of storage efficiency, playback order management, and dynamic updates in traditional ringback tone systems have been solved, achieving efficient and stable playback of multiple ringtones and improving the user experience.

CN120929634APending Publication Date: 2025-11-11CHINA UNICOM WO MUSIC & CULTURE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510769717.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-10
Publication Date
2025-11-11

AI Technical Summary

Technical Problem

Traditional ringback tone systems suffer from low storage efficiency, complex playback order management, and difficulty in dynamic updates when playing multiple ringtones, especially affecting performance in high-concurrency scenarios.

Method used

Distributed caching technology is used to store music box data. The list of ringtone IDs, the current playback index, and the playback strategy are stored in key-value pairs. Atomic operations are used to ensure data consistency and enable users to customize the playback order of multiple ringtones.

Benefits of technology

It improves data storage and access efficiency, ensures system stability and reliability, realizes the personalization and flexibility of ringback tone services, and enhances user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120929634A_ABST
    Figure CN120929634A_ABST
Patent Text Reader

Abstract

The invention relates to a polyphonic ringtone music box sequential playing system and method based on distributed cache, and aims to solve the technical bottleneck of sequential playing of multiple ringtones in an existing polyphonic ringtone system. The system stores music box data through a distributed cache, the storage efficiency is improved in a key-value pair form, and the data consistency and the system stability are ensured by adopting atomic operation and a disaster recovery mechanism. And a user can customize a playing sequence through the interface module to realize personalized polyphonic ringtone service. The system improves the data access efficiency, enhances the user experience, and is suitable for high-concurrency scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of communication technology and distributed data storage technology, specifically to a sequential playback system and method for a ringback tone music box based on distributed caching. Background Technology

[0002] Traditional ringback tone systems typically use a single ringtone playback mode, and users cannot customize the playback order of multiple ringtones. In existing technologies, implementing the rotation of multiple ringtones presents the following problems:

[0003] 1. Low storage efficiency: Ringtone data is usually stored in relational databases, which has low query efficiency and is difficult to support high concurrency scenarios.

[0004] 2. Complex playback order management: The lack of a lightweight data structure for managing playback order results in high state maintenance costs.

[0005] 3. Difficulty in dynamic updates: When users modify the music box content or playback order, the database needs to be updated frequently, which affects system performance. Summary of the Invention

[0006] To achieve the above objectives, the present invention provides the following technical solution: a sequential playback system for a ringback tone music box based on distributed caching, the playback system comprising the following modules:

[0007] User management module, music box storage module, distributed cache, playback control module;

[0008] The user management module is connected to the music box storage module and is used to store or update data when a user creates or modifies a music box.

[0009] The music box storage module is connected to the distributed cache, and the music box data is stored in the distributed cache to enable fast access and updates.

[0010] The playback control module is connected to the distributed cache and is used to read music box data from the distributed cache when playing music and update the playback index after playback is completed.

[0011] Preferably, the system further includes an interface module that provides a user interaction interface, allowing users to interact with the user management module through a mobile application or webpage.

[0012] Preferably, the music box data is stored in a distributed caching system according to a sharding strategy to support high-concurrency read and write operations.

[0013] This invention also provides a method for sequential playback of ringback tone music boxes based on distributed caching, the method comprising the following steps:

[0014] Step S1: Store the music box data in a distributed cache as key-value pairs. The key is the music box ID, and the value is structured data containing a list of ringtone IDs, the current playback index, and the playback strategy.

[0015] Step S2: When a user is called, read the music box data from the distributed cache, obtain the corresponding ringtone ID according to the current playback index, and send a playback request to the media server;

[0016] Step S3: After playback is complete, update the current playback index and write the updated data back to the distributed cache system.

[0017] Preferably, the user management module supports users to upload ringtone files through the client and generate a unique music box ID, while storing the ringtone ID list, initial playback index and playback strategy in a distributed cache.

[0018] Preferably, the playback strategy includes sequential playback, random playback, and loop playback, which can be set and modified by the user management module.

[0019] Preferably, in the step of updating the current playback index, atomic operations are used to ensure data consistency in a multi-threaded environment.

[0020] The present invention has the following beneficial effects:

[0021] This invention improves data storage and access efficiency by storing music box data in key-value pairs in a distributed cache (DCACHE5), and ensures system stability and reliability through atomic operations. Furthermore, through a sequential indexing mechanism, users can customize the playback order of multiple ringtones, achieving personalization and flexibility in the ringback tone service and significantly enhancing the user experience. Thus, it solves the technical bottlenecks of traditional ringback tone systems in terms of storage efficiency, playback order management, and dynamic updates. Attached Figure Description

[0022] Figure 1 A block diagram of a sequential playback system for a ringback tone music box based on distributed caching provided by the present invention;

[0023] Figure 2 A timing diagram of the playback process for a sequential playback method of a ringback tone music box based on distributed caching, provided by the present invention; Detailed Implementation

[0024] The technical solution of one embodiment of the present invention will be clearly and completely described below with reference to the accompanying drawings.

[0025] Please see Figure 1-2This invention provides a sequential playback system for ringback tone music boxes based on distributed caching. The playback system includes the following modules:

[0026] The system includes a user interface module, a user management module, a music box storage module, a distributed cache (DCACHE5), a playback control module, a sound playback module, and a call processing module.

[0027] The interface module (APP / webpage) is directly connected to the user management module for user interaction and data input.

[0028] The user management module is connected to the music box storage module and is used to store or update data when a user creates or modifies a music box.

[0029] The music box storage module is connected to the distributed cache, and the music box data is stored in the distributed cache to enable fast access and updates;

[0030] The playback control module is connected to the distributed cache and is used to read music box data from the distributed cache when playing music and update the playback index after playback is completed.

[0031] The playback module is connected to the playback control module to receive playback commands and execute music playback.

[0032] The call processing module is connected to the playback control module to notify the playback control module to start playing music when a call is received.

[0033] Based on the above-described music box sequential playback system, this invention provides an example of a method for sequential playback of ringback tone music boxes based on distributed caching, which includes the following steps:

[0034] 1. User A creates a music box.

[0035] User action: User A creates a new music box through a mobile application (APP) or web interface.

[0036] User Management Module: After receiving a user's creation request, the user management module generates a unique music box ID (e.g., BOX_001).

[0037] Music Box Storage Module: The user management module transmits the music box ID, the 5 ringtones uploaded by user A (IDs M001 to M005), and the playback strategy (e.g., "sequential playback") to the music box storage module.

[0038] DCACHE5: The music box storage module stores information such as the ringtone ID list, the current playback index (initially 0), and the playback strategy in the distributed cache system DCACHE5 as key-value pairs. The stored data structure is as follows:

[0039] json

[0040] {

[0041] "List of Ringtone IDs":["M001","M002","M003","M004","M005"],

[0042] Current playback index: 0,

[0043] Playback Strategy: Sequential Playback

[0044] }

[0045] Playback control module: During the music box creation process, the playback control module initializes the playback logic and prepares to control music playback according to the playback strategy.

[0046] 2. First Playback

[0047] Call processing: When user B calls user A, the call processing module receives the call request.

[0048] Playback Control Module: The call processing module notifies the playback control module to start playing music. The playback control module reads the data of music box BOX_001 from DCACHE5 and obtains the corresponding ringtone ID (M001) based on the current playback index (index 0).

[0049] Playback Module: The playback control module sends a playback request to the playback module, and the playback module starts playing the ringtone M001.

[0050] Update index: After playback is complete, the playback control module automatically updates the current playback index to 1 and writes the updated data back to DCACHE5.

[0051] 3. Subsequent playback

[0052] Call again: The next time user B calls user A, the call processing module will trigger the playback control module again.

[0053] Playback control module: The playback control module reads the updated music box data from DCACHE5 and obtains the corresponding ringtone ID (M002) based on the new current playback index (index 1).

[0054] Playback module: The playback control module sends a playback request to the playback module, and the playback module starts playing ringtone M002.

[0055] Update Index: After playback is complete, the playback control module updates the current playback index to 2 and writes the updated data back to DCACHE5.

[0056] Loop playback: When the index reaches the end of the ringtone list (index 4), the playback control module plays ringtone M005 and then resets the index to 0 to achieve loop playback.

[0057] As can be seen from the above embodiments, this invention, by storing music box data in key-value pairs in a distributed cache (DCACHE5), not only improves the efficiency of data storage and access but also ensures the stability and reliability of the system through atomic operations. Furthermore, through a sequential indexing mechanism, users can customize the playback order of multiple ringtones, realizing the personalization and flexibility of the ringback tone service and significantly improving the user experience. Thus, it solves the technical bottlenecks of traditional ringback tone systems in terms of storage efficiency, playback order management, and dynamic updates.

[0058] The above description is merely an embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent structural or procedural transformations made based on the content of the present invention's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.

Claims

1. A sequential playback system for ringback tone music boxes based on distributed caching, characterized in that: The playback system includes the following modules: User management module, music box storage module, distributed cache, playback control module; The user management module is connected to the music box storage module and is used to store or update data when a user creates or modifies a music box. The music box storage module is connected to the distributed cache. The music box data is stored in the distributed cache in the form of key-value pairs to enable fast access and updates. The playback control module is connected to the distributed cache and is used to read music box data from the distributed cache when playing music and update the playback index after playback is completed.

2. The sequential playback system for ringback tone music boxes based on distributed caching according to claim 1, characterized in that: The system also includes an interface module, which provides a user interaction interface, allowing users to interact with the user management module through mobile applications or web pages.

3. The sequential playback system for a ringback tone music box based on distributed caching according to claim 1, characterized in that, The music box data is stored in a distributed caching system according to a sharding strategy to support high-concurrency read and write operations.

4. A method for sequential playback of ringback tone music boxes based on distributed caching, characterized in that, The method includes the following steps: Step S1: Store the music box data in a distributed cache as key-value pairs. The key is the music box ID, and the value is structured data containing a list of ringtone IDs, the current playback index, and the playback strategy. Step S2: When a user is called, read the music box data from the distributed cache, obtain the corresponding ringtone ID according to the current playback index, and send a playback request to the media server; Step S3: After playback is complete, update the current playback index and write the updated data back to the distributed cache system.

5. The method for sequential playback of a ringback tone music box based on distributed caching according to claim 4, characterized in that, The user management module allows users to upload ringtone files through the client and generate a unique music box ID. At the same time, it stores the ringtone ID list, initial playback index, and playback strategy in a distributed cache.

6. The method for sequential playback of a ringback tone music box based on distributed caching according to claim 4, characterized in that, The playback strategies include sequential playback, random playback, and loop playback, which users can set and modify through the user management module.

7. The method according to claim 4, characterized in that, In the step of updating the current playback index, atomic operations are used to ensure data consistency in a multi-threaded environment.