WO2022057469A1 - Method and system for online playback and downloading prevention of web client audio, device, and medium - Google Patents

Method and system for online playback and downloading prevention of web client audio, device, and medium Download PDF

Info

Publication number
WO2022057469A1
WO2022057469A1 PCT/CN2021/109611 CN2021109611W WO2022057469A1 WO 2022057469 A1 WO2022057469 A1 WO 2022057469A1 CN 2021109611 W CN2021109611 W CN 2021109611W WO 2022057469 A1 WO2022057469 A1 WO 2022057469A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio
browser
server
sub
file
Prior art date
Application number
PCT/CN2021/109611
Other languages
French (fr)
Chinese (zh)
Inventor
王凯
Original Assignee
苏州浪潮智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 苏州浪潮智能科技有限公司 filed Critical 苏州浪潮智能科技有限公司
Publication of WO2022057469A1 publication Critical patent/WO2022057469A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1441Countermeasures against malicious traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Definitions

  • the present invention relates to the field of audio playback, and more particularly, to a method, system, computer equipment and computer for preventing download of audio online playing on a Web (World Wide Web, a global wide area network, a network service established on the Internet). Readable storage medium.
  • a Web World Wide Web, a global wide area network, a network service established on the Internet.
  • Readable storage medium Readable storage medium.
  • flash a creation software that integrates animation creation and application development
  • HTML5 HyperText Markup Language 5
  • hypertext markup language a language description method for building web content
  • audio must specify the source file address of the audio file, which points to an audio file stored on the server.
  • the download function can be limited in the browser through certain technical solutions, but the user cannot see the download button and other operations, but those with certain technical capabilities can still view the browser's DOM (Document Object Model, document object). model) element or viewing the form of the audio cache file to obtain the complete original file of the audio, which is not conducive to copyright protection.
  • DOM Document Object Model
  • the purpose of the embodiment of the present invention is to propose a method, system, computer equipment and computer-readable storage medium for preventing download of audio online on the Web side, by using the websocket server to transmit the divided audio file, so that the audio
  • the source file will not be preset in the browser's DOM file through the audio tag, nor will the complete audio data file be stored in the browser's cache.
  • Ordinary users and technicians cannot obtain the server address of the audio data file from the DOM.
  • the original audio data file cannot be restored, thereby ensuring that the original audio file is not maliciously obtained by other persons, thereby achieving the purpose of protecting the audio copyright.
  • one aspect of the embodiments of the present invention provides a method for preventing download of audio online on a Web side, including the following steps: starting a websocket server on a server side, and establishing a communication connection between the websocket server and a browser ; In response to receiving the audio playback request sent by the browser, at the server side, the audio file that needs to be played is divided into a plurality of sub-audio files according to the request; The sub-audio files are encoded to be converted to be suitable for streaming media The transmitted binary file format, and the encoded sub-audio file is sent to the browser through the websocket server; and in response to the browser receiving the binary file stream transmitted by the websocket server, to the browser A binary file streams sub-audio files for asynchronous decoding and playback.
  • dividing the audio file that needs to be played on the server side into multiple sub-audio files according to the request includes: on the server side, according to the size of the audio file, the audio file is divided according to a predefined number of bytes. file is split.
  • sending the encoded sub-audio files to the browser through the websocket server includes: obtaining a predefined number of the sub-audio files from the websocket server each time to be used in the The browser side caches audio of a predefined length.
  • acquiring a predefined number of the sub-audio files from the websocket server each time to cache audio of a predefined length on the browser side includes: judging whether the total length of the audio is less than a first a threshold; and in response to the total length of the audio being less than the first threshold, obtaining all sub-audio files of the audio.
  • acquiring a predefined number of the sub-audio files from the websocket server each time to cache audio of a predefined length on the browser side includes: determining the audio frequency according to the total length of the audio Predefining a length, and judging whether the predefined length is greater than a second threshold; and in response to the predefined length being greater than the second threshold, setting the predefined length to the second threshold.
  • the method further includes: in response to the user changing the playback progress of the current audio on the browser side, recalculating the predefined length according to the new audio playback position selected by the user.
  • the method further includes: judging whether the ratio of the current playback progress to the pre-defined length of this cache reaches a third threshold; and in response to the ratio of the current playback progress to the pre-defined length of this cache reaching the third threshold Three thresholds to get the next audio of a predefined length.
  • a system for preventing download of online audio playback on the Web side including: a connection module, configured to enable a websocket server on the server side, and establish a connection between the websocket server and the browser.
  • a communication connection configured to split the audio file to be played into a plurality of sub-audio files on the server side according to the request in response to receiving an audio playback request sent by the browser; an encoding module, configured to Encoding the sub-audio file to convert it into a binary file format suitable for streaming media transmission, and sending the encoded sub-audio file to the browser through the websocket server; and a decoding module, configured for In response to the browser side receiving the binary file stream transmitted by the websocket server, the binary file stream sub-audio file is asynchronously decoded and played.
  • a computer device comprising: at least one processor; and a memory, where the memory stores computer instructions that can be executed on the processor, and the instructions are executed by the processor.
  • the processor implements the steps of the above method when executed.
  • a computer-readable storage medium stores a computer program that implements the above method steps when executed by a processor.
  • the invention has the following beneficial technical effects: by using the websocket server to transmit the divided audio file, the audio source file will not be preset in the DOM file of the browser through the audio tag, nor will it be completely stored in the browser cache. Ordinary users and technical personnel cannot obtain the server address of the audio data file from the DOM, nor can they restore the original audio data file, thus ensuring that the original audio file is not maliciously obtained by other personnel, thus achieving the protection of audio Copyright purpose.
  • Fig. 1 is a schematic diagram of an embodiment of a method for preventing downloading of audio online on a Web side provided by the present invention
  • FIG. 2 is a schematic diagram of the hardware structure of an embodiment of a computer device for preventing downloading of audio online on a Web side provided by the present invention
  • FIG. 3 is a schematic diagram of a computer-readable storage medium for preventing downloading of audio online on a Web side provided by the present invention
  • FIG. 4 is a schematic structural diagram of a system for preventing downloading of audio online at the web end provided by the present invention.
  • FIG. 1 shows a schematic diagram of an embodiment of a method for preventing downloading of audio online on a Web side provided by the present invention.
  • the embodiment of the present invention includes the following steps:
  • the audio file to be played is divided into a plurality of sub-audio files according to the request;
  • Streaming Media technology refers to a technology that compresses a series of media data and transmits it in segments in a streaming manner to realize real-time transmission of video and audio on the network for viewing.
  • Streaming media actually refers to a new media transmission method, including sound stream, video stream, text stream, image stream, animation stream, etc., rather than a new media.
  • Streaming is a general term for technologies that transmit media (audio, video, etc.) over a network.
  • progressive streaming There are two main ways to implement streaming: progressive streaming and real time streaming.
  • WebSocket is a protocol for full-duplex communication over a single TCP (Transmission Control Protocol) connection.
  • WebSocket makes data exchange between client and server easier, allowing the server to actively push data to the client.
  • the browser and the server only need to complete a handshake once, and a persistent connection can be created directly between the two, and two-way data transmission can be performed.
  • the server In response to receiving the audio playback request sent by the browser, the server divides the audio file to be played into multiple sub-audio files according to the request. To ensure the stability and real-time performance of data transmission, the audio file can be divided into multiple sub-audio files for transmission.
  • the sub-audio file is encoded to be converted into a binary file format suitable for streaming media transmission, and the encoded sub-audio file is sent to the browser through the websocket server.
  • the split audio file is encoded, and the encoded audio file format is a binary file stream, which meets the streaming media transmission requirements.
  • the browser side In response to the browser side receiving the binary file stream transmitted by the websocket server, it asynchronously decodes and plays the sub-audio file of the binary file stream.
  • the binary file stream sent from the server On the client (ie browser), the binary file stream sent from the server is received, and when it is detected that the transmission of a file stream is completed, the AudioContext.decodeAudioData() method provided by the Web Audio API (network audio interface) is called to decode the binary file. Streaming audio files for asynchronous decoding.
  • sending the encoded sub-audio files to the browser through the websocket server includes: obtaining a predefined number of the sub-audio files from the websocket server each time to be used in the The browser side caches audio of a predefined length. Since the audio playback of the browser depends on the network environment, the quality of the network status has a great impact on the audio playback quality and user experience, and it is not very good for the network environment, so pre-cache is required. Automatically detect the current audio playback progress. When the audio is loaded and played for the first time, a specified number of audio split files can be obtained from the server at one time, and the audio of a predefined length can be cached in the browser in advance.
  • acquiring a predefined number of the sub-audio files from the websocket server each time to cache audio of a predefined length on the browser side includes: judging whether the total length of the audio is less than a first a threshold; and in response to the total length of the audio being less than the first threshold, obtaining all sub-audio files of the audio.
  • the first threshold may be one minute, and when the total length of the audio is less than one minute, all sub-audio files of the audio file are acquired from the server at one time.
  • acquiring a predefined number of the sub-audio files from the websocket server each time to cache audio of a predefined length on the browser side includes: determining the audio frequency according to the total length of the audio Predefining a length, and judging whether the predefined length is greater than a second threshold; and in response to the predefined length being greater than the second threshold, setting the predefined length to the second threshold.
  • the predefined length can be calculated according to the total length of the audio, which is usually 20% of the total length of the audio.
  • the second threshold can be, for example, five minutes. When the calculated predefined length is greater than five minutes, the predefined length is limited to five minutes. Calculate the percentage of the total audio length can be modified through the configuration file.
  • the method further includes: in response to the user changing the playback progress of the current audio on the browser side, recalculating the predefined length according to the new audio playback position selected by the user. If the user changes the current audio playback progress on the browser side, that is, jumps to a certain time point in the audio to perform the playback action, the audio data file can be re-obtained from the server according to the audio playback position selected by the user, and the predefined length can be re-created. calculate. If the user jumps to a place that has been pre-cached, it can be played directly.
  • the method further includes: judging whether the ratio of the current playback progress to the pre-defined length of this cache reaches a third threshold; and in response to the ratio of the current playback progress to the pre-defined length of this cache reaching the third threshold Three thresholds to get the next audio of a predefined length.
  • the third threshold may be 70%.
  • the embodiment of the present invention relies on the real-time streaming transmission mode in the streaming media transmission mode, establishes a continuous and stable connection between the browser and the server through the websocket, and the server divides the audio file into sub-files according to the size of the audio file according to the specified bytes,
  • the server encodes the segmented audio sub-file segments, and then pushes the encoded audio sub-file data to the browser.
  • the browser receives the encoded audio file data and decodes the data. Operation, realize the playback of audio files by calling the Web Audio API.
  • the present invention also includes audio pre-buffering technology, which ensures the real-time performance of audio playback and solves the problem of audio playback delay.
  • the present invention ensures that the audio source files are not directly accessed by the user, and the user cannot obtain the original audio files from the DOM elements of the web page or the browser cache, so as to achieve the real-time online playback of the audio and prevent downloading and protect the audio. Copyright purpose.
  • a system 500 for preventing download of online audio playback on the Web side including: a connection module 501 configured to enable a websocket server on the server side , and establish a communication connection between the websocket server and the browser; the segmentation module 502 is configured to respond to receiving the audio playback request sent by the browser, at the server according to the request to play the audio that needs to be played
  • the file is divided into a plurality of sub-audio files;
  • the encoding module 504 is configured to encode the sub-audio files to be converted into a binary file format suitable for streaming media transmission, and use the websocket server to encode the encoded sub-audio files.
  • the decoding module 503 is configured to asynchronously decode and play the sub-audio files of the binary file stream in response to the browser side receiving the binary file stream transmitted by the websocket server.
  • the splitting module 502 is configured to: split the audio file according to a predefined number of bytes on the server side according to the size of the audio file.
  • system further includes: a cache module configured to obtain a predefined number of the sub-audio files from the websocket server each time to cache audio of a predefined length on the browser side.
  • the caching module is further configured to: determine whether the total length of the audio is less than a first threshold; and in response to the total length of the audio being less than the first threshold, acquire all sub-audio files of the audio.
  • the caching module is further configured to: determine the predefined length according to the total length of the audio, and determine whether the predefined length is greater than a second threshold; and respond to the predefined length greater than a second threshold, the predefined length is set to the second threshold.
  • system further includes: a recalculation module configured to recalculate the predefined length according to the new audio playback position selected by the user in response to the user changing the playback progress of the current audio on the browser side.
  • a recalculation module configured to recalculate the predefined length according to the new audio playback position selected by the user in response to the user changing the playback progress of the current audio on the browser side.
  • the system further includes: a judging module configured to judge whether the current playback progress accounts for the pre-defined length of the current cache and reaches a third threshold; When the ratio of the defined length reaches the third threshold, the next audio of the predefined length is obtained.
  • a computer device including: at least one processor; and a memory, where the memory stores computer instructions that can be executed on the processor, and the instructions are executed by the processor to The following steps are implemented: S1, open the websocket server on the server side, and establish a communication connection between the websocket server and the browser; S2, in response to receiving an audio playback request sent by the browser side, the server side will play according to the request.
  • the audio file is divided into multiple sub-audio files; S3, encode the sub-audio file to convert it into a binary file format suitable for streaming media transmission, and send the encoded sub-audio file to the browser through the websocket server; and S4, respond On the browser side, the binary file stream transmitted by the websocket server is received, and the sub-audio file of the binary file stream is asynchronously decoded and played.
  • dividing the audio file that needs to be played on the server side into multiple sub-audio files according to the request includes: on the server side, according to the size of the audio file, the audio file is divided according to a predefined number of bytes. file is split.
  • sending the encoded sub-audio files to the browser through the websocket server includes: obtaining a predefined number of the sub-audio files from the websocket server each time to be used in the The browser side caches audio of a predefined length.
  • acquiring a predefined number of the sub-audio files from the websocket server each time to cache audio of a predefined length on the browser side includes: judging whether the total length of the audio is less than a first a threshold; and in response to the total length of the audio being less than the first threshold, obtaining all sub-audio files of the audio.
  • acquiring a predefined number of the sub-audio files from the websocket server each time to cache audio of a predefined length on the browser side includes: determining the audio frequency according to the total length of the audio Predefining a length, and judging whether the predefined length is greater than a second threshold; and in response to the predefined length being greater than the second threshold, setting the predefined length to the second threshold.
  • the step further includes: in response to the user changing the playback progress of the current audio on the browser side, recalculating the predefined length according to the new audio playback position selected by the user.
  • the steps further include: judging whether the ratio of the current playback progress to the pre-defined length of this cache reaches a third threshold; and in response to the ratio of the current playback progress to the pre-defined length of this cache reaching the third threshold Three thresholds to get the next audio of a predefined length.
  • FIG. 2 it is a schematic diagram of the hardware structure of an embodiment of the computer device provided by the present invention for the above-mentioned Web-side audio online playback to prevent downloading.
  • the device includes a processor 301 and a memory 302 , and may further include an input device 303 and an output device 304 .
  • the processor 301 , the memory 302 , the input device 303 and the output device 304 may be connected by a bus or in other ways, and the connection by a bus is taken as an example in FIG. 2 .
  • the memory 302 as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs and modules, such as the Web-side audio online playback prevention download in the embodiment of the present application.
  • the method corresponds to the program instruction/module.
  • the processor 301 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 302, that is, the method for preventing download of online audio playback on the Web side according to the above method embodiment. .
  • the memory 302 can include a stored program area and a stored data area, wherein the stored program area can store the application program required by the operating system and at least one function; the stored data area can store the data created according to the use of the method for preventing downloading of audio online on the Web side. data etc. Additionally, memory 302 may include high speed random access memory, and may also include nonvolatile memory, such as at least one magnetic disk storage device, flash memory device, or other nonvolatile solid state storage device. In some embodiments, memory 302 may optionally include memory located remotely from processor 301, which may be connected to local modules via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • the input device 303 can receive input information such as user name and password.
  • the output device 304 may include a display device such as a display screen.
  • One or more program instructions/modules corresponding to the method for preventing downloading of audio online on the Web side are stored in the memory 302, and when executed by the processor 301, the method for online audio online playback on the Web side in any of the above-mentioned method embodiments is executed to prevent downloading. .
  • Any embodiment of the computer device that executes the above-mentioned method for preventing downloading of audio online at the web end can achieve the same or similar effects as any of the foregoing method embodiments corresponding to it.
  • the present invention further provides a computer-readable storage medium 400 , where the computer-readable storage medium 400 stores a computer program 402 for executing the above method when executed by the processor 401 .
  • the storage medium can be a read-only memory, a magnetic disk or an optical disk, and the like.

