Computer readable storage medium, multimedia resource recording method and system based on communication software

文档序号:1508797 发布日期:2020-02-07 浏览:44次 中文

阅读说明:本技术 计算机可读存储介质、基于通讯软件的多媒体资源录制方法及系统 (Computer readable storage medium, multimedia resource recording method and system based on communication software ) 是由 姚阔 高敏 于 2018-07-26 设计创作,主要内容包括:本发明实施例提供了一种计算机可读存储介质、基于通讯软件的多媒体资源录制方法及系统,所述方法包括:接收多媒体资源的录制指令;请求通讯软件的开发工具包发送所述录制指令;在接收到录制暂停指令时,请求所述通讯软件的通讯软件服务器生成并保存本地索引数据;请求所述通讯软件服务器根据所述本地索引数据生成通讯软件服务器索引数据,并保存所述通讯软件服务器索引数据;请求本地保存所述通讯软件服务器索引数据。采用所述系统及方法、存储介质,可以降低多媒体资源丢失的风险。(The embodiment of the invention provides a computer readable storage medium, a multimedia resource recording method and a system based on communication software, wherein the method comprises the following steps: receiving a recording instruction of a multimedia resource; requesting a development kit of communication software to send the recording instruction; when a recording pause instruction is received, requesting a communication software server of the communication software to generate and store local index data; requesting the communication software server to generate communication software server index data according to the local index data, and storing the communication software server index data; and requesting to locally store the index data of the communication software server. By adopting the system, the method and the storage medium, the risk of multimedia resource loss can be reduced.)

1. A multimedia resource recording method based on communication software is characterized by comprising the following steps:

receiving a recording instruction of a multimedia resource;

requesting a development kit of communication software to send the recording instruction;

when a recording pause instruction is received, requesting a communication software server of the communication software to generate and store local index data;

requesting the communication software server to generate communication software server index data according to the local index data, and storing the communication software server index data;

and requesting to locally store the index data of the communication software server.

2. The method for recording multimedia resources based on communication software according to claim 1, further comprising:

and recording local index generation state data for generating the local index data state.

3. The method for recording multimedia resources based on communication software as claimed in claim 2, further comprising:

requesting the local saving of the local index generation state data.

4. The method for recording multimedia resources based on communication software as claimed in claim 2, further comprising:

and transmitting the local index generation state data to a resource control bus.

5. The method for recording multimedia resources based on communication software according to claim 1, further comprising:

and recording the server index generation state data for generating the state of the communication software server index data.

6. The method for recording multimedia resources based on communication software as claimed in claim 5, further comprising:

requesting the local saving of the server index to generate state data.

7. The method for recording multimedia resources based on communication software as claimed in claim 5, further comprising:

and when the server index generation state data is failed to be generated, requesting the communication software server to generate the communication software server index data again.

8. The method for recording multimedia resources based on communication software as claimed in claim 5, further comprising:

and transmitting the server index generation state data to a resource control bus.

9. The communication software-based multimedia asset recording method according to any one of claims 1 to 8, wherein in the step of requesting local storage of the communication software server index data, the local server is further configured to:

requesting the local server to generate the index data of the communication software server into an MP3 format resource file, and obtaining the storage index data of the MP3 format resource file.

10. The method for recording multimedia resources based on communication software according to any one of claims 1 to 8, wherein the step of sending the recording instruction by the development kit requesting communication software comprises:

and when the state of the resource control bus is idle, requesting a development kit of the communication software to send a recording instruction of the multimedia resource.

11. A multimedia resource recording method based on communication software is characterized by comprising the following steps:

receiving a recording instruction of a multimedia resource;

requesting a development kit of communication software to send the recording instruction;

when a recording pause instruction is received, requesting a communication software server of the communication software to generate local index data;

and requesting to locally store the local index data.

12. The method for recording multimedia resources based on communication software as claimed in claim 11, further comprising:

requesting a communication software server of the communication software to store the local index data;

requesting the communication software server to generate communication software server index data according to the local index data, and storing the communication software server index data;

and requesting the local storage of the index data of the communication software server.

13. The method for recording multimedia resources based on communication software as claimed in claim 11, further comprising:

and recording local index generation state data for generating the local index data state.

14. The method for recording multimedia resources based on communication software as claimed in claim 13, further comprising:

requesting the local saving of the local index generation state data.

15. The method for recording multimedia resources based on communication software as claimed in claim 13, further comprising:

and transmitting the local index generation state data to a resource control bus.

16. The method for recording multimedia resources based on communication software as claimed in claim 12, further comprising:

and recording the server index generation state data for generating the state of the communication software server index data.

17. The method for recording multimedia resources based on communication software as claimed in claim 16, further comprising:

and requesting the local record of the server index to generate state data.

18. The method for recording multimedia resources based on communication software as claimed in claim 16, further comprising:

and when the server index generation state data is failed to be generated, requesting the communication software server to generate the communication software server index data again.

19. The method for recording multimedia resources based on communication software as claimed in claim 16, further comprising:

and transmitting the server index generation state data to a resource control bus.

20. The method for recording multimedia resources based on communication software according to any of claims 11-19, wherein in the step of requesting local storage of the local index data, the local server is further configured to:

requesting the local server to generate the local index data into an MP3 format resource file, and obtaining storage index data of the MP3 format resource file.

21. The method for recording a multimedia resource based on communication software according to any one of claims 12-19, wherein in the step of requesting local storage of the index data of the communication software server, the local server is further configured to:

requesting the local server to generate the index data of the communication software server into an MP3 format resource file, and obtaining the storage index data of the MP3 format resource file.

22. The method for recording multimedia resources based on communication software according to any one of claims 11-19, wherein the step of sending the recording command by the development kit requesting communication software comprises:

and when the state of the resource control bus is idle, requesting a development kit of the communication software to send a recording instruction of the multimedia resource.

23. A multimedia resource recording system based on communication software is characterized by comprising:

the instruction receiving unit is suitable for receiving a recording instruction of the multimedia resource;

the instruction sending request unit is suitable for requesting a development kit of communication software to send the recording instruction;

the local index data generation and storage request unit is suitable for requesting a communication software server of the communication software to generate and store local index data when receiving a recording pause instruction;

the communication software server index generation and storage request unit is suitable for requesting the communication software server to generate communication software server index data according to the local index data and storing the communication software server index data;

and the local storage request unit of the index data of the communication software server is suitable for requesting the local storage of the index data of the communication software server.

24. A multimedia resource recording system based on communication software is characterized by comprising:

the instruction receiving unit is suitable for receiving a recording instruction of the multimedia resource;

the instruction sending request unit is suitable for requesting a development kit of communication software to send the recording instruction;

the local index data generation request unit is suitable for requesting a communication software server of the communication software to generate local index data when receiving a recording pause instruction;

and the local index data local storage request unit is suitable for requesting local storage of the local index data.

25. The communication software-based multimedia asset recording system of claim 24, further comprising:

the local index data storage request unit is suitable for requesting a communication software server of the communication software to store the local index data;

the communication software server index generation and storage request unit is suitable for requesting the communication software server to generate communication software server index data according to the local index data and storing the communication software server index data;

and the local storage request unit of the index data of the communication software server is suitable for requesting the local storage of the index data of the communication software server.

26. A computer-readable storage medium storing computer-executable instructions, wherein the instructions when executed by a processor implement the method for recording a multimedia asset based on communication software according to any one of claims 1 to 22.

Technical Field

The embodiment of the invention relates to the field of computers, in particular to a computer-readable storage medium, a multimedia resource recording method and a multimedia resource recording system based on communication software.

Background

At present, communication software such as WeChat is a well-known communication and information dissemination tool, and many markup language page links are released through WeChat, so that more people can know and participate in the relevant information.

Based on the needs, part of the tag language page links (such as English spelling teaching) need to establish the contact between different people in a sound recording or video recording mode, and at this time, the tag language page can have the functions of recording and playing sound after being released through communication software such as WeChat.

Since the native markup language page does not have the capability of recording sound, in order to implement the recording function, the recording capability of the underlying machine needs to be called by using the WeChat sdk (software development kit) to solve the problem. While the support of the recording by the WeChat sdk provides only atomic operations, namely: when recording, firstly, the recording capability is called up by means of the WeChat sdk, and one or more sections of local index data (localidd) and audio data are generated, and these local index data (localidd) and audio data are cached in a cache region of the WeChat, but the cache region does not have the capability of long-term storage of the local index data (localidd) subsequently, and once a page is refreshed, data loss is easily caused.

