Example
The code is as follows
Copy Code
Audio.play (); playAudio.pause (); pauseAudio.volume Volume (sound value can be taken between 0-1)Audio.currenttime > 10; current time to 10 seconds (available to control forward rewind) function Go () {//forwardAudio.currenttime + 10;Audio.play ();}function back () {//RewindAudio.currenttime-= 10;Audio.play ();;}CONTROLS://Show or hide user control interfaceAutoPlay://Media is automatically playedLoop://Media loop playbackCur
HTML5 is most powerful in processing media files. For example, you can use a simple vedio tag to play a video. Similarly, there is a corresponding tag for processing audio files in HTML5, that is, the audio tag. This article describes how HTML5 uses the
1.MediaPlayer and Videoview IntroductionThe Android system provides developers with multimedia applications (audio and video)One, MediaPlayer,Decoding is the bottom, MediaPlayer is responsible for dealing with the bottom, encapsulated a lot of methods Start,pause,stop, play the video classThis mediaplayer can play local and network audio and video playback network resources when the Internet access rights1,
can be extended: dynamically loaded by the user from the file dialog box string[] strsongnames = {"Song1.wav", "Song2.wav", "Song3.wav", "Song4.wav", "Song5.wav", " Song6.wav "}; String Strcurrentsongname; The name of the currently selected play song int index = 0; Records the ordinal of the currently selected song (the song that is currently playing), and the default first BooleanIsplayorstop = true;//record playback status (play/stop), default to play Boolean isloop = false; Record loop state
3.0 Safari 3.0Ogg vorbis√√√Mp3√√√Wav√√√Simple video element creationsrc= "Http://www.w3school.com.cn/example/html5/mov_bbb.ogg" controls > Your browser does not support video elements video>The default size of the video is 300*150CONTROLS: Displays the default control of the videoUse of the video tag (with caption file)Videosrc= "Http://www.w3school.com.cn/example/html5/mov_bbb.ogg"> Add
KMPlayer Player is a universal audio and video player from Korea, and the player can support the mainstream media format, but some users in the use of the player, but do not know how to switch the audio track of the KMPlayer
accessible HTML5 Video Player is an open-source, lightweight player that uses HTML5 video playback technology to support subtitles display, video free-jump, replay, and more. The HTML5 video plugin was developed by the PayPal Accessibility team and is compatible with all br
The audio and video is based on the MPC video player, integrates most popular video decoders, provides and upgrades the system's support for popular AV files and multimedia streaming, and perfectly plays Avi, VCD, DVD, MPG, MP3, MP4, VOB, RM, MOV, and most movies and music, and upgrades ie , Firefox on the popular audio and video files online playback capabilitie
HTML5 custom player (simplified) and html5 simplified
This is a self-contained html5 tag
The main body of the html5 player is the
· Src: Video URL
· Poster: Specifies the video album art. No picture is displayed during playback.
Test environment in this article: Ubuntu13.04. Other versions may not. Tested on: July 6, September 30, 2013 DPlayer was one of the special applications of LinuxDeepin. It was designed by the LinuxDeepin team for Chinese users. LinuxDeepin users can search for and install the DPlayer directly in the deep Software Center (in fact, LD has been integrated by default) Ubuntu users can install DPlayer through PPA
Test environment in this article: Ubuntu 13.04. Other versions may not.
Tested on: July
Html5, audio, and html5 music players
Finally, I did what I had always wanted to achieve. The result was that once something was done, it was not very difficult. Now I am listening to my player's "glorious years" to write this blog post on Saturday morning. I am not writing very well, but I also ask my predecessors to take care of this cainiao that I don't know.
center MoviePlayer MPMoviePlayerController * Movie = [Sender object]; Remove Observer [[Nsnotificationcenter Defaultcenter] removeobserver:self name: Mpmovieplayerplaybackdidfinishnotification Object:nil]; Move movie out of Parent view [Movie.view Removefromsuperview]; }Final effect:follow the daily new technology of Bo Master Weibo: Http://weibo.com/hanjunqiang Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced. Mpmo
Do you want a responsive and touch-friendly audio player? Osvaldas Valutis has already created a replacement for the JQueryPlug-ins. Add someCSSYou can get a brand new music player.
It has passed tests in the latest Safari, Chrome, Firefox and Opera browsers, and supports both Mac and Windows versions. This player work
I had a hard time installing the deep player and deep audio and video for one day yesterday. this error is always caused by dependency failure. There are many solutions on the Internet, but none of them can.
I had a hard time installing the deep player and deep audio and video for one day yesterday. this error is alwa
Remember that when we wanted to insert an audio or video into a webpage, we first tried Baidu or Google to find the long and smelly object and embed code, then paste them into the web page, and then find that different browsers are still different in writing, some support objects do not support embed, some are reversed, and in the end they still call the system's Windows Media Player, if this is not install
Htmlmediaelement interface, provide an error property to represent the exception that occurs during the process of processing multimedia resources by the browser. In fact, this error property is a Mediaerror interface. (The current support situation is still very imperfect, only IE9 support). This section discusses the constants and attributes in the Mediaerror object, as follows:Media_err_aborted constants:Media_err_network constants:Media_err_decode constants:Media_err_src_not_supported const
Playing video and audio in the win computer often uses the WindowsMediaPlayer player in the computer, while in Android, the audio and video are also played using the MediaPlayer player.is the life cycle of MediaPlayer. dle State: When a MediaPlayer object is instantiated with the keyword new or the Reset () method in the calling class is entered into this state;
If you implement an audio file playback, the simplest way to provide the ability to play audio files in your application is to take advantage of the features of the built-in "music" app-even if you use the system's own or installed music player to play the specified audio file.This example is relatively simple, the fol
To play an audio file, you can use the built-in Music function to play the audio file) "function of the application-that is, use the built-in or installed music player to play the specified audio file.
This example is relatively simple. The source code is provided below:
Layout file activity_main:
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.