Abstract

Disclosed in the present invention is a method and system for the online playback and downloading prevention of a Web client audio, a device, and a medium. The method comprises: starting a websocket server at a server end, and establishing a communication connection between the websocket server and a browser; in response to receiving an audio playback request sent by the browser end, splitting, at the server end, an audio file to be played into a plurality of subaudio files according to the request; encoding the subaudio files to convert same into a binary file format suitable for streaming media transmission, and sending the encoded subaudio files to the browser end by means of the websocket server; and in response to the browser end receiving binary file streams transmitted by the websocket server, asynchronously decoding the binary file stream subaudio files and playing same. In the present invention, the websocket server is used to transmit the split audio files, thereby ensuring the security of the audio files.

Description

Web端音频在线播放防止下载的方法、系统、设备及介质Method, system, device and medium for preventing download of online audio playback on web
本申请要求于2020年09月21日提交中国国家知识产权局,申请号为202010996328.9,发明名称为“Web端音频在线播放防止下载的方法、系统、设备及介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims to be submitted to the State Intellectual Property Office of China on September 21, 2020, the application number is 202010996328.9, and the title of the invention is "The method, system, device and medium for preventing download of audio online on the Web". The entire contents of which are incorporated herein by reference.
技术领域technical field
本发明涉及音频播放领域,更具体地,特别是指一种Web(World Wide Web,全球广域网,建立在Internet上的一种网络服务)端音频在线播放防止下载的方法、系统、计算机设备及计算机可读存储介质。The present invention relates to the field of audio playback, and more particularly, to a method, system, computer equipment and computer for preventing download of audio online playing on a Web (World Wide Web, a global wide area network, a network service established on the Internet). Readable storage medium.
背景技术Background technique
随着在线音乐服务的发展,越来越多的用户在移动或计算机设备上安装音乐播放软件。这些软件大都使用实时流式传输完成音视频文件的传输,在版权保护方面,可以通过用户权限验证、原始文件保存策略等方式,达到限制用户恶意下载的目的。但是要求用户必须在移动或计算机设备上安装软件来实现。With the development of online music services, more and more users install music playing software on mobile or computer devices. Most of these software use real-time streaming to complete the transmission of audio and video files. In terms of copyright protection, users can be restricted from malicious downloads through user permission verification and original file preservation strategies. But it requires the user to have software installed on the mobile or computer device to do so.
当用户使用浏览器进行音视频在线播放,往常的做法使用flash(一种集动画创作与应用程序开发于一身的创作软件)等技术实现在线播放,随着浏览器的发展,flash技术逐渐被HTML5(HyperText Markup Language 5,超文本标记语言,构建网页内容的一种语言描述方式)的audio标签替代,但是audio必须指定音频文件的源文件地址,该地址指向的是存储在服务器 上的某个音频文件,通过一定的技术方案可以在浏览器实现下载功能的限制,只是用户无法看到下载按钮等操作,但是有一定技术能力的人员,依然可以通过查看浏览器的DOM(Document Object Model,文档对象模型)元素或者查看音频缓存文件的形式,获得音频的完整原始文件,不利于版权保护。When users use browsers to play audio and video online, the usual practice is to use flash (a creation software that integrates animation creation and application development) and other technologies to achieve online playback. With the development of browsers, flash technology is gradually used by HTML5. (HyperText Markup Language 5, hypertext markup language, a language description method for building web content), but audio must specify the source file address of the audio file, which points to an audio file stored on the server. For files, the download function can be limited in the browser through certain technical solutions, but the user cannot see the download button and other operations, but those with certain technical capabilities can still view the browser's DOM (Document Object Model, document object). model) element or viewing the form of the audio cache file to obtain the complete original file of the audio, which is not conducive to copyright protection.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本发明实施例的目的在于提出一种Web端音频在线播放防止下载的方法、系统、计算机设备及计算机可读存储介质,通过使用websocket服务器对分割后的音频文件进行传输,使得音频源文件不会通过audio标签预置在浏览器的DOM文件中,也不会在浏览器缓存中存放完整的音频数据文件,普通用户和技术人员无法从DOM中获得音频数据文件的服务器地址,也无法对原始音频数据文件进行还原,从而保证了音频原始文件不被其他人员恶意获取,从而达到了保护音频版权的目的。In view of this, the purpose of the embodiment of the present invention is to propose a method, system, computer equipment and computer-readable storage medium for preventing download of audio online on the Web side, by using the websocket server to transmit the divided audio file, so that the audio The source file will not be preset in the browser's DOM file through the audio tag, nor will the complete audio data file be stored in the browser's cache. Ordinary users and technicians cannot obtain the server address of the audio data file from the DOM. The original audio data file cannot be restored, thereby ensuring that the original audio file is not maliciously obtained by other persons, thereby achieving the purpose of protecting the audio copyright.
基于上述目的,本发明实施例的一方面提供了一种Web端音频在线播放防止下载的方法,包括如下步骤:在服务器端开启websocket服务器,并建立所述websocket服务器与浏览器之间的通信连接;响应于接收到所述浏览器端发送的音频播放请求,在服务器端根据所述请求将需要播放的音频文件分割成多个子音频文件;对所述子音频文件进行编码以转换为适合流媒体传输的二进制文件格式,并通过所述websocket服务器将编码后的所述子音频文件发送到所述浏览器端;以及响应于所述浏览器端接收到所述websocket服务器传输的二进制文件流,对二进制文件流子音频文件进行异步解码并播放。Based on the above purpose, one aspect of the embodiments of the present invention provides a method for preventing download of audio online on a Web side, including the following steps: starting a websocket server on a server side, and establishing a communication connection between the websocket server and a browser ; In response to receiving the audio playback request sent by the browser, at the server side, the audio file that needs to be played is divided into a plurality of sub-audio files according to the request; The sub-audio files are encoded to be converted to be suitable for streaming media The transmitted binary file format, and the encoded sub-audio file is sent to the browser through the websocket server; and in response to the browser receiving the binary file stream transmitted by the websocket server, to the browser A binary file streams sub-audio files for asynchronous decoding and playback.
在一些实施方式中,所述服务器端根据所述请求将需要播放的音频文件分割成多个子音频文件包括:在服务器端根据所述音频文件的大小,按 照预定义的字节数对所述音频文件进行分割。In some embodiments, dividing the audio file that needs to be played on the server side into multiple sub-audio files according to the request includes: on the server side, according to the size of the audio file, the audio file is divided according to a predefined number of bytes. file is split.
在一些实施方式中,通过所述websocket服务器将编码后的所述子音频文件发送到所述浏览器端包括:每次从所述websocket服务器获取预定义数量的所述子音频文件以在所述浏览器端缓存预定义长度的音频。In some implementation manners, sending the encoded sub-audio files to the browser through the websocket server includes: obtaining a predefined number of the sub-audio files from the websocket server each time to be used in the The browser side caches audio of a predefined length.
在一些实施方式中,所述每次从所述websocket服务器获取预定义数量的所述子音频文件以在所述浏览器端缓存预定义长度的音频包括:判断所述音频总长度是否小于第一阈值;以及响应于所述音频总长度小于第一阈值,获取所述音频的所有子音频文件。In some implementation manners, acquiring a predefined number of the sub-audio files from the websocket server each time to cache audio of a predefined length on the browser side includes: judging whether the total length of the audio is less than a first a threshold; and in response to the total length of the audio being less than the first threshold, obtaining all sub-audio files of the audio.
在一些实施方式中,所述每次从所述websocket服务器获取预定义数量的所述子音频文件以在所述浏览器端缓存预定义长度的音频包括:根据所述音频的总长度确定所述预定义长度,并判断所述预定义长度是否大于第二阈值;以及响应于所述预定义长度大于第二阈值,将所述预定义长度设置为所述第二阈值。In some embodiments, acquiring a predefined number of the sub-audio files from the websocket server each time to cache audio of a predefined length on the browser side includes: determining the audio frequency according to the total length of the audio Predefining a length, and judging whether the predefined length is greater than a second threshold; and in response to the predefined length being greater than the second threshold, setting the predefined length to the second threshold.
在一些实施方式中,方法还包括:响应于用户在所述浏览器端改变当前音频的播放进度,根据用户选择的新的音频播放位置对预定义长度进行重新计算。In some embodiments, the method further includes: in response to the user changing the playback progress of the current audio on the browser side, recalculating the predefined length according to the new audio playback position selected by the user.
在一些实施方式中,方法还包括:判断当前的播放进度占本次缓存的预定义长度的比例是否达到第三阈值;以及响应于当前的播放进度占本次缓存的预定义长度的比例达到第三阈值,获取下一次预定义长度的音频。In some embodiments, the method further includes: judging whether the ratio of the current playback progress to the pre-defined length of this cache reaches a third threshold; and in response to the ratio of the current playback progress to the pre-defined length of this cache reaching the third threshold Three thresholds to get the next audio of a predefined length.
本发明实施例的另一方面,还提供了一种Web端音频在线播放防止下载系统,包括:连接模块,配置用于在服务器端开启websocket服务器,并建立所述websocket服务器与浏览器之间的通信连接;分割模块,配置用于响应于接收到所述浏览器端发送的音频播放请求,在服务器端根据所述请求将需要播放的音频文件分割成多个子音频文件;编码模块,配置用于对 所述子音频文件进行编码以转换为适合流媒体传输的二进制文件格式,并通过所述websocket服务器将编码后的所述子音频文件发送到所述浏览器端;以及解码模块,配置用于响应于所述浏览器端接收到所述websocket服务器传输的二进制文件流,对二进制文件流子音频文件进行异步解码并播放。In another aspect of the embodiments of the present invention, there is also provided a system for preventing download of online audio playback on the Web side, including: a connection module, configured to enable a websocket server on the server side, and establish a connection between the websocket server and the browser. A communication connection; a splitting module, configured to split the audio file to be played into a plurality of sub-audio files on the server side according to the request in response to receiving an audio playback request sent by the browser; an encoding module, configured to Encoding the sub-audio file to convert it into a binary file format suitable for streaming media transmission, and sending the encoded sub-audio file to the browser through the websocket server; and a decoding module, configured for In response to the browser side receiving the binary file stream transmitted by the websocket server, the binary file stream sub-audio file is asynchronously decoded and played.
本发明实施例的又一方面,还提供了一种计算机设备,包括:至少一个处理器;以及存储器,所述存储器存储有可在所述处理器上运行的计算机指令,所述指令由所述处理器执行时实现如上方法的步骤。In yet another aspect of the embodiments of the present invention, there is also provided a computer device, comprising: at least one processor; and a memory, where the memory stores computer instructions that can be executed on the processor, and the instructions are executed by the processor. The processor implements the steps of the above method when executed.
本发明实施例的再一方面,还提供了一种计算机可读存储介质,计算机可读存储介质存储有被处理器执行时实现如上方法步骤的计算机程序。In yet another aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, where the computer-readable storage medium stores a computer program that implements the above method steps when executed by a processor.
本发明具有以下有益技术效果:通过使用websocket服务器对分割后的音频文件进行传输,使得音频源文件不会通过audio标签预置在浏览器的DOM文件中,也不会在浏览器缓存中存放完整的音频数据文件,普通用户和技术人员无法从DOM中获得音频数据文件的服务器地址,也无法对原始音频数据文件进行还原,从而保证了音频原始文件不被其他人员恶意获取,从而达到了保护音频版权的目的。The invention has the following beneficial technical effects: by using the websocket server to transmit the divided audio file, the audio source file will not be preset in the DOM file of the browser through the audio tag, nor will it be completely stored in the browser cache. Ordinary users and technical personnel cannot obtain the server address of the audio data file from the DOM, nor can they restore the original audio data file, thus ensuring that the original audio file is not maliciously obtained by other personnel, thus achieving the protection of audio Copyright purpose.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的实施例。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other embodiments can also be obtained according to these drawings without creative efforts.
图1为本发明提供的Web端音频在线播放防止下载的方法的实施例的示意图;Fig. 1 is a schematic diagram of an embodiment of a method for preventing downloading of audio online on a Web side provided by the present invention;
图2为本发明提供的Web端音频在线播放防止下载的计算机设备的实施例的硬件结构示意图;2 is a schematic diagram of the hardware structure of an embodiment of a computer device for preventing downloading of audio online on a Web side provided by the present invention;
图3为本发明提供的Web端音频在线播放防止下载的计算机可读存储介质的示意图;3 is a schematic diagram of a computer-readable storage medium for preventing downloading of audio online on a Web side provided by the present invention;
图4为本发明提供的Web端音频在线播放防止下载的系统的结构示意图。FIG. 4 is a schematic structural diagram of a system for preventing downloading of audio online at the web end provided by the present invention.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明实施例进一步详细说明。In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention will be further described in detail below with reference to the specific embodiments and the accompanying drawings.
需要说明的是,本发明实施例中所有使用“第一”和“第二”的表述均是为了区分两个相同名称非相同的实体或者非相同的参量,可见“第一”“第二”仅为了表述的方便,不应理解为对本发明实施例的限定,后续实施例对此不再一一说明。It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for the purpose of distinguishing two entities with the same name but not the same or non-identical parameters. It can be seen that "first" and "second" It is only for the convenience of expression and should not be construed as a limitation to the embodiments of the present invention, and subsequent embodiments will not describe them one by one.
基于上述目的,本发明实施例的第一个方面,提出了一种Web端音频在线播放防止下载的方法的实施例。图1示出的是本发明提供的Web端音频在线播放防止下载的方法的实施例的示意图。如图1所示,本发明实施例包括如下步骤:Based on the above purpose, in a first aspect of the embodiments of the present invention, an embodiment of a method for preventing download of audio online at a web end is proposed. FIG. 1 shows a schematic diagram of an embodiment of a method for preventing downloading of audio online on a Web side provided by the present invention. As shown in Figure 1, the embodiment of the present invention includes the following steps:
S1、在服务器端开启websocket服务器,并建立websocket服务器与浏览器之间的通信连接;S1. Open the websocket server on the server side, and establish a communication connection between the websocket server and the browser;
S2、响应于接收到浏览器端发送的音频播放请求,在服务器端根据请求将需要播放的音频文件分割成多个子音频文件;S2, in response to receiving the audio playback request sent by the browser, at the server side, the audio file to be played is divided into a plurality of sub-audio files according to the request;
S3、对子音频文件进行编码以转换为适合流媒体传输的二进制文件格式,并通过websocket服务器将编码后的子音频文件发送到浏览器端;以及S3. Encode the sub-audio file to convert it into a binary file format suitable for streaming media transmission, and send the encoded sub-audio file to the browser through the websocket server; and
S4、响应于浏览器端接收到websocket服务器传输的二进制文件流,对二进制文件流子音频文件进行异步解码并播放。S4. In response to the browser receiving the binary file stream transmitted by the websocket server, asynchronously decode and play the sub-audio file of the binary file stream.
流媒体(Streaming Media)技术是指将一连串的媒体数据压缩后,以流的方式在网络中分段传送,实现在网络上实时传输影音以供观赏的一种技术。流媒体实际指的是一种新的媒体传送方式,有声音流、视频流、文本流、图像流、动画流等,而非一种新的媒体。流式传输是指通过网络传送媒体(音频、视频等)技术的总称。实现流式传输主要有两种方式:顺序流式传输(progressive streaming)和实时流式传输(real time streaming)。Streaming Media technology refers to a technology that compresses a series of media data and transmits it in segments in a streaming manner to realize real-time transmission of video and audio on the network for viewing. Streaming media actually refers to a new media transmission method, including sound stream, video stream, text stream, image stream, animation stream, etc., rather than a new media. Streaming is a general term for technologies that transmit media (audio, video, etc.) over a network. There are two main ways to implement streaming: progressive streaming and real time streaming.
在服务器端开启websocket服务器,并建立websocket服务器与浏览器之间的通信连接。本发明依赖流媒体传输方式中的实时流式传输方式,通过websocket在浏览器与服务器之间建立持续稳定的连接。服务器端会启用websocket服务器,浏览器端通过JavaScript创建websocket连接,服务器端将需要播放的音频文件数据发送到websocket服务器,浏览器端对创建的websocket连接进行监听,当接收到服务器端发送的音频文件数据时,执行相应的操作。WebSocket是一种在单个TCP(Transmission Control Protocol,传输控制协议)连接上进行全双工通信的协议。WebSocket使得客户端和服务器之间的数据交换变得更加简单,允许服务端主动向客户端推送数据。在WebSocket API(Application Programming Interface,应用程序接口)中,浏览器和服务器只需要完成一次握手,两者之间就直接可以创建持久性的连接,并进行双向数据传输。Open the websocket server on the server side, and establish a communication connection between the websocket server and the browser. The invention relies on the real-time streaming transmission mode in the streaming media transmission mode, and establishes a continuous and stable connection between the browser and the server through the websocket. The server side will enable the websocket server, the browser side will create a websocket connection through JavaScript, the server side will send the audio file data to be played to the websocket server, the browser side will monitor the created websocket connection, and when it receives the audio file sent by the server side data, perform the corresponding operation. WebSocket is a protocol for full-duplex communication over a single TCP (Transmission Control Protocol) connection. WebSocket makes data exchange between client and server easier, allowing the server to actively push data to the client. In the WebSocket API (Application Programming Interface), the browser and the server only need to complete a handshake once, and a persistent connection can be created directly between the two, and two-way data transmission can be performed.
响应于接收到浏览器端发送的音频播放请求,在服务器端根据请求将需要播放的音频文件分割成多个子音频文件。为保证数据传输的稳定性和实时性,可以将音频文件分割成多个子音频文件进行传输。In response to receiving the audio playback request sent by the browser, the server divides the audio file to be played into multiple sub-audio files according to the request. To ensure the stability and real-time performance of data transmission, the audio file can be divided into multiple sub-audio files for transmission.
在一些实施方式中,所述服务器端根据所述请求将需要播放的音频文件分割成多个子音频文件包括:在服务器端根据所述音频文件的大小,按 照预定义的字节数对所述音频文件进行分割。服务器端根据音频文件的总大小,按照预定义的字节数,对音频文件进行分割。分割之后的音频文件不会影响音频的正常播放,即保证音频文件不被破环。分割的文件数=文件总大小/预定义字节数。In some embodiments, dividing the audio file that needs to be played on the server side into multiple sub-audio files according to the request includes: on the server side, according to the size of the audio file, the audio file is divided according to a predefined number of bytes. file is split. The server divides the audio file according to the total size of the audio file and according to the predefined number of bytes. The split audio file will not affect the normal playback of the audio, that is, to ensure that the audio file is not broken. Number of divided files = total file size / number of predefined bytes.
对子音频文件进行编码以转换为适合流媒体传输的二进制文件格式,并通过websocket服务器将编码后的子音频文件发送到浏览器端。在服务器端,对分割之后的音频文件进行编码,编码之后的音频文件格式为二进制文件流,满足流媒体传输要求。The sub-audio file is encoded to be converted into a binary file format suitable for streaming media transmission, and the encoded sub-audio file is sent to the browser through the websocket server. On the server side, the split audio file is encoded, and the encoded audio file format is a binary file stream, which meets the streaming media transmission requirements.
响应于浏览器端接收到websocket服务器传输的二进制文件流,对二进制文件流子音频文件进行异步解码并播放。在客户端(即浏览器),接收来自服务器端发来的二进制文件流,当检测到一次文件流传输完毕,调用Web Audio API(网络音频接口)提供的AudioContext.decodeAudioData()方法,对二进制文件流音频文件进行异步解码。In response to the browser side receiving the binary file stream transmitted by the websocket server, it asynchronously decodes and plays the sub-audio file of the binary file stream. On the client (ie browser), the binary file stream sent from the server is received, and when it is detected that the transmission of a file stream is completed, the AudioContext.decodeAudioData() method provided by the Web Audio API (network audio interface) is called to decode the binary file. Streaming audio files for asynchronous decoding.
在一些实施方式中,通过所述websocket服务器将编码后的所述子音频文件发送到所述浏览器端包括:每次从所述websocket服务器获取预定义数量的所述子音频文件以在所述浏览器端缓存预定义长度的音频。由于浏览器的音频播放依赖网络环境,网络状态的好坏对音频播放质量和用户体验影响较大,对网络环境不是很好的场景,需要进行预缓存。自动检测当前音频播放进度,在音频第一次加载播放时,可以一次性从服务器端获取指定数量的音频分割文件,提前在浏览器缓存预定义长度的音频。In some implementation manners, sending the encoded sub-audio files to the browser through the websocket server includes: obtaining a predefined number of the sub-audio files from the websocket server each time to be used in the The browser side caches audio of a predefined length. Since the audio playback of the browser depends on the network environment, the quality of the network status has a great impact on the audio playback quality and user experience, and it is not very good for the network environment, so pre-cache is required. Automatically detect the current audio playback progress. When the audio is loaded and played for the first time, a specified number of audio split files can be obtained from the server at one time, and the audio of a predefined length can be cached in the browser in advance.
在一些实施方式中,所述每次从所述websocket服务器获取预定义数量的所述子音频文件以在所述浏览器端缓存预定义长度的音频包括:判断所述音频总长度是否小于第一阈值;以及响应于所述音频总长度小于第一阈值,获取所述音频的所有子音频文件。例如,第一阈值可以是一分钟,当音频总长度小于一分钟,则一次性从服务器端获取该音频文件的全部子音 频文件。In some implementation manners, acquiring a predefined number of the sub-audio files from the websocket server each time to cache audio of a predefined length on the browser side includes: judging whether the total length of the audio is less than a first a threshold; and in response to the total length of the audio being less than the first threshold, obtaining all sub-audio files of the audio. For example, the first threshold may be one minute, and when the total length of the audio is less than one minute, all sub-audio files of the audio file are acquired from the server at one time.
在一些实施方式中,所述每次从所述websocket服务器获取预定义数量的所述子音频文件以在所述浏览器端缓存预定义长度的音频包括:根据所述音频的总长度确定所述预定义长度,并判断所述预定义长度是否大于第二阈值;以及响应于所述预定义长度大于第二阈值,将所述预定义长度设置为所述第二阈值。预定义长度可以根据音频总长度进行计算,通常是音频总长度的20%,第二阈值可以例如是五分钟,当计算得到的预定义长度大于五分钟,则限制预定义长度为五分钟。计算音频总长度的百分比可以通过配置文件进行修改。In some embodiments, acquiring a predefined number of the sub-audio files from the websocket server each time to cache audio of a predefined length on the browser side includes: determining the audio frequency according to the total length of the audio Predefining a length, and judging whether the predefined length is greater than a second threshold; and in response to the predefined length being greater than the second threshold, setting the predefined length to the second threshold. The predefined length can be calculated according to the total length of the audio, which is usually 20% of the total length of the audio. The second threshold can be, for example, five minutes. When the calculated predefined length is greater than five minutes, the predefined length is limited to five minutes. Calculate the percentage of the total audio length can be modified through the configuration file.
在一些实施方式中,方法还包括:响应于用户在所述浏览器端改变当前音频的播放进度,根据用户选择的新的音频播放位置对预定义长度进行重新计算。如果用户在浏览器端改变当前音频播放进度,即跳转到音频某个时间点执行播放动作,可以根据用户选择的音频播放位置,重新从服务器端获取音频数据文件,并对预定义长度进行重新计算。如果用户跳转的时间点正好是已经预缓存的地方,可以直接进行播放。In some embodiments, the method further includes: in response to the user changing the playback progress of the current audio on the browser side, recalculating the predefined length according to the new audio playback position selected by the user. If the user changes the current audio playback progress on the browser side, that is, jumps to a certain time point in the audio to perform the playback action, the audio data file can be re-obtained from the server according to the audio playback position selected by the user, and the predefined length can be re-created. calculate. If the user jumps to a place that has been pre-cached, it can be played directly.
在一些实施方式中,方法还包括:判断当前的播放进度占本次缓存的预定义长度的比例是否达到第三阈值;以及响应于当前的播放进度占本次缓存的预定义长度的比例达到第三阈值,获取下一次预定义长度的音频。例如,第三阈值可以是70%,当检测到当前的播放进度占本次缓存的预定义长度的比例已达到70%时,向服务器端发送数据请求,再次获取预定义长度的音频文件,并将得到的音频文件进行解析,保存在浏览器的缓存中(通常是计算机内存或者临时文件目录),为继续播放做好准备。如果剩余的未播放音频长度小于预定义长度,则服务器端将剩余的未播放音频数据文件全部传输给浏览器。In some embodiments, the method further includes: judging whether the ratio of the current playback progress to the pre-defined length of this cache reaches a third threshold; and in response to the ratio of the current playback progress to the pre-defined length of this cache reaching the third threshold Three thresholds to get the next audio of a predefined length. For example, the third threshold may be 70%. When it is detected that the current playback progress accounts for 70% of the pre-defined length of the current cache, a data request is sent to the server, and the audio file of the pre-defined length is obtained again, and The obtained audio file is parsed and saved in the browser's cache (usually computer memory or temporary file directory), ready for continued playback. If the length of the remaining unplayed audio is less than the predefined length, the server transmits all the remaining unplayed audio data files to the browser.
本发明实施例依赖流媒体传输方式中的实时流式传输方式,通过 websocket在浏览器与服务器之间建立持续稳定的连接,服务器端根据音频文件大小按照指定字节将音频文件分割为子文件,当浏览器发起音频播放请求,服务器端将分割之后的音频子文件片段进行编码,然后将编码之后的音频子文件数据推送到浏览器端,浏览器接收到编码音频文件数据,并对数据进行解码操作,通过调用Web Audio API,实现音频文件的播放。本发明同时包含音频预缓存技术,保证音频播放的实时性,解决音频播放延迟问题。本发明通过分割音频文件并进行编码,保证了音频源文件不被用户直接访问,用户无法从网页DOM元素或者浏览器缓存中获得音频的原始文件,从而达到音频在线实时播放并防止下载、保护音频版权的目的。The embodiment of the present invention relies on the real-time streaming transmission mode in the streaming media transmission mode, establishes a continuous and stable connection between the browser and the server through the websocket, and the server divides the audio file into sub-files according to the size of the audio file according to the specified bytes, When the browser initiates an audio playback request, the server encodes the segmented audio sub-file segments, and then pushes the encoded audio sub-file data to the browser. The browser receives the encoded audio file data and decodes the data. Operation, realize the playback of audio files by calling the Web Audio API. The present invention also includes audio pre-buffering technology, which ensures the real-time performance of audio playback and solves the problem of audio playback delay. By dividing and encoding the audio files, the present invention ensures that the audio source files are not directly accessed by the user, and the user cannot obtain the original audio files from the DOM elements of the web page or the browser cache, so as to achieve the real-time online playback of the audio and prevent downloading and protect the audio. Copyright purpose.
需要特别指出的是,上述Web端音频在线播放防止下载的方法的各个实施例中的各个步骤均可以相互交叉、替换、增加、删减,因此,这些合理的排列组合变换之于Web端音频在线播放防止下载的方法也应当属于本发明的保护范围,并且不应将本发明的保护范围局限在实施例之上。It should be particularly pointed out that the various steps in the various embodiments of the above-mentioned method for preventing downloading of audio online on the Web side can be crossed, replaced, added, and deleted. The method for preventing download by playing should also belong to the protection scope of the present invention, and the protection scope of the present invention should not be limited to the embodiments.
如图4所示,基于上述目的,本发明实施例的第二个方面,提出了一种Web端音频在线播放防止下载的系统500,包括:连接模块501,配置用于在服务器端开启websocket服务器,并建立所述websocket服务器与浏览器之间的通信连接;分割模块502,配置用于响应于接收到所述浏览器端发送的音频播放请求,在服务器端根据所述请求将需要播放的音频文件分割成多个子音频文件;编码模块504,配置用于对所述子音频文件进行编码以转换为适合流媒体传输的二进制文件格式,并通过所述websocket服务器将编码后的所述子音频文件发送到所述浏览器端;以及解码模块503,配置用于响应于所述浏览器端接收到所述websocket服务器传输的二进制文件流,对二进制文件流子音频文件进行异步解码并播放。As shown in FIG. 4 , based on the above purpose, in a second aspect of the embodiments of the present invention, a system 500 for preventing download of online audio playback on the Web side is proposed, including: a connection module 501 configured to enable a websocket server on the server side , and establish a communication connection between the websocket server and the browser; the segmentation module 502 is configured to respond to receiving the audio playback request sent by the browser, at the server according to the request to play the audio that needs to be played The file is divided into a plurality of sub-audio files; the encoding module 504 is configured to encode the sub-audio files to be converted into a binary file format suitable for streaming media transmission, and use the websocket server to encode the encoded sub-audio files. and the decoding module 503 is configured to asynchronously decode and play the sub-audio files of the binary file stream in response to the browser side receiving the binary file stream transmitted by the websocket server.
在一些实施方式中,所述分割模块502配置用于:在服务器端根据所述音频文件的大小,按照预定义的字节数对所述音频文件进行分割。In some embodiments, the splitting module 502 is configured to: split the audio file according to a predefined number of bytes on the server side according to the size of the audio file.
在一些实施方式中,系统还包括:缓存模块,配置用于每次从所述websocket服务器获取预定义数量的所述子音频文件以在所述浏览器端缓存预定义长度的音频。In some embodiments, the system further includes: a cache module configured to obtain a predefined number of the sub-audio files from the websocket server each time to cache audio of a predefined length on the browser side.
在一些实施方式中,所述缓存模块还配置用于:判断所述音频总长度是否小于第一阈值;以及响应于所述音频总长度小于第一阈值,获取所述音频的所有子音频文件。In some embodiments, the caching module is further configured to: determine whether the total length of the audio is less than a first threshold; and in response to the total length of the audio being less than the first threshold, acquire all sub-audio files of the audio.
在一些实施方式中,所述缓存模块还配置用于:根据所述音频的总长度确定所述预定义长度,并判断所述预定义长度是否大于第二阈值;以及响应于所述预定义长度大于第二阈值,将所述预定义长度设置为所述第二阈值。In some embodiments, the caching module is further configured to: determine the predefined length according to the total length of the audio, and determine whether the predefined length is greater than a second threshold; and respond to the predefined length greater than a second threshold, the predefined length is set to the second threshold.
在一些实施方式中,系统还包括:重计算模块,配置用于响应于用户在所述浏览器端改变当前音频的播放进度,根据用户选择的新的音频播放位置对预定义长度进行重新计算。In some embodiments, the system further includes: a recalculation module configured to recalculate the predefined length according to the new audio playback position selected by the user in response to the user changing the playback progress of the current audio on the browser side.
在一些实施方式中,系统还包括:判断模块,配置用于判断当前的播放进度占本次缓存的预定义长度的比例是否达到第三阈值;以及响应于当前的播放进度占本次缓存的预定义长度的比例达到第三阈值,获取下一次预定义长度的音频。In some embodiments, the system further includes: a judging module configured to judge whether the current playback progress accounts for the pre-defined length of the current cache and reaches a third threshold; When the ratio of the defined length reaches the third threshold, the next audio of the predefined length is obtained.
基于上述目的,本发明实施例的第三个方面,提出了一种计算机设备,包括:至少一个处理器;以及存储器,存储器存储有可在处理器上运行的计算机指令,指令由处理器执行以实现如下步骤:S1、在服务器端开启websocket服务器,并建立websocket服务器与浏览器之间的通信连接;S2、响应于接收到浏览器端发送的音频播放请求,在服务器端根据请求将需要播放的音频文件分割成多个子音频文件;S3、对子音频文件进行编码以转换为适合流媒体传输的二进制文件格式,并通过websocket服务器将编码后的子音频文件发送到浏览器端;以及S4、响应于浏览器端接收到websocket 服务器传输的二进制文件流,对二进制文件流子音频文件进行异步解码并播放。Based on the above objective, in a third aspect of the embodiments of the present invention, a computer device is provided, including: at least one processor; and a memory, where the memory stores computer instructions that can be executed on the processor, and the instructions are executed by the processor to The following steps are implemented: S1, open the websocket server on the server side, and establish a communication connection between the websocket server and the browser; S2, in response to receiving an audio playback request sent by the browser side, the server side will play according to the request. The audio file is divided into multiple sub-audio files; S3, encode the sub-audio file to convert it into a binary file format suitable for streaming media transmission, and send the encoded sub-audio file to the browser through the websocket server; and S4, respond On the browser side, the binary file stream transmitted by the websocket server is received, and the sub-audio file of the binary file stream is asynchronously decoded and played.
在一些实施方式中,所述服务器端根据所述请求将需要播放的音频文件分割成多个子音频文件包括:在服务器端根据所述音频文件的大小,按照预定义的字节数对所述音频文件进行分割。In some embodiments, dividing the audio file that needs to be played on the server side into multiple sub-audio files according to the request includes: on the server side, according to the size of the audio file, the audio file is divided according to a predefined number of bytes. file is split.
在一些实施方式中,通过所述websocket服务器将编码后的所述子音频文件发送到所述浏览器端包括:每次从所述websocket服务器获取预定义数量的所述子音频文件以在所述浏览器端缓存预定义长度的音频。In some implementation manners, sending the encoded sub-audio files to the browser through the websocket server includes: obtaining a predefined number of the sub-audio files from the websocket server each time to be used in the The browser side caches audio of a predefined length.
在一些实施方式中,所述每次从所述websocket服务器获取预定义数量的所述子音频文件以在所述浏览器端缓存预定义长度的音频包括:判断所述音频总长度是否小于第一阈值;以及响应于所述音频总长度小于第一阈值,获取所述音频的所有子音频文件。In some implementation manners, acquiring a predefined number of the sub-audio files from the websocket server each time to cache audio of a predefined length on the browser side includes: judging whether the total length of the audio is less than a first a threshold; and in response to the total length of the audio being less than the first threshold, obtaining all sub-audio files of the audio.
在一些实施方式中,所述每次从所述websocket服务器获取预定义数量的所述子音频文件以在所述浏览器端缓存预定义长度的音频包括:根据所述音频的总长度确定所述预定义长度,并判断所述预定义长度是否大于第二阈值;以及响应于所述预定义长度大于第二阈值,将所述预定义长度设置为所述第二阈值。In some embodiments, acquiring a predefined number of the sub-audio files from the websocket server each time to cache audio of a predefined length on the browser side includes: determining the audio frequency according to the total length of the audio Predefining a length, and judging whether the predefined length is greater than a second threshold; and in response to the predefined length being greater than the second threshold, setting the predefined length to the second threshold.
在一些实施方式中,步骤还包括:响应于用户在所述浏览器端改变当前音频的播放进度,根据用户选择的新的音频播放位置对预定义长度进行重新计算。In some embodiments, the step further includes: in response to the user changing the playback progress of the current audio on the browser side, recalculating the predefined length according to the new audio playback position selected by the user.
在一些实施方式中,步骤还包括:判断当前的播放进度占本次缓存的预定义长度的比例是否达到第三阈值;以及响应于当前的播放进度占本次缓存的预定义长度的比例达到第三阈值,获取下一次预定义长度的音频。In some embodiments, the steps further include: judging whether the ratio of the current playback progress to the pre-defined length of this cache reaches a third threshold; and in response to the ratio of the current playback progress to the pre-defined length of this cache reaching the third threshold Three thresholds to get the next audio of a predefined length.
如图2所示,为本发明提供的上述Web端音频在线播放防止下载的计 算机设备的一个实施例的硬件结构示意图。As shown in Figure 2, it is a schematic diagram of the hardware structure of an embodiment of the computer device provided by the present invention for the above-mentioned Web-side audio online playback to prevent downloading.
以如图2所示的装置为例,在该装置中包括一个处理器301以及一个存储器302,并还可以包括:输入装置303和输出装置304。Taking the device shown in FIG. 2 as an example, the device includes a processor 301 and a memory 302 , and may further include an input device 303 and an output device 304 .
处理器301、存储器302、输入装置303和输出装置304可以通过总线或者其他方式连接,图2中以通过总线连接为例。The processor 301 , the memory 302 , the input device 303 and the output device 304 may be connected by a bus or in other ways, and the connection by a bus is taken as an example in FIG. 2 .
存储器302作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的Web端音频在线播放防止下载的方法对应的程序指令/模块。处理器301通过运行存储在存储器302中的非易失性软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例的Web端音频在线播放防止下载的方法。The memory 302, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs and modules, such as the Web-side audio online playback prevention download in the embodiment of the present application. The method corresponds to the program instruction/module. The processor 301 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 302, that is, the method for preventing download of online audio playback on the Web side according to the above method embodiment. .
存储器302可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据Web端音频在线播放防止下载的方法的使用所创建的数据等。此外,存储器302可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器302可选包括相对于处理器301远程设置的存储器,这些远程存储器可以通过网络连接至本地模块。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 302 can include a stored program area and a stored data area, wherein the stored program area can store the application program required by the operating system and at least one function; the stored data area can store the data created according to the use of the method for preventing downloading of audio online on the Web side. data etc. Additionally, memory 302 may include high speed random access memory, and may also include nonvolatile memory, such as at least one magnetic disk storage device, flash memory device, or other nonvolatile solid state storage device. In some embodiments, memory 302 may optionally include memory located remotely from processor 301, which may be connected to local modules via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
输入装置303可接收输入的用户名和密码等信息。输出装置304可包括显示屏等显示设备。The input device 303 can receive input information such as user name and password. The output device 304 may include a display device such as a display screen.
一个或者多个Web端音频在线播放防止下载的方法对应的程序指令/模块存储在存储器302中,当被处理器301执行时,执行上述任意方法实施例中的Web端音频在线播放防止下载的方法。One or more program instructions/modules corresponding to the method for preventing downloading of audio online on the Web side are stored in the memory 302, and when executed by the processor 301, the method for online audio online playback on the Web side in any of the above-mentioned method embodiments is executed to prevent downloading. .
执行上述Web端音频在线播放防止下载的方法的计算机设备的任何一个实施例,可以达到与之对应的前述任意方法实施例相同或者相类似的效果。Any embodiment of the computer device that executes the above-mentioned method for preventing downloading of audio online at the web end can achieve the same or similar effects as any of the foregoing method embodiments corresponding to it.
如图3所示,本发明还提供了一种计算机可读存储介质400,计算机可读存储介质400存储有被处理器401执行时执行如上方法的计算机程序402。As shown in FIG. 3 , the present invention further provides a computer-readable storage medium 400 , where the computer-readable storage medium 400 stores a computer program 402 for executing the above method when executed by the processor 401 .
最后需要说明的是,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关硬件来完成,Web端音频在线播放防止下载的方法的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,程序的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。上述计算机程序的实施例,可以达到与之对应的前述任意方法实施例相同或者相类似的效果。Finally, it should be noted that those of ordinary skill in the art can understand that all or part of the process in the method of the above-mentioned embodiment can be implemented by instructing the relevant hardware through a computer program. In a computer-readable storage medium, when the program is executed, it may include the processes of the foregoing method embodiments. The storage medium of the program may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM) or the like. The above computer program embodiments can achieve the same or similar effects as any of the foregoing method embodiments corresponding thereto.
以上是本发明公开的示例性实施例,但是应当注意,在不背离权利要求限定的本发明实施例公开的范围的前提下,可以进行多种改变和修改。根据这里描述的公开实施例的方法权利要求的功能、步骤和/或动作不需以任何特定顺序执行。此外,尽管本发明实施例公开的元素可以以个体形式描述或要求,但除非明确限制为单数,也可以理解为多个。The above are exemplary embodiments of the present disclosure, but it should be noted that various changes and modifications may be made without departing from the scope of the disclosure of the embodiments of the present invention as defined in the claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements disclosed in the embodiments of the present invention may be described or claimed in the singular, unless explicitly limited to the singular, the plural may also be construed.
应当理解的是,在本文中使用的,除非上下文清楚地支持例外情况,单数形式“一个”旨在也包括复数形式。还应当理解的是,在本文中使用的“和/或”是指包括一个或者一个以上相关联地列出的项目的任意和所有可能组合。It should be understood that, as used herein, the singular form "a" is intended to include the plural form as well, unless the context clearly supports an exception. It will also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
上述本发明实施例公开实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned embodiments of the present invention disclose the serial numbers of the embodiments only for description, and do not represent the advantages and disadvantages of the embodiments.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium. The storage medium can be a read-only memory, a magnetic disk or an optical disk, and the like.
所属领域的普通技术人员应当理解:以上任何实施例的讨论仅为示例性的,并非旨在暗示本发明实施例公开的范围(包括权利要求)被限于这些例子;在本发明实施例的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,并存在如上的本发明实施例的不同方面的许多其它变化,为了简明它们没有在细节中提供。因此,凡在本发明实施例的精神和原则之内,所做的任何省略、修改、等同替换、改进等,均应包含在本发明实施例的保护范围之内。Those of ordinary skill in the art should understand that the discussion of any of the above embodiments is only exemplary, and is not intended to imply that the scope (including the claims) disclosed by the embodiments of the present invention is limited to these examples; under the idea of the embodiments of the present invention , the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the above embodiments of the present invention, which are not provided in detail for the sake of brevity. Therefore, any omission, modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiments of the present invention should be included within the protection scope of the embodiments of the present invention.