Therefore, how to reduce the risk of losing multimedia recording resources becomes a technical problem which needs to be solved urgently.

Disclosure of Invention

The technical problem to be solved by the embodiments of the present invention is to provide a computer-readable storage medium, a multimedia resource recording method and system based on communication software, so as to reduce the risk of multimedia recording resource loss.

In order to solve the above problem, an embodiment of the present invention provides a multimedia resource recording method based on communication software, including:

receiving a recording instruction of a multimedia resource;

requesting a development kit of communication software to send the recording instruction;

when a recording pause instruction is received, requesting a communication software server of the communication software to generate and store local index data;

requesting the communication software server to generate communication software server index data according to the local index data, and storing the communication software server index data;

and requesting to locally store the index data of the communication software server.

Optionally, the method further comprises:

and recording local index generation state data for generating the local index data state.

Optionally, the method further comprises:

requesting the local saving of the local index generation state data.

Optionally, the method further comprises:

and transmitting the local index generation state data to a resource control bus.

Optionally, the method further comprises:

and recording the server index generation state data for generating the state of the communication software server index data.

Optionally, the method further comprises:

requesting the local saving of the server index to generate state data.

Optionally, the method further comprises:

and when the server index generation state data is failed to be generated, requesting the communication software server to generate the communication software server index data again.

Optionally, the method further comprises:

and transmitting the server index generation state data to a resource control bus.

Optionally, in the step of requesting local storage of the index data of the communication software server, the local storage is a local server, and the method further includes:

requesting the local server to generate the index data of the communication software server into an MP3 format resource file, and obtaining the storage index data of the MP3 format resource file.

Optionally, the step of sending the recording instruction by the development kit requesting the communication software comprises:

and when the state of the resource control bus is idle, requesting a development kit of the communication software to send a recording instruction of the multimedia resource.

In order to solve the above problem, an embodiment of the present invention provides a multimedia resource recording method based on communication software, including:

receiving a recording instruction of a multimedia resource;

requesting a development kit of communication software to send the recording instruction;

when a recording pause instruction is received, requesting a communication software server of the communication software to generate local index data;

and requesting to locally store the local index data.

Optionally, the method further comprises:

requesting a communication software server of the communication software to store the local index data;

requesting the communication software server to generate communication software server index data according to the local index data, and storing the communication software server index data;

and requesting the local storage of the index data of the communication software server.

Optionally, the method further comprises:

and recording local index generation state data for generating the local index data state.

Optionally, the method further comprises:

requesting the local saving of the local index generation state data.

Optionally, the method further comprises:

and transmitting the local index generation state data to a resource control bus.

Optionally, the method further comprises:

and recording the server index generation state data for generating the state of the communication software server index data.

Optionally, the method further comprises:

and requesting the local record of the server index to generate state data.

Optionally, the method further comprises:

and when the server index generation state data is failed to be generated, requesting the communication software server to generate the communication software server index data again.

Optionally, the method further comprises:

and transmitting the server index generation state data to a resource control bus.

Optionally, in the step of requesting local saving of the local index data, the local server is further configured to:

requesting the local server to generate the local index data into an MP3 format resource file, and obtaining storage index data of the MP3 format resource file.

Optionally, in the step of requesting local storage of the index data of the communication software server, the local storage is a local server, and the method further includes:

requesting the local server to generate the index data of the communication software server into an MP3 format resource file, and obtaining the storage index data of the MP3 format resource file.

Optionally, the step of sending the recording instruction by the development kit requesting the communication software comprises:

and when the state of the resource control bus is idle, requesting a development kit of the communication software to send a recording instruction of the multimedia resource.

In order to solve the above problem, an embodiment of the present invention further provides a multimedia resource recording system based on communication software, including:

the instruction receiving unit is suitable for receiving a recording instruction of the multimedia resource;

the instruction sending request unit is suitable for requesting a development kit of communication software to send the recording instruction;

the local index data generation and storage request unit is suitable for requesting a communication software server of the communication software to generate and store local index data when receiving a recording pause instruction;

the communication software server index generation and storage request unit is suitable for requesting the communication software server to generate communication software server index data according to the local index data and storing the communication software server index data;

and the local storage request unit of the index data of the communication software server is suitable for requesting the local storage of the index data of the communication software server.

In order to solve the above problem, an embodiment of the present invention further provides a multimedia resource recording system based on communication software, including:

the instruction receiving unit is suitable for receiving a recording instruction of the multimedia resource;

the instruction sending request unit is suitable for requesting a development kit of communication software to send the recording instruction;

the local index data generation request unit is suitable for requesting a communication software server of the communication software to generate local index data when receiving a recording pause instruction;

and the local index data local storage request unit is suitable for requesting local storage of the local index data.

Further comprising:

the local index data storage request unit is suitable for requesting a communication software server of the communication software to store the local index data;

the communication software server index generation and storage request unit is suitable for requesting the communication software server to generate communication software server index data according to the local index data and storing the communication software server index data;

and the local storage request unit of the index data of the communication software server is suitable for requesting the local storage of the index data of the communication software server.

To solve the above problem, an embodiment of the present invention further provides a computer-readable storage medium, where computer-executable instructions are stored, and when the instructions are executed by a processor, the method for recording a multimedia resource based on communication software according to any one of the above embodiments can be implemented.

Compared with the prior art, the technical scheme of the invention has the following advantages:

the computer readable storage medium, the multimedia resource recording method and the multimedia resource recording system based on the communication software provided by the embodiment of the invention are characterized in that the multimedia resource recording method of the communication software comprises the steps of receiving a recording instruction of multimedia resources; requesting a development kit of communication software to send the recording instruction; when a recording pause instruction is received, requesting a communication software server of the communication software to generate and store local index data; requesting the communication software server to generate communication software server index data according to the local index data, and storing the communication software server index data; and requesting to locally store the index data of the communication software server. Therefore, once the recording pause instruction is received, the communication software server is requested to generate and store the local index data and the communication software server index data, and the local storage of the communication software server index data is requested, so that due to the timeliness of uploading, the recording pause instruction is uploaded in time once the recording pause instruction is received, on one hand, a user does not need to trigger the storage or uploading request based on whether the recording is finished, and the operation of the user is reduced; meanwhile, the problem that all recorded multimedia resource data are lost when a network is cut off or a communication software server is abnormal when a request is sent out if the user triggers a request after recording a plurality of sections under the condition that the user needs to trigger a storage or upload request is avoided, and the method provided by the embodiment of the invention only influences the loss of the last section of multimedia resource due to the timeliness of uploading if the network is cut off or the communication software server is abnormal; and the problem of multimedia resource loss due to misoperation of the user (such as refreshing the page) is also avoided. In addition, the method provided by the embodiment of the invention utilizes the local storage of the index data of the communication software server, and the valid period of the index data of the communication software server can reach several days, so that the valid period of the indexable data resource during playing is prolonged.

In an alternative, in the step of requesting local storage of the communication software server index data, where the local server is a local server, the method and system for recording a multimedia resource based on communication software according to the computer-readable storage medium, provided by the embodiment of the present invention, further include: requesting the local server to generate the index data of the communication software server into an MP3 format resource file, and obtaining the storage index data of the MP3 format resource file. The communication software server index data is generated into the MP3 format resource file by using the local server, the index data can be permanently stored, the data can be operated after the communication software server index data is invalid, and when the multimedia resource needs to be played, the corresponding file only needs to be found according to the storage index data of the MP3 format resource file, and the native markup language page has the capacity of playing the MP3 format multimedia resource, so that when the multimedia resource is played, the data can be directly obtained through the storage index data of the MP3 format resource file for playing, other steps are not needed, and the playing program is simplified.

The computer readable storage medium, the multimedia resource recording method and the system based on the communication software provided by the embodiment of the invention receive the recording instruction of the multimedia resource based on the multimedia resource recording method of the communication software; requesting a development kit of communication software to send the recording instruction; when a recording pause instruction is received, requesting a communication software server of the communication software to generate local index data; and requesting a local cache to store the local index data. Therefore, once the recording pause instruction is received, the communication software server is requested to generate local index data and request the local cache to store the local cache data, so that due to the timeliness of uploading, the local cache data can be uploaded in time once the recording pause instruction is received, on one hand, a user does not need to trigger a storage or uploading request based on whether the recording is finished, and the operation of the user is reduced; meanwhile, the problem that all recorded multimedia resource data are lost when a network is cut off or a communication software server is abnormal when a request is sent out if the user triggers a request after recording a plurality of sections under the condition that the user needs to trigger a storage or upload request is avoided, and the method provided by the embodiment of the invention only influences the loss of the last section of multimedia resource due to the timeliness of uploading if the network is cut off or the communication software server is abnormal; and the problem of multimedia resource loss due to misoperation of the user (such as refreshing the page) is also avoided. In addition, the method provided by the embodiment of the invention stores the local index data by using the local cache, the valid period of the local index data can reach several hours, so that the valid period of the indexable data resource during playing is prolonged, and within several hours, when the local index data needs to be found from the local cache, the corresponding multimedia resource can be directly found for playing, so that within several hours, the transmission flow and the need of the data are greatly reduced, the valid period of the data storage is prolonged, and the resource required by the data transmission is saved.

