Step 1: find info. plist of the project in the resource folder and addArray of Required background modesAnd add an element below, whose value isApp plays audio
Step 2:
You need to import the corresponding framework and header files.# Import # Import
Step 3:// Disable automatic screen lock when the program is running[[UIApplicationsharedApplication] setIdleTimerDisabled: YES];
Step 4:AVAudioSession * audioSession = [AVAudioSessionsharedInstance];NSErr
The overall background music settings for PPT are set out below (for example, PowerPoint 2007):
Open the "Insert"-> sound "->" sound in the file, insert the prepared sound file (MP3 or WAV, and so on, and now insert the words "you're going to marry me today. mp3");
The system pops up a dialog box asking "How do you want the sound to start while the slide is playing", and click Auto to play the
The overall background music settings for PPT are set out below (for example, PowerPoint 2007):
Open the "Insert"-> sound "->" sound in the file, insert the prepared sound file (MP3 or WAV, and so on, and now insert the words "you're going to marry me today. mp3");
The system pops up a dialog box asking "How do you want the sound to start while the slide is playing", and click Auto to play the
Playing background music in COCOS2DX is a very easy thing to do, just one line of code, but first import the COCOS2DX audio engine cocosdenshion. Cocosdenshion provides a very convenient voice material for the COCOS2D project to call and manage. Also put the music you want to play to the project's resource folder to play it correctlyand "COCOS2DX" Windows platfor
Believe that many users are accustomed to listening to music while browsing the web, but when we open the page may come out some discordant background sound, so that the whole music becomes very noisy, then what method can prohibit the page to play the background music, the
C # Summary of playing background music
C # Summary of playing background music
This article mainly introduces C #'s method of playing background music. The example summarizes the skills related to C #'s playing
In order to do this, click the right mouse button in the folder blank----Customize the folder--choose ' Create or edit HTML document ', click Next, the system will automatically pop up the Folder.htt file opened with Notepad, find the code in the file, add below:
Note: "Loop=1" is played once, and 1 means loop playback.
The next step is to save the file and exit the edit state. Press F5 in this folder to refresh, you can hear your favorite music.
N
Because the slides in the content of the plate more, so want to show different effects for different sections, followed by the background music segmentation will also be different, so how to let the inserted music in the right place to stop and play it? It seems that the problem has baffled many friends. For example, set a ba
A lot of good can automatically play PPT files have background music, and well-designed this kind of ppt background music and content are matched seamlessly. However, these background music is generally pure
Environment: discuz_x1.5_ SC _utf8
Effect: the background music. The player is not displayed and only played once.
Operation: Open/source/module/FORUM/forum_index.php, at the end of the file (?> ) Add the followingCode:
First open my article, enter the editing state, choose HTML format and then you can enter, the following we look at the code, first of all, it is relatively simple: Insert background music in Web pages
HTML5 audio to blog pages and background music can be added to a button or link so that it can be stopped or pausedThe following code is just a pause that can be paused to play two state transitions:Consider switching to a label.
"#" onclick= "musicpaused ()" > Stop
"Clicksound" autoplay="autoplay">
"Http://girls.iganlei.cn/baidupan/1125435669/4178294675.mp3">
type=
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.