Claims (10)

  1. 一种Web端音频在线播放防止下载的方法,其特征在于,包括以下步骤:A method for preventing downloading of audio online on a Web side, comprising the following steps:
    在服务器端开启websocket服务器,并建立所述websocket服务器与浏览器之间的通信连接;Open the websocket server on the server side, and establish a communication connection between the websocket server and the browser;
    响应于接收到所述浏览器端发送的音频播放请求,在服务器端根据所述请求将需要播放的音频文件分割成多个子音频文件;In response to receiving the audio playback request sent by the browser, at the server, the audio file that needs to be played is divided into a plurality of sub-audio files according to the request;
    对所述子音频文件进行编码以转换为适合流媒体传输的二进制文件格式,并通过所述websocket服务器将编码后的所述子音频文件发送到所述浏览器端;以及encoding the sub-audio file to convert into a binary file format suitable for streaming media transmission, and sending the encoded sub-audio file to the browser through the websocket server; and
    响应于所述浏览器端接收到所述websocket服务器传输的二进制文件流,对二进制文件流子音频文件进行异步解码并播放。In response to the browser side receiving the binary file stream transmitted by the websocket server, the binary file stream sub-audio file is asynchronously decoded and played.
  2. 根据权利要求1所述的方法,其特征在于,所述在服务器端根据所述请求将需要播放的音频文件分割成多个子音频文件包括:The method according to claim 1, wherein the dividing the audio file to be played into multiple sub-audio files on the server side according to the request comprises:
    在服务器端根据所述音频文件的大小,按照预定义的字节数对所述音频文件进行分割。On the server side, according to the size of the audio file, the audio file is divided according to a predefined number of bytes.
  3. 根据权利要求1所述的方法,其特征在于,通过所述websocket服务器将编码后的所述子音频文件发送到所述浏览器端包括:The method according to claim 1, wherein sending the encoded sub-audio file to the browser through the websocket server comprises:
    每次从所述websocket服务器获取预定义数量的所述子音频文件以在所述浏览器端缓存预定义长度的音频。Each time a predefined number of the sub-audio files are obtained from the websocket server to cache audio of a predefined length on the browser side.
  4. 根据权利要求3所述的方法,其特征在于,所述每次从所述websocket服务器获取预定义数量的所述子音频文件以在所述浏览器端缓存预定义长度的音频包括:The method according to claim 3, wherein the acquiring a predefined number of the sub-audio files from the websocket server each time to cache the audio of the predefined length on the browser side comprises:
    判断所述音频总长度是否小于第一阈值;以及determining whether the total length of the audio is less than a first threshold; and
    响应于所述音频总长度小于第一阈值,获取所述音频的所有子音频文件。In response to the total length of the audio being less than the first threshold, all sub-audio files of the audio are obtained.
  5. 根据权利要求3所述的方法,其特征在于,所述每次从所述websocket服务器获取预定义数量的所述子音频文件以在所述浏览器端缓存预定义长度的音频包括:The method according to claim 3, wherein the acquiring a predefined number of the sub-audio files from the websocket server each time to cache the audio of the predefined length on the browser side comprises:
    根据所述音频的总长度确定所述预定义长度,并判断所述预定义长度是否大于第二阈值;以及determining the predefined length according to the total length of the audio, and judging whether the predefined length is greater than a second threshold; and
    响应于所述预定义长度大于第二阈值,将所述预定义长度设置为所述第二阈值。In response to the predefined length being greater than a second threshold, the predefined length is set to the second threshold.
  6. 根据权利要求5所述的方法,其特征在于,还包括:The method of claim 5, further comprising:
    响应于用户在所述浏览器端改变当前音频的播放进度,根据用户选择的新的音频播放位置对预定义长度进行重新计算。In response to the user changing the playback progress of the current audio on the browser side, the predefined length is recalculated according to the new audio playback position selected by the user.
  7. 根据权利要求3所述的方法,其特征在于,还包括:The method of claim 3, further comprising:
    判断当前的播放进度占本次缓存的预定义长度的比例是否达到第三阈值;以及Determine whether the ratio of the current playback progress to the predefined length of the current cache reaches a third threshold; and
    响应于当前的播放进度占本次缓存的预定义长度的比例达到第三阈值,获取下一次预定义长度的音频。In response to the ratio of the current playback progress to the current buffered predefined length reaching the third threshold, acquire the audio of the next predefined length.
  8. 一种Web端音频在线播放防止下载的系统,其特征在于,包括:A system for preventing downloading of audio online on a Web side, comprising:
    连接模块,配置用于在服务器端开启websocket服务器,并建立所述websocket服务器与浏览器之间的通信连接;a connection module, configured to open the websocket server on the server side, and establish a communication connection between the websocket server and the browser;
    分割模块,配置用于响应于接收到所述浏览器端发送的音频播放请求,在服务器端根据所述请求将需要播放的音频文件分割成多个子音频文件;A splitting module, configured to split the audio file to be played into a plurality of sub-audio files on the server side according to the request in response to receiving the audio playback request sent by the browser;
    编码模块,配置用于对所述子音频文件进行编码以转换为适合流媒体传输的二进制文件格式,并通过所述websocket服务器将编码后的所述子音频文件发送到所述浏览器端;以及an encoding module, configured to encode the sub-audio file to be converted into a binary file format suitable for streaming media transmission, and send the encoded sub-audio file to the browser through the websocket server; and
    解码模块,配置用于响应于所述浏览器端接收到所述websocket服务器传输的二进制文件流,对二进制文件流子音频文件进行异步解码并播放。The decoding module is configured to asynchronously decode and play the sub-audio files of the binary file stream in response to the browser receiving the binary file stream transmitted by the websocket server.
  9. 一种计算机设备,其特征在于,包括:A computer equipment, characterized in that, comprising:
    至少一个处理器;以及at least one processor; and
    存储器,所述存储器存储有可在所述处理器上运行的计算机指令,所述指令由所述处理器执行时实现权利要求1-7任意一项所述方法的步骤。a memory storing computer instructions executable on the processor, the instructions implementing the steps of the method of any one of claims 1-7 when executed by the processor.
  10. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1-7任意一项所述方法的步骤。A computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, the steps of the method of any one of claims 1-7 are implemented.