Drawings

Fig. 1 is a schematic flowchart of a multimedia resource recording method based on communication software according to an embodiment of the present invention;

FIG. 2 is a flowchart illustrating another method for recording multimedia resources based on communication software according to an embodiment of the present invention;

FIG. 3 is a flowchart illustrating another method for recording multimedia resources based on communication software according to an embodiment of the present invention;

FIG. 4 is a flowchart illustrating another method for recording multimedia resources based on communication software according to an embodiment of the present invention;

FIG. 5 is a flowchart illustrating another method for recording multimedia resources based on communication software according to an embodiment of the present invention;

FIG. 6 is a flowchart illustrating another method for recording multimedia resources based on communication software according to an embodiment of the present invention;

fig. 7 is a schematic structural diagram of a multimedia asset recording system based on communication software according to an embodiment of the present invention;

FIG. 8 is a schematic structural diagram of another communication software-based multimedia asset recording system according to an embodiment of the present invention;

FIG. 9 is a schematic structural diagram of another communication software-based multimedia asset recording system according to an embodiment of the present invention;

fig. 10 is a schematic structural diagram of another multimedia asset recording system based on communication software according to an embodiment of the present invention.

Detailed Description

As can be seen from the background art, in the method and system for recording multimedia resources based on communication software in the prior art, the risk of losing multimedia recording resources is high.

In order to reduce the risk of losing multimedia recording resources, the invention provides a computer-readable storage medium, a multimedia resource recording method and a multimedia resource recording system based on communication software. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

Fig. 1 is a flowchart illustrating a multimedia resource recording method based on communication software according to an embodiment of the present invention.

As shown in fig. 1, the method for recording multimedia resources based on communication software according to the embodiment of the present invention includes the following steps:

step S11: and receiving a recording instruction of the multimedia resource.

And receiving a recording instruction of the multimedia resource through the link put in the communication software, and further initiating the recording requirement of the multimedia resource.

Such as: a recording request starting key of multimedia resources is arranged on a link put in the communication software, and when the request needs to be started, a recording person clicks the key to send a recording instruction.

Specifically, the multimedia resource may be an audio resource or a video resource.

Of course, it can be understood that before a specific recording, a recording person first needs to open a corresponding link, and after the system completes initialization, the recording person can receive a subsequent recording instruction.

Step S12: and requesting a development kit of the communication software to send the recording instruction.

After receiving the recording instruction of the multimedia resource, since the link itself does not have the recording function, the subsequent operation needs to be performed by using a development kit of the communication software launched by the link.

And sending a recording instruction by using the development kit to call a recording api (application programming interface), and recording the multimedia resources by using recording hardware equipment (a microphone, a camera and the like).

Step S13: and when receiving a recording pause instruction, requesting a communication software server of the communication software to generate and store local index data.

In the recording process, recording suspension can be triggered, and when a recording suspension instruction is received, the communication software server of the communication software can be automatically requested to generate local index data and store the local index data, so that the storage request is not required to be manually performed, and the timeliness is realized, and the data loss is prevented.

Specifically, the recording pause instruction may be triggered by a recording person, that is, when the recording person thinks that the recording is finished, the recording pause is actively triggered, and the multimedia resource recording method based on the communication software provided by the embodiment of the present invention receives the recording instruction; or may be generated by time setting of communication software, such as: the WeChat sets the longest recording time, and even if the recording personnel do not trigger the recording pause instruction after the time is reached, the multimedia resource recording method based on the communication software provided by the embodiment of the invention can receive the recording instruction and carry out subsequent operation.

In order to ensure that data can be stored in time and cannot be lost, the multimedia resource recording method based on communication software provided by the embodiment of the invention requests the communication software server to generate and store local index data, the local index data is generated to prepare for the subsequent generation of the index data of the communication software server, the local index data is stored, and an index route is provided for the subsequent search during playing.

In addition, it should be noted that the multimedia resource recording method based on communication software according to the embodiment of the present invention describes generation and protection of index data (including local index data and communication software index data) in detail, and specific data of a multimedia resource generated by recording is stored according to a storage function of the communication software itself, so that the corresponding multimedia resource can be found based on the index data, which is not described herein again.

Step S14: and requesting the communication software server to generate communication software server index data according to the local index data, and storing the communication software server index data.

Because the validity period of the index data of the communication software server can reach several days, after the local index data is generated, the multimedia resource recording method based on the communication software provided by the embodiment of the invention requests the communication software server to generate the index data of the communication software server according to the local index data, and stores the index data of the communication software server, so that on one hand, the validity period of the index data when the index data is played again for searching is prolonged, and meanwhile, the index data can be conveniently found when the index data needs to be searched.

Step S15: and requesting to locally store the index data of the communication software server.

The communication software server index data and the local index data are only generated and stored on the communication software server, when the communication software server index data and the local index data need to be played, the playing request is triggered locally, and the corresponding index cannot be found locally.

Specifically, the local storage is at least one of a local server and a local cache, that is, requesting to locally store the index data of the communication software server refers to requesting the local server to store the index data of the communication software server, requesting the local cache to store the communication software server, or requesting the local server and the local cache to store the index data of the communication software server at the same time.

Therefore, based on the multimedia resource recording method based on the communication software provided by the invention, when a recording instruction is received, the recording instruction is sent to a development kit of the communication software, and once the recording pause instruction is received, the communication software server is requested to generate and store local index data and communication software server index data, and the local storage of the communication software server index data is requested, so that due to the timeliness of uploading (once the recording pause instruction is received, the uploading is carried out in time), on one hand, a user does not need to trigger a storage or uploading request based on whether the recording is finished or not, and the operation of the user is reduced; meanwhile, the problem that all recorded multimedia resource data are lost when a network is cut off or a communication software server is abnormal when a request is sent out if the user triggers a request after recording a plurality of sections under the condition that the user needs to trigger a storage or upload request is avoided, and the method provided by the embodiment of the invention only influences the loss of the last section of multimedia resource due to the timeliness of uploading if the network is cut off or the communication software server is abnormal; and the problem of multimedia resource loss due to misoperation of the user (such as refreshing the page) is also avoided. In addition, the method provided by the embodiment of the invention utilizes the local storage of the index data of the communication software server, and the valid period of the index data of the communication software server can reach several days, so that the valid period of the indexable data resource during playing is prolonged.

Referring to fig. 1, in another embodiment, the method for recording multimedia resources based on communication software further includes step S16: and recording local index generation state data for generating the local index data state.

When the communication software server is requested to generate the local index data, in order to know the generation state of the local index data state and grasp whether the generation is completed, the multimedia resource recording method based on the communication software provided by the embodiment of the invention can also record the local index generation state data and know the state in time, so that the condition that the generation progress is not known after the multimedia resource recording method is in the local index generation state for a long time is avoided, the abnormity of the generation state can be discovered in time, and further measures can be taken in time.

After recording the local index state data, in order to find out the local index generation state data in time by locally searching when receiving the play instruction, and to understand the generation situation of the local index data, simplify the search task, and improve the processing efficiency, the multimedia resource recording method based on communication software according to another embodiment of the present invention further includes step S17 of requesting the local storage of the local index generation state data, so that the local index generation state data can be found out in time by locally searching when receiving the play instruction, and the generation situation of the local index data can be understood.

Of course, in addition to recording and locally storing the local index generation status data, in order to ensure the mutual exclusion and serialization requirements when recording the instructions, the execution of the instructions needs to be controlled, and in another embodiment of the present invention, the method further includes step S18: and transmitting the local index generation state data to a resource control bus.

In order to ensure that only one recording instruction is executed and avoid confusion caused by simultaneous execution of a plurality of recording instructions, the multimedia resource recording method based on communication software provided by the embodiment of the invention utilizes the resource control bus to control, ensures that only one instruction is executed, transmits data in a local index generation state to the resource control bus, and ensures that the resource control bus can timely master the execution conditions of each instruction and process, thereby judging whether the resource is available and ensuring the smooth execution of the recording work.

