Method and device for playing audio in browser
A technology for playing audio and browsers, applied in the field of browsers, can solve the problems of occupying page resources and inconvenient use, and achieve the effect of convenient use
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] refer to figure 1 , a flow chart of the method for playing audio in the browser provided by Embodiment 1 of the present invention is given.
[0041] Step 101, loading audio data and webpage elements that control the playback of the audio data in the background page of the browser extension.
[0042] In the embodiment of the present invention, when a browser is used for audio playback, the browser does not play the audio through the webpage opened in the browser, but extends the browser to have the audio playback function.
[0043] When playing audio in the browser, the user's operation interface is separated from the playback control logic, wherein the playback control logic is configured in the background (background) page of the browser. The background page is the Html page running in the background of the extension, and most of the extensions in the browser include a background page, which is used to execute the main function of the extension.
[0044] Therefore, a...
Embodiment 2
[0053] On the basis of the foregoing embodiments, this embodiment further discusses in detail the method for playing audio in a browser.
[0054] refer to figure 2 , a flow chart of the method for playing audio in the browser provided by Embodiment 2 of the present invention is given.
[0055] Step 201, loading audio data and webpage elements controlling the playback of the audio data in the background page of the browser extension.
[0056] Preferably, the step of loading audio data in the background page of the browser extension includes: calling an audio server of the network in the background page; obtaining audio data from the audio server, and loading it into the background page middle.
[0057] On the background page, audio data can be loaded through JS (Javascript) code. Specifically, the audio data can be obtained from an audio server providing music resources through Ajax (Asynchronous JavaScript And XML, asynchronous JavaScript and XML), including at least one o...
Embodiment 3
[0092] On the basis of the above-mentioned embodiments, the embodiment of the present invention also provides a device for playing audio in a browser, the structure diagram of which is as follows Figure 4 shown.
[0093] The device for playing audio in the browser includes: a data and element loading module 401 , an interface loading module 402 and a playback control module 403 .
[0094] Wherein: the data and element loading module 401 is used to load audio data and webpage elements that control audio data playback in the background page of the browser extension; the interface loading module 402 is used to load control audio data in the pop-up page of the browser extension An operation interface for playing; a play control module 403, configured to control the audio data in the background page to play through the operation interface in the pop-up page using the webpage elements in the background page that control the playback of audio data.
[0095] To sum up, the audio dat...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com