PCT/CN2021/109611 2020-09-21 2021-07-30 Method and system for online playback and downloading prevention of web client audio, device, and medium WO2022057469A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010996328.9A CN112153042A (en) 2020-09-21 2020-09-21 Method, system, equipment and medium for preventing downloading of Web end audio online playing
CN202010996328.9 2020-09-21

Publications (1)

Publication Number Publication Date
WO2022057469A1 true WO2022057469A1 (en) 2022-03-24

Family

ID=73892483

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/109611 WO2022057469A1 (en) 2020-09-21 2021-07-30 Method and system for online playback and downloading prevention of web client audio, device, and medium

Country Status (2)

Country Link
CN (1) CN112153042A (en)
WO (1) WO2022057469A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112153042A (en) * 2020-09-21 2020-12-29 苏州浪潮智能科技有限公司 Method, system, equipment and medium for preventing downloading of Web end audio online playing
CN113556292B (en) * 2021-06-18 2022-09-13 珠海惠威科技有限公司 Audio playing method and system of IP network
CN114217997B (en) * 2022-02-22 2022-06-21 苏州浪潮智能科技有限公司 Method, system, equipment and storage medium for improving real-time performance of KVM display data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103079089A (en) * 2012-12-27 2013-05-01 合一网络技术(北京)有限公司 Device and method for dynamically generating ts file by utilizing video file
CN107277612A (en) * 2016-04-05 2017-10-20 韩华泰科株式会社 Method and apparatus for playing Media Stream in web browser
CN108337528A (en) * 2018-01-17 2018-07-27 浙江大华技术股份有限公司 A kind of method and apparatus of preview video
CN112153042A (en) * 2020-09-21 2020-12-29 苏州浪潮智能科技有限公司 Method, system, equipment and medium for preventing downloading of Web end audio online playing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014180100A1 (en) * 2013-05-10 2014-11-13 Tencent Technology (Shenzhen) Company Limited Method, application, and device for audio signal transmission

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103079089A (en) * 2012-12-27 2013-05-01 合一网络技术(北京)有限公司 Device and method for dynamically generating ts file by utilizing video file
CN107277612A (en) * 2016-04-05 2017-10-20 韩华泰科株式会社 Method and apparatus for playing Media Stream in web browser
CN108337528A (en) * 2018-01-17 2018-07-27 浙江大华技术股份有限公司 A kind of method and apparatus of preview video
CN112153042A (en) * 2020-09-21 2020-12-29 苏州浪潮智能科技有限公司 Method, system, equipment and medium for preventing downloading of Web end audio online playing