It is understood that, in addition to recording the generation status of the local index data, the generation status of the index data of the communication software server may also be recorded to know the generation status of the index data of the communication software server, and in another embodiment, the method for recording multimedia resources based on communication software according to the present invention further includes step S19: and recording the server index generation state data for generating the state of the communication software server index data.

According to the multimedia resource recording method based on the communication software, the server index generation state data for generating the state of the server index data of the communication software is recorded, the generation state of the server index data of the communication software is known in time, the situation that the server index data is in the generation process for a long time without knowing the specific generation progress is avoided, the abnormity of the generation state can be found in time, and further measures can be taken in time.

Of course, in another specific embodiment, since the generation status of the index data of the communication software server is recorded and the generation condition is known at all times, when the generation status data of the server index is failed, the multimedia resource recording method based on the communication software provided by the embodiment of the present invention may request the communication software server to generate the index data of the communication software server again.

Through multiple attempts, the reliability of the generation of the index data of the communication software server is improved, and the problem of single-time non-generation success is solved.

Of course, in an embodiment, the multimedia resource recording method based on communication software provided by the present invention may include recording the generation status of the local index data and recording the generation status of the communication software server index data.

Similar to the local index data, in addition to recording the server index generated state data, it may also be requested to be saved locally. Referring to fig. 1, in another embodiment, the method for recording multimedia resources based on communication software further includes step S110: requesting the local saving of the server index to generate state data.

After the server index state data is recorded, the server index generation state data is requested to be stored locally, so that when a playing instruction is received, the server index generation state data can be found out locally in time by searching, the generation condition of the server index data of the communication software is known, the searching task is simplified, and the processing efficiency is improved.

In order to satisfy the overall control of the resource control bus on the resource, the multimedia resource recording method of the communication software according to another embodiment of the present invention further includes step S111: and transmitting the server index generation state data to a resource control bus.

In order to ensure that only one recording instruction is executed and avoid confusion caused by simultaneous execution of a plurality of recording instructions, the multimedia resource recording method based on communication software provided by the embodiment of the invention utilizes the resource control bus to control, ensures that only one instruction is executed, transmits data to the resource control bus when the communication software server indexes to generate a state, and ensures that the resource control bus can timely master the execution conditions of each instruction and process, thereby judging whether the resource is available and ensuring the smooth execution of the recording work.

In addition, considering that a link put in the communication software server cannot directly play a related multimedia resource through local index data generated by the communication software server or index data of the communication software server, and a development kit of communication software needs to be invoked, the multimedia resource recording method based on communication software provided by the embodiment of the present invention further requests the local server to generate the index data of the communication software server into a resource file in MP3 format, and specifically refer to fig. 2, where fig. 2 is a schematic flow diagram of another multimedia resource recording method based on communication software according to the embodiment of the present invention.

In this embodiment, the method for recording multimedia resources based on communication software provided by the present invention includes the steps S21, S22, S23 and S24 which are the same as the steps S11-S14, and the step S25 is: and requesting a local server to store the index data of the communication software server, and certainly, also requesting a local cache to store the index data of the communication software server, but necessarily requesting the local server to store the index data of the communication software server, so as to prepare for the subsequent steps.

Further comprising step S26: requesting the local server to generate the index data of the communication software server into an MP3 format resource file, and obtaining the storage index data of the MP3 format resource file.

The communication software server index data is generated into the MP3 format resource file by using the local server, the index data can be permanently stored, the data can be operated after the communication software server index data is invalid, and when the multimedia resource needs to be played, the corresponding file only needs to be found according to the storage index data of the MP3 format resource file, and the native markup language page has the capacity of playing the MP3 format multimedia resource, so that when the multimedia resource is played, the data can be directly obtained through the storage index data of the MP3 format resource file for playing, other steps are not needed, the playing program is simplified, and the multimedia resource does not need to be played through a development kit of communication software.

The specific conversion interval can be adjusted according to the needs, but the conversion needs to be performed within the validity period of the index data of the communication software server, generally within several hours after recording.

As described above, in order to meet the mutual exclusion and serialization requirements of the recording instruction during execution, the local index generation status data and the server index generation status data may be transmitted to the resource control bus to assist the resource control bus in monitoring the completion status thereof, so as to ensure that only one multimedia resource is recorded at the same time, for this reason, reference may be made to fig. 3 in the method for recording a multimedia resource based on communication software according to the embodiment of the present invention, and fig. 3 is a schematic flowchart of another method for recording a multimedia resource based on communication software according to the embodiment of the present invention.

As shown in the figure, in this embodiment, the method for recording multimedia resources based on communication software according to the present invention includes steps S31, S33, S34 and S35 which are the same as the steps S11, S13-S15, and step S32 is: and when the state of the resource control bus is idle, requesting a development kit of the communication software to send a recording instruction of the multimedia resource.

The development kit of the communication software is requested to send the recording instruction only when the state of the resource control bus is idle, otherwise, the recording instruction is not sent, so that only one multimedia resource is ensured when the recording state is subsequently processed simultaneously, and the recording quality of the multimedia resource is also ensured.

In order to reduce the risk of losing multimedia recording resources, an embodiment of the present invention further provides another multimedia resource recording method based on communication software, please refer to fig. 4, where fig. 4 is a schematic flow diagram of another multimedia resource recording method based on communication software according to an embodiment of the present invention, and the method provided by the embodiment of the present invention includes:

step S41: receiving a recording command of the multimedia resource, the detailed information thereof refers to step S11, and will not be described herein.

Step S42: the development kit requesting the communication software sends the recording command, and the detailed information thereof refers to step S12, which is not described herein again.

Step S43: and when receiving a recording pause instruction, requesting a communication software server of the communication software to generate local index data.

The same as step S13, in the recording process, a recording pause is triggered, and the multimedia resource recording method based on communication software according to the embodiment of the present invention automatically requests the communication software server of the communication software to generate and store the local index data when receiving the recording pause instruction, without manually making a storage request, and has timeliness, thereby preventing data loss.

Specifically, the recording pause instruction may be triggered by a recording person, that is, when the recording person thinks that the recording is finished, the recording pause is actively triggered, and the multimedia resource recording method based on the communication software provided by the embodiment of the present invention receives the recording instruction; or may be generated by time setting of communication software, such as: the WeChat sets the longest recording time, and even if the recording personnel do not trigger the recording pause instruction after the time is reached, the multimedia resource recording method based on the communication software provided by the embodiment of the invention can receive the recording instruction and carry out subsequent operation.

Unlike step S13, only the communication software server needs to generate the local index data, but the local index data may be saved, or not saved.

Step S44: and requesting to locally store the local index data.

After the local index data is generated by the communication software server, the local index data is requested to be locally stored, so that when the local index data needs to be played, the playing request is triggered locally, and the corresponding resource can be found directly through the local index data.

Of course, local is also at least one of local server and local cache. If the local cache exists, only the index data needs to be found through the local cache during playing, so that the flow is saved; if the data is stored in the local server, the data needs to be acquired from the local server through the client and then downloaded to the local cache.

Therefore, once the recording pause instruction is received, the communication software server is requested to generate local index data and request the local cache to store the local cache data, so that due to the timeliness of uploading, the local cache data can be uploaded in time once the recording pause instruction is received, on one hand, a user does not need to trigger a storage or uploading request based on whether the recording is finished, and the operation of the user is reduced; meanwhile, the problem that all recorded multimedia resource data are lost when a network is cut off or a communication software server is abnormal when a request is sent out if the user triggers the request after recording a plurality of sections under the condition that the user needs to trigger a storage or upload request is avoided, and the loss of the last section of multimedia resource is only influenced if the network is cut off or the communication software server is abnormal due to the timeliness of uploading; and the problem of multimedia resource loss due to misoperation of the user (such as refreshing the page) is also avoided. In addition, the multimedia resource recording method based on communication software provided by the embodiment of the invention stores the local index data by using the local cache, and the valid period of the local index data can reach several hours, so that the valid period of the indexable data resource during playing is prolonged.

Of course, if the effective time of the index data needs to be extended, another multimedia resource recording method based on communication software is provided in the embodiments of the present invention, as shown in fig. 4, further including:

step S45 is: and requesting a communication software server of the communication software to store the local index data.

After the communication software server requesting the communication software generates the local index data, the local index data is also stored, and the corresponding local index data can be successfully found when the local index data needs to be played after the communication software server index data is generated.

Step S46: requesting the communication software server to generate communication software server index data according to the local index data, and storing the communication software server index data; for details, refer to step S14, which is not described herein.

Step S47: the step S15 is referred to for detailed information of the request for locally saving the index data of the communication software server, which is not described herein again.

Therefore, the multimedia resource recording method based on the communication software provided by the embodiment of the invention simultaneously locally stores the local index data and the communication software server index data. In the recording process, a recording instruction is sent to a development kit of the communication software when the recording instruction is received, and once the recording pause instruction is received, the communication software server is requested to generate and store local index data and communication software server index data, and the local storage of the communication software server index data is requested, so that due to the timeliness of uploading (the local index data and the communication software server index data are uploaded in time once the recording pause instruction is received), on one hand, a user does not need to trigger a storage or uploading request based on whether the recording is finished, and the operation of the user is reduced; meanwhile, the problem that all recorded multimedia resource data are lost when a network is cut off or a communication software server is abnormal when a request is sent out if the user triggers the request after recording a plurality of sections under the condition that the user needs to trigger a storage or upload request is avoided, and the loss of the last section of multimedia resource is only influenced if the network is cut off or the communication software server is abnormal due to the timeliness of uploading; and the problem of multimedia resource loss due to misoperation of the user (such as refreshing the page) is also avoided. In terms of the valid period, whether the local index data is stored locally or the communication software server is stored, the valid period can reach hours or days, and then the playing can be smoothly carried out within the time of days. In the aspect of playing indexes, the multimedia resource recording method based on the communication software can search local index data locally, if the local index data is valid, the multimedia resource can be found directly through the local index data to be played, if the local index data is invalid, the communication software server index data can be found locally, then the communication software server index data and the local index data stored in the communication software server are found based on the local index data, the local index data are downloaded locally, the multimedia resource can be found through the downloaded local index data to be played, and the selectivity of playing indexes is provided.

In order to timely grasp the generation state of the local index data, another embodiment of the present invention further provides a multimedia resource recording method based on communication software, further comprising step S48: and recording local index generation state data for generating the local index data state.

When the communication software server is requested to generate the local index data, in order to know the generation state of the local index data state and grasp whether the generation is completed, the multimedia resource recording method based on the communication software provided by the embodiment of the invention can also record the local index generation state data and know the state in time, so that the condition that the generation progress is not known after the multimedia resource recording method is in the local index generation state for a long time is avoided, the abnormity of the generation state can be discovered in time, and further measures can be taken in time.

After recording the local index state data, in order to find out the local index generation state data in time by locally searching when receiving the play instruction, understand the generation condition of the local index data, simplify the search task, and improve the processing efficiency, in another embodiment, the present invention further provides a multimedia resource recording method based on communication software, further comprising step S49: requesting the local storage of the local index generation state data so that local lookup can directly find the local index generation state data.

Certainly, in order to ensure that only one recording command is executed, and avoid confusion caused by simultaneous execution of multiple recording commands, in another embodiment, the flowchart of the multimedia resource recording method based on communication software provided by the present invention further includes step S410: and transmitting the local index generation state data to a resource control bus.

The multimedia resource recording method based on the communication software provided by the embodiment of the invention utilizes the resource control bus to control, ensures that only one instruction is executed, transmits the data in the local index generation state to the resource control bus, and ensures that the resource control bus can timely master the execution conditions of each instruction and process, thereby judging whether the resource is available and ensuring the smooth recording work.

Similarly, the generation state of the index data of the communication software server may also be recorded to know the generation state of the index data of the communication software server, and the multimedia resource recording method based on the communication software provided by the embodiment of the present invention may further include step S411: and recording the server index generation state data for generating the state of the communication software server index data.

The multimedia resource recording method based on the communication software provided by the embodiment of the invention can timely know the generation state of the index data of the communication software server by recording the server index generation state data for generating the index data state of the communication software server, thereby avoiding the occurrence of the situation that the generation progress is unknown in the generation process for a long time, and also finding the abnormity of the generation state in time, thereby timely taking measures.

In another specific embodiment, since the generation state of the index data of the communication software server is recorded and the generation condition is known at all times, when the generation of the index state data of the server fails, the multimedia resource recording method based on the communication software provided by the embodiment of the invention can request the communication software server to generate the index data of the communication software server again.

Through multiple attempts, the reliability of the generation of the index data of the communication software server is improved, and the problem of single-time non-generation success is solved.

In a specific embodiment, the multimedia resource recording method based on communication software provided by the present invention may simultaneously include recording the generation status of the local index data and recording the generation status of the communication software server index data.

Similar to the local index data, in addition to recording the server index generated state data, it may also be requested to be saved locally. The multimedia resource recording method of the communication software provided by the embodiment of the invention further comprises the step S412: requesting the local saving of the server index to generate state data.

After the server index state data is recorded, the server index generation state data is requested to be stored locally, so that when a playing instruction is received, the server index generation state data can be found out locally in time by searching, the generation condition of the server index data of the communication software is known, the searching task is simplified, and the processing efficiency is improved.

In order to satisfy the overall control of the resource control bus on the resource, the method for recording the multimedia resource of the communication software according to another embodiment of the present invention further includes step S413: and transmitting the server index generation state data to a resource control bus.

In order to ensure that only one recording instruction is executed and avoid confusion caused by simultaneous execution of a plurality of recording instructions, the multimedia resource recording method based on communication software provided by the embodiment of the invention utilizes the resource control bus to control, ensures that only one instruction is executed, transmits data to the resource control bus when the communication software server indexes to generate a state, and ensures that the resource control bus can timely master the execution conditions of each instruction and process, thereby judging whether the resource is available and ensuring the smooth execution of the recording work.

In addition, considering that a link put in the communication software server cannot directly play a related multimedia resource through the local index data and needs to call a development kit of the communication software, the multimedia resource recording method based on the communication software provided in the embodiment of the present invention further requests the local server to generate the local index data into a resource file in an MP3 format, specifically referring to fig. 5, where fig. 5 is a schematic flow chart of another multimedia resource recording method based on the communication software according to the embodiment of the present invention.

In this embodiment, the method for recording multimedia resources based on communication software provided by the present invention includes the steps S51, S52 and S53 which are the same as the steps S41 to S43, and the step S54 is: and requesting the local server to store the local index data, and of course, also requesting a local cache to store the local index data at the same time, but necessarily requesting the local server to store the local index data, so as to prepare for the subsequent steps.

Further comprising step S55: requesting the local server to generate the local index data into an MP3 format resource file, and obtaining storage index data of the MP3 format resource file.

The local index data is generated into the MP3 format resource file by using the local server, the index data can be permanently stored, the data can be operated after the local index data is invalid, and when the multimedia resource needs to be played, only the corresponding file needs to be found according to the stored index data of the MP3 format resource file, and the native tag language page has the capacity of playing the multimedia resource in the MP3 format, so that when the multimedia resource is played, the data can be directly obtained through the stored index data of the MP3 format resource file for playing, other steps are not needed, the playing program is simplified, and the multimedia resource does not need to be played through a development kit of communication software.

How long the specific conversion interval is can be adjusted as needed, but the conversion needs to be performed within the validity period of the local index data.

Of course, not only the local index data may be converted into MP3 format resource files, but also the communication software server index data may be generated into MP3 format resource files, please refer to fig. 5 again, in another embodiment, the multimedia resource recording method based on communication software provided by the present invention, step S57 is: and requesting a local server to store the index data of the communication software server, and certainly, also requesting a local cache to store the index data of the communication software server, but necessarily requesting the local server to store the index data of the communication software server, so as to prepare for the subsequent steps.

Further comprising step S58: requesting the local server to generate the index data of the communication software server into an MP3 format resource file, and obtaining the storage index data of the MP3 format resource file.

The communication software server index data is generated into the MP3 format resource file by using the local server, the index data can be permanently stored, the data can be operated after the communication software server index data is invalid, and when the multimedia resource needs to be played, the corresponding file only needs to be found according to the storage index data of the MP3 format resource file, and the native markup language page has the capacity of playing the MP3 format multimedia resource, so that when the multimedia resource is played, the data can be directly obtained through the storage index data of the MP3 format resource file for playing, other steps are not needed, the playing program is simplified, and the multimedia resource does not need to be played through a development kit of communication software.

The specific conversion interval can be adjusted according to the needs, but the conversion needs to be performed within the validity period of the index data of the communication software server, generally within several hours after recording.

As described above, in order to meet the mutual exclusion and serialization requirements of the recording instruction during execution, the local index generation status data and the server index generation status data may be transmitted to the resource control bus to assist the monitoring of the completion status thereof, so as to ensure that only one multimedia resource is recorded at the same time, for this reason, reference may be made to fig. 6 in the method for recording a multimedia resource based on communication software according to the embodiment of the present invention, and fig. 6 is a schematic flowchart of another method for recording a multimedia resource based on communication software according to the embodiment of the present invention.

As shown in the figure, in this embodiment, the method for recording multimedia resources based on communication software provided by the present invention includes the same steps S61, S63 and S64 as the steps S41, S43 and S44, and step S62 is: and when the state of the resource control bus is idle, requesting a development kit of the communication software to send a recording instruction of the multimedia resource.

The development kit of the communication software is requested to send the recording instruction only when the state of the resource control bus is idle, otherwise, the recording instruction is not sent, so that only one multimedia resource is ensured when the recording state is subsequently processed simultaneously, and the recording quality of the multimedia resource is also ensured.

To solve the above problem, an embodiment of the present invention further provides a multimedia resource recording system based on communication software, please refer to fig. 7, and fig. 7 is a schematic structural diagram of a multimedia resource recording system based on communication software according to an embodiment of the present invention.

As shown in the figure, the multimedia resource recording system based on communication software provided by the embodiment of the present invention includes: an instruction receiving unit 11 adapted to receive a recording instruction of a multimedia resource; an instruction sending request unit 12 adapted to request a development kit of communication software to send the recording instruction; a local index data generation and storage request unit 13 adapted to request the communication software server of the communication software to generate and store local index data when receiving a recording pause instruction; a communication software server index generation and storage request unit 14 adapted to request the communication software server to generate communication software server index data according to the local index data and store the communication software server index data; a local storage request unit 15 for the index data of the communication software server, adapted to request local storage of the index data of the communication software server.

Specifically, a recording request start key of multimedia resources is arranged on a link put in communication software, when the request needs to be started, a recording person clicks the key to send a recording instruction, and the instruction receiving unit 11 receives the recording instruction; the multimedia resource may be an audio resource or a video resource.

In addition, it can be understood that before a specific recording, a recording person first needs to open a corresponding link, and after the system completes initialization, the recording person can receive a subsequent recording instruction.

After receiving the recording instruction of the multimedia resource, since the link itself does not have the recording function, the subsequent operation needs to be performed by using the development kit of the communication software released by the link, that is, the instruction sending request unit 12 requests the development kit of the communication software to send the recording instruction.

And sending a recording instruction by using the development kit to call a recording api (application programming interface), and recording the multimedia resources by using recording hardware equipment (a microphone, a camera and the like).

In the recording process, recording suspension is triggered, and when a recording suspension instruction is received, the local index data generation and storage request unit 13 automatically requests the communication software server of the communication software to generate local index data and store the local index data, so that a storage request is not required to be manually made, timeliness is provided, and data loss is prevented.

Specifically, the recording pause instruction may be triggered by a recording person, that is, when the recording person thinks that the recording is finished, the recording pause is actively triggered, and the multimedia resource recording system based on the communication software provided by the embodiment of the present invention receives the recording instruction; or may be generated by time setting of communication software, such as: the WeChat sets the longest recording time, and even if the recording personnel do not trigger the recording pause instruction after the time is reached, the multimedia resource recording system based on the communication software provided by the embodiment of the invention can receive the recording instruction and carry out subsequent operation.

In order to ensure that data can be stored in time and cannot be lost, the multimedia resource recording system based on communication software provided by the embodiment of the invention requests the communication software server to generate and store local index data, the local index data is generated to prepare for the subsequent generation of the index data of the communication software server, the local index data is stored, and an index route is provided for the subsequent search during playing.

In addition, it should be noted that the multimedia resource recording system based on communication software according to the embodiment of the present invention describes generation and protection of index data (including local index data and communication software index data) in detail, and specific recorded multimedia resource data is stored according to a storage function of the communication software itself, so that a corresponding multimedia resource can be found based on the index data, which is not described herein again.

Since the validity period of the index data of the communication software server can reach several days, after the local index data is generated, the communication software server index generation and storage request unit 14 requests the communication software server to generate the index data of the communication software server according to the local index data and stores the index data of the communication software server, so that on one hand, the validity period of the index data during replay and search is prolonged, and on the other hand, the index data can be conveniently found when the index data needs to be searched.

The communication software server index data and the local index data are only generated and stored on the communication software server, when playing is needed, the playing request is triggered locally, and a corresponding index cannot be found locally.

Specifically, the local storage is at least one of a local server and a local cache, that is, requesting to locally store the index data of the communication software server refers to requesting the local server to store the index data of the communication software server, requesting the local cache to store the communication software server, or requesting the local server and the local cache to store the index data of the communication software server at the same time.

Therefore, based on the multimedia resource recording system based on the communication software, provided by the invention, when a recording instruction is received, the recording instruction is sent to a development kit of the communication software, and once the recording pause instruction is received, the communication software server is requested to generate and store local index data and communication software server index data, and the local storage of the communication software server index data is requested, so that due to the timeliness of uploading (once the recording pause instruction is received, the uploading is carried out in time), on one hand, a user does not need to trigger a storage or uploading request based on whether the recording is finished or not, and the operation of the user is reduced; meanwhile, the problem that all recorded multimedia resource data are lost when a network is cut off or a communication software server is abnormal when a request is sent out if a user triggers a request after recording a plurality of sections under the condition that the user needs to trigger a storage or upload request is also avoided; and the problem of multimedia resource loss due to misoperation of the user (such as refreshing the page) is also avoided. In addition, the multimedia resource recording system based on the communication software provided by the embodiment of the invention utilizes the local stored index data of the communication software server, and the validity period of the index data of the communication software server can reach several days, so that the validity period of the data resource which can be indexed during playing is prolonged.

Referring to fig. 7, a multimedia resource recording system based on communication software according to another embodiment of the present invention further includes: a local index generation status data recording unit 16 adapted to record local index generation status data generating a status of said local index data.

When the communication software server is requested to generate the local index data, in order to know the generation state of the local index data state and grasp whether the generation is completed, the multimedia resource recording method based on the communication software provided by the embodiment of the invention can also record the local index generation state data and know the state in time, so that the condition that the generation progress is not known after the multimedia resource recording method is in the local index generation state for a long time is avoided, the abnormity of the generation state can be discovered in time, and further measures can be taken in time.

In addition to knowing the generation status of the local index data, the system for recording multimedia resources based on communication software according to another embodiment of the present invention further comprises: a local index generation state data local saving requesting unit 17 adapted to request the local saving of the local index generation state data.

After the local index state data is recorded, local index generation state data is requested to be stored locally, so that when a playing instruction is received, the local index generation state data can be found out in time by searching locally, the generation condition of the local index data is known, the searching task is simplified, and the processing efficiency is improved.

In another embodiment, the multimedia resource recording system based on communication software according to the present invention further includes: a local index generation status data transmission unit 18 adapted to transmit said local index generation status data to the resource control bus.

The multimedia resource recording system based on the communication software provided by the embodiment of the invention utilizes the resource control bus to control, only one instruction which is executed is ensured, the local index generation state data is transmitted to the resource control bus through the local index generation state data transmission unit 18, and the resource control bus can timely master the execution conditions of each instruction and process, so that whether the resource is available is judged, and the smooth recording work is ensured.

It is understood that the same processing as that of the local index data may be performed for the generation state of the communication software server index data.

In another embodiment, the multimedia resource recording system based on communication software according to the embodiment of the present invention further includes: and the server index generation state data recording unit 19 is suitable for recording the server index generation state data of the state of generating the communication software server index data.

The server index generation state data recording unit 19 records the server index generation state data for generating the state of the communication software server index data, so that the generation state of the communication software server index data can be known in time, the situation that the communication software server index data is in the generation process for a long time without knowing the specific generation progress can be avoided, the abnormity of the generation state can be found in time, and further measures can be taken in time.

For example, in another embodiment, the system further includes a re-request unit (not shown in the figure), since the generation status of the index data of the communication software server is recorded, and the generation situation is known at any time, when the generation status data of the server index is failed, the multimedia resource recording system based on communication software provided by the embodiment of the invention can re-request the communication software server to generate the index data of the communication software server.

Through multiple attempts, the reliability of the generation of the index data of the communication software server is improved, and the problem of single-time non-generation success is solved.