Also Published As

Publication number Publication date
CN112153042A (en) 2020-12-29

Similar Documents

Publication Publication Date Title
WO2022057469A1 (en) Method and system for online playback and downloading prevention of web client audio, device, and medium
JP4592749B2 (en) Session description message extension
US20060053253A1 (en) Caching control for streaming media
US7644172B2 (en) Communicating via a connection between a streaming server and a client without breaking the connection
US7548948B2 (en) Client-side caching of streaming media content
US6816909B1 (en) Streaming media player with synchronous events from multiple sources
US20040268400A1 (en) Quick starting video content
US9356985B2 (en) Streaming video to cellular phones
WO2019062050A1 (en) Live broadcast control method, apparatus, and electronic device
JP2001306437A (en) Adaptive medium streaming server for reproducing live and streaming medium contents on demand through browser of web client without using additional software or plug-in
MXPA04006412A (en) Sparse caching for streaming media.
JP2006520039A (en) Method, data structure, and system for processing a media data stream
WO2008065665A2 (en) Accelerated multimedia file download and playback
WO2015176470A1 (en) Updating method and device for cache state based on http, and processor therefor
US20150067753A1 (en) Generating frame chunking for video fast starts
CN113874851A (en) Error de-emphasis in real-time streaming
CN114827670A (en) Video playing method and device and electronic equipment
CN108540481B (en) Online playing method and device for audio file
JP3795018B2 (en) Streaming transmission method, streaming transmission system, data processing apparatus, and computer program
JP2005197853A (en) Content distribution system and content distribution method
CN115581124A (en) Extended W3C media extensions for handling DASH and CMAF in-band events

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21868298

Country of ref document: EP

Kind code of ref document: A1