Similar to the local index data, in addition to recording the server index generated status data, the system can also request local storage, and the multimedia resource recording system based on communication software provided by another embodiment of the present invention further includes: the server index generation state data local saving request unit 110 is adapted to request the local saving of the server index generation state data.

After the server index state data is recorded, the server index generation state data local storage request unit 110 further requests the local storage server index generation state data, so that when a play instruction is received, the server index generation state data can be found out in time by searching locally, the generation condition of the communication software server index data is known, the search task is simplified, and the processing efficiency is improved.

Certainly, in the phase of generating the server index data, in order to ensure mutual exclusion and serialization of execution, in the multimedia resource recording system based on communication software provided in an embodiment, the multimedia resource recording system further includes: a server index generation status data transmission unit 111 adapted to transmit the server index generation status data to a resource control bus.

Referring to fig. 8, fig. 8 is a schematic structural diagram of another multimedia resource recording system based on communication software according to an embodiment of the present invention.

Considering that the link placed in the communication software server cannot directly play the related multimedia resource through the local index data generated by the communication software server or the communication software server index data, and needs to call the development kit of the communication software, the multimedia resource recording system based on the communication software provided by another embodiment of the present invention further includes a communication software server index data generation MP3 format resource file request unit 26 adapted to request the local server to generate the communication software server index data into an MP3 format resource file, and obtain the storage index data of the MP3 format resource file.

In this embodiment, the local storage request unit for the index data of the communication software server is a local server storage request unit 25 for the index data of the communication software server, and is adapted to request the local server to store the index data of the communication software server, and of course, the local storage request unit further includes an instruction receiving unit 21, an instruction sending request unit 22, a local index data generation and storage request unit 23, and a communication software server index generation and storage request unit 24.

The resource file request unit 26 in MP3 format generated by the index data of the communication software server generates the index data of the communication software server into a resource file in MP3 format by using a local server, which can permanently store the index data, and has data that can be operated after the index data of the communication software server fails, and when multimedia resources need to be played, only the corresponding file needs to be found according to the stored index data of the resource file in MP3 format, and the native tag language page has the capability of playing the multimedia resources in MP3 format, so that when playing, data can be directly obtained by the stored index data of the resource file in MP3 format for playing, and other steps are not needed, thereby simplifying the playing program and playing through the development kit of the communication software.

The specific conversion interval can be adjusted according to the needs, but the conversion needs to be performed within the validity period of the index data of the communication software server, generally within several hours after recording.

As described above, in order to meet the mutual exclusion and serialization requirements of the recording instruction during execution, the local index generation status data and the server index generation status data may be transmitted to the resource control bus to assist the resource control bus in monitoring the completion status thereof, so as to ensure that only one multimedia resource is recorded at the same time. Only when the state of the resource control bus is idle, the development kit of the communication software is requested to send a recording instruction, otherwise, the recording instruction is not sent, so that only one multimedia resource is ensured when the recording state is subsequently processed simultaneously, and the recording quality of the multimedia resource is also ensured.

In order to reduce the risk of losing multimedia recording resources, another multimedia resource recording system based on communication software is further provided in the embodiments of the present invention, please refer to fig. 9-10, fig. 9 is a schematic structural diagram of another multimedia resource recording system based on communication software in the embodiments of the present invention; fig. 10 is a schematic structural diagram of another multimedia asset recording system based on communication software according to an embodiment of the present invention.

As shown in fig. 9, the multimedia resource recording based on communication software provided by the embodiment of the present invention includes: an instruction receiving unit 31 adapted to receive a recording instruction of a multimedia resource; an instruction sending request unit 32 adapted to request a development kit of communication software to send the recording instruction; a local index data generation requesting unit 33 adapted to request the communication software server of the communication software to generate local index data upon receiving a recording pause instruction; the local index data local saving requesting unit 34 is adapted to request local saving of the local index data.

In the recording process, the recording suspension is triggered, and the local index data generation request unit 33 of the multimedia resource recording system based on the communication software provided by the embodiment of the invention automatically requests the communication software server of the communication software to generate local index data and store the local index data when receiving the recording suspension instruction, so that the storage request is not required to be manually performed, and the timeliness is realized, and the data loss is prevented.

Specifically, the recording pause instruction may be triggered by a recording person, that is, when the recording person thinks that the recording is finished, the recording pause is actively triggered, and the multimedia resource recording method based on the communication software provided by the embodiment of the present invention receives the recording instruction; or may be generated by time setting of communication software, such as: the WeChat sets the longest recording time, and even if the recording personnel do not trigger the recording pause instruction after the time is reached, the multimedia resource recording system based on the communication software provided by the embodiment of the invention can receive the recording instruction and carry out subsequent operation.

After the local index data is generated by the communication software server, the local index data local storage request unit 34 requests local storage of the local index data, so that when the local index data needs to be played, the local storage requests are triggered locally, and corresponding resources can be found directly through the local index data.

Of course, local is also at least one of local server and local cache. If the local cache exists, only the index data needs to be found through the local cache during playing, so that the flow is saved; if the data is stored in the local server, the data needs to be acquired from the local server through the client and then downloaded to the local cache.

Therefore, once the recording pause instruction is received, the communication software server is requested to generate local index data and request the local cache to store the local cache data, so that due to the timeliness of uploading, the local cache data can be uploaded in time once the recording pause instruction is received, on one hand, a user does not need to trigger a storage or uploading request based on whether the recording is finished, and the operation of the user is reduced; meanwhile, the problem that all recorded multimedia resource data are lost when a network is cut off or a communication software server is abnormal when a request is sent out if the user triggers the request after recording a plurality of sections under the condition that the user needs to trigger a storage or upload request is avoided, and the multimedia resource recording system based on the communication software provided by the embodiment of the invention only influences the loss of the last section of multimedia resource due to the timeliness of uploading if the network is cut off or the communication software server is abnormal; and the problem of multimedia resource loss due to misoperation of the user (such as refreshing the page) is also avoided. In addition, the multimedia resource recording system based on communication software provided by the embodiment of the invention stores the local index data by using the local cache, and the valid period of the local index data can reach several hours, so that the valid period of the indexable data resource during playing is prolonged.

As shown in fig. 9, in another embodiment, the multimedia resource recording system based on communication software further includes: a local index data saving request unit 38 adapted to request the communication software server of the communication software to save the local index data; a communication software server index generation and storage request unit 39 adapted to request the communication software server to generate communication software server index data according to the local index data and store the communication software server index data; and a communication software server index data local storage requesting unit 310 adapted to request the local storage of the communication software server index data.

Therefore, the multimedia resource recording system based on the communication software provided by the embodiment of the invention locally stores the local index data and the communication software server index data at the same time. In the recording process, a recording instruction is sent to a development kit of the communication software when the recording instruction is received, and once the recording pause instruction is received, the communication software server is requested to generate and store local index data and communication software server index data, and the local storage of the communication software server index data is requested, so that due to the timeliness of uploading (the local index data and the communication software server index data are uploaded in time once the recording pause instruction is received), on one hand, a user does not need to trigger a storage or uploading request based on whether the recording is finished, and the operation of the user is reduced; meanwhile, the problem that all recorded multimedia resource data are lost when a network is cut off or a communication software server is abnormal when a request is sent out if the user triggers the request after recording a plurality of sections under the condition that the user needs to trigger a storage or upload request is avoided, and the multimedia resource recording system based on the communication software provided by the embodiment of the invention only influences the loss of the last section of multimedia resource due to the timeliness of uploading if the network is cut off or the communication software server is abnormal; and the problem of multimedia resource loss due to misoperation of the user (such as refreshing the page) is also avoided. In terms of the valid period, whether the local index data is stored locally or the communication software server is stored, the valid period can reach hours or days, and then the playing can be smoothly carried out within the time of days. In the aspect of playing indexes, the multimedia resource recording system based on the communication software can search local index data locally, if the local index data is valid, the multimedia resource can be found directly through the local index data to be played, if the local index data is invalid, the communication software server index data can be found locally, then the communication software server index data and the local index data stored in the communication software server are found based on the local index data, the local index data are downloaded locally, the multimedia resource can be found through the downloaded local index data to be played, and the selectivity of playing indexes is provided.

In order to timely master the generation state of the local index data, another embodiment of the present invention further provides a multimedia resource recording system based on communication software, further comprising: the local index generation state data recording unit 35 is adapted to record local index generation state data for generating a state of the local index data.

Therefore, the state can be known in time, the condition that the generation progress is unknown after the local index generation state is kept for a long time is avoided, the abnormity of the generation state can be discovered in time, and further measures can be taken in time.

In order to find out the local index generation state data in time by locally searching when a play instruction is received, understand the generation condition of the local index data, simplify the search task, and improve the processing efficiency, an embodiment of the present invention further provides another multimedia resource recording system based on communication software for recording multimedia resources based on communication software, as shown in fig. 9, the system includes: the instruction receiving unit 31, the instruction sending requesting unit 32, the local index data generation requesting unit 33, the local index data local saving requesting unit 34, the local index generation state data recording unit 35, and the local index generation state data local saving requesting unit 36 are adapted to request the local saving of the local index generation state data, so that the local lookup can directly find the local index generation state data.

In order to ensure that the resource control bus can timely grasp the execution conditions of each instruction and process, thereby determining whether resources are available and ensuring the smooth recording operation, in another specific embodiment, the multimedia resource recording system based on communication software provided by the embodiment of the present invention further includes a local index generation status data transmission unit 37 adapted to transmit the local index generation status data to the resource control bus.

Therefore, the multimedia resource recording system based on communication software provided by the embodiment of the present invention may further include a server index generation state data recording unit 311 adapted to record server index generation state data for generating the state of the communication software server index data.

By recording the server index generation state data for generating the state of the communication software server index data, the generation state of the communication software server index data can be known in time, the situation that the communication software server index data is in the generation process for a long time and the specific generation progress is not known is avoided, the abnormity of the generation state can be discovered in time, and further measures can be taken in time.

In another specific embodiment, the system further includes a re-request unit (not shown), adapted to re-request the communication software server to generate the communication software server index data when the server index generation status data is a generation failure. The generation state of the index data of the communication software server is recorded, and the generation situation is known at all times, so that when the generation of the index generation state data of the server fails, the multimedia resource recording system based on the communication software provided by the embodiment of the invention can request the communication software server to generate the index data of the communication software server again.

Through multiple attempts, the reliability of the generation of the index data of the communication software server is improved, and the problem of single-time non-generation success is solved.

In a specific embodiment, the multimedia resource recording system based on communication software provided by the invention can simultaneously record the generation state of the local index data and the generation state of the communication software server index data.

Similar to the local index data, in addition to recording the server index generated state data, it may also be requested to be saved locally.

In another embodiment, the multimedia resource recording system based on communication software further includes a local storage request unit 312 adapted to request the local recording of the server index generation status data.

After the server index state data is recorded, the server index generation state data is requested to be stored locally, so that when a playing instruction is received, the server index generation state data can be found out locally in time by searching, the generation condition of the server index data of the communication software is known, the searching task is simplified, and the processing efficiency is improved.

In order to satisfy the overall control of the resource control bus on the resource and know the occupation condition of the resource in real time, the multimedia resource recording system based on the communication software according to another embodiment of the present invention further includes a server index generation status data transmission unit 313 adapted to transmit the server index generation status data to the resource control bus. The server index generation state data transmission unit 313 transmits data in the communication software server index generation state to the resource control bus, so that the resource control bus can timely master the execution conditions of each instruction and process, and therefore whether resources are available is judged, and the recording work is guaranteed to be smoothly carried out.

Considering that the link released in the communication software server cannot directly play the relevant multimedia resource through the local index data and needs to call a development kit of the communication software, the multimedia resource recording system based on the communication software provided in the embodiment of the present invention further requests the local server to generate the local index data into the MP3 format resource file, as shown in fig. 10, including: the command receiving unit 41, the command sending requesting unit 42, the local index data generation requesting unit 43, the local index data local server saving requesting unit 44, and the local index data generation MP3 format resource file requesting unit 45 are adapted to request the local server to generate the local index data into an MP3 format resource file and obtain the storage index data of the MP3 format resource file.

The local index data generation MP3 format resource file request unit 45 generates the local index data into an MP3 format resource file by using the local server, and can permanently store the index data, and after the local index data is invalid, there is also data that can be operated, and when multimedia resources need to be played, only the corresponding file needs to be found according to the stored index data of the MP3 format resource file, and the native tag language page has the capability of playing the multimedia resources in the MP3 format, so when playing, the data can be directly obtained through the stored index data of the MP3 format resource file to be played, and no other steps are needed, thereby simplifying the playing program, and no longer playing through the development kit of communication software.

How long the specific conversion interval is can be adjusted as needed, but the conversion needs to be performed within the validity period of the local index data.

Of course, not only the local index data can be converted into the MP3 format resource file, but also the communication software server index data can be generated into the MP3 format resource file, another embodiment of the multimedia resource recording system based on communication software provided by the present invention includes an instruction receiving unit 41, an instruction sending requesting unit 42, a local index data generating requesting unit 43 and a local index data local saving requesting unit 44, a local index data generating MP3 format resource file requesting unit 45, a local index data saving requesting unit 46, a communication software server index generating and saving requesting unit 47, a communication software server index data local server saving requesting unit 48 and a communication software server index data generating MP3 format resource file requesting unit 49, requesting the local server to generate the communication software server index data into the MP3 format resource file, and obtaining the storage index data of the MP3 format resource file.

The communication software server index data generation MP3 format resource file request unit 49 generates the communication software server index data into an MP3 format resource file by using the local server, can permanently store the index data, has data that can be operated even after the communication software server index data is invalid, and when multimedia resources need to be played, only needs to find the corresponding file according to the storage index data of the MP3 format resource file, and the native tag language page has the capability of playing the multimedia resources in the MP3 format, so that when playing, data can be directly obtained through the storage index data of the MP3 format resource file for playing, no other steps are needed, the playing program is simplified, and playing through a development kit of communication software is not needed.

The specific conversion interval can be adjusted according to the needs, but the conversion needs to be performed within the validity period of the index data of the communication software server, generally within several hours after recording.

As described above, in order to meet the mutual exclusion and serialization requirements of the recording instruction during execution, the local index generation status data and the server index generation status data may be transmitted to the resource control bus to assist the resource control bus in monitoring the completion status thereof, so as to ensure that only one multimedia resource is recorded at the same time. Only when the state of the resource control bus is idle, the development kit of the communication software is requested to send a recording instruction, otherwise, the recording instruction is not sent, so that only one multimedia resource is ensured when the recording state is subsequently processed simultaneously, and the recording quality of the multimedia resource is also ensured.

The embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and when the instructions are executed by a processor, the method for recording multimedia resources based on communication software as described above can be implemented.

The method comprises the steps of sending a recording instruction to a development kit of the communication software when the recording instruction is received, requesting a communication software server to generate and store local index data and communication software server index data once the recording pause instruction is received, and requesting the local storage of the communication software server index data, so that due to the timeliness of uploading (the local index data and the communication software server index data can be uploaded in time once the recording pause instruction is received), on one hand, a user does not need to trigger a storage or uploading request based on whether the recording is finished or not, and the operation of the user is reduced; meanwhile, the problem that all recorded multimedia resource data are lost when a network is cut off or a communication software server is abnormal when a request is sent out if the user triggers the request after recording a plurality of sections under the condition that the user needs to trigger a storage or upload request is also avoided; and the problem of multimedia resource loss due to misoperation of the user (such as refreshing the page) is also avoided. In addition, the multimedia resource recording method based on the communication software provided by the embodiment of the invention utilizes the local stored index data of the communication software server, and the validity period of the index data of the communication software server can reach several days, so that the validity period of the data resource which can be indexed during playing is prolonged.

The embodiments of the present invention described above are combinations of elements and features of the present invention. Unless otherwise mentioned, the elements or features may be considered optional. Each element or feature may be practiced without being combined with other elements or features. In addition, the embodiments of the present invention may be configured by combining some elements and/or features. The order of operations described in the embodiments of the present invention may be rearranged. Some configurations of any embodiment may be included in another embodiment, and may be replaced with corresponding configurations of the other embodiment. It is obvious to those skilled in the art that claims that are not explicitly cited in each other in the appended claims may be combined into an embodiment of the present invention or may be included as new claims in a modification after the filing of the present application.

Embodiments of the invention may be implemented by various means, such as hardware, firmware, software, or a combination thereof. In a hardware configuration, the method according to an exemplary embodiment of the present invention may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), processors, controllers, micro-controllers, microprocessors, and the like.

In a firmware or software configuration, embodiments of the present invention may be implemented in the form of modules, procedures, functions, and the like. The software codes may be stored in memory units and executed by processors. The memory unit is located inside or outside the processor, and may transmit and receive data to and from the processor via various known means.

The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Although the embodiments of the present invention have been disclosed, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

36页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:自动生成足球比赛射门集锦的方法、装置及设备及计算机可读存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类