The whim of the need to put a 1.5-hour video tutorial on the official website ...However, loading becomes a problem, the page is cshtml. NET hybrid website, do not know where the restrictions, cause the video can not be added.No way, only the front-end to find out.Then cut the video into 4Load autoplay in turn. The effect is also possible.Code:Introduced: Html:
One, Videojs introduction
Reference script, Videojs very for your sake, direct CDN, you do not need to download these code into your own website
If you need to support IE8, this JS can automatically generate flash
Add a HTML5 video tag to the page
Where post is the video thumbnail, the two source a point to the MP4
Mobile phone video 9-video player advanced features (2), 9-advanced features1. An error occurred while playing the listener.
Class MyOnErrorListener implements MediaPlayer. onErrorListener {@ Overridepublic boolean onError (MediaPlayer mp, int what, int extra) {// Toast. makeText (SystemVideoPlayer. this, "playing error", Toast. LENGTH_SHORT ). show (); // 1. the
your device,
May take a long time;
Each video should have thumbnails, if the search for these video files, and create thumbnails for them, may be very memory consumption, if the video is very large, it is possible to exhaust the Android system allocated to an application of the largest memory usage, resulting in a program crash;
When the
The Media player framework plays local video, audio, and video and audio online.1, the player Mpmoviecontrolstyle style has the following types:(1)None: No playback control controls(2)Embedded: Embedded playback controls. No done button(3)fullscreen: Full screen playback with controls such as playback progress, done bu
examples directory.Video.js and Video-js.css are the files that need to be used next. If it is put on the line, you can use the compressed version (plus. min suffix) directly.If these you do not want to do, then I am here to provide ready-made downloads, click here to download videojs.6.0.0How to play a video using VideojsImagine that if we did not use this VIDEOJS to play the web
Filter out other players and use my own player to do
Copy Code code as follows:
Wv.setwebviewclient (New Webviewclient () {
Public boolean shouldoverrideurlloading (final WebView view,
Final String URL) {
if (Url.contains ("3gp") | | url.contains ("mp4")) {//http://113.31.34.14:80/work/500/152/283/484/500.20120913082849.3gp
Loadurl (view, URL, true);/load
uploaded back to the getUpdate () event.Link (url): this parameter is used to set a current version, or force the user to download the current item through this address. You can set this value for each item in the playlist.Linkfromdisplay * (true, false): Set the page to be accessed when the display area is clicked. By default, you can play or pause a video when you click the show area.Linktarget * (frame): sets the Link Target. "_ self" is displayed
I will not talk about the sandbox mechanism of iOS here. This article uses some simple code to show you how to create a video player and whether a video file can be played. I also attached the Yuan Dynasty
I. Working Principle
1. When running the program, you can play the mp4 vid
Video.js is a popular HTML5 video player plugin. It is ideal for playing video on mobile (such as Web pages), powerful, and support downgrade to Flash, compatible with IE8. Official website: http://videojs.com/gitdemo:http://files.cnblogs.com/files/stoneniqiu/video-js-5.11.4.zipTake a look at the default example:Head>T
Video.js is a popular HTML5 video player plugin. It is ideal for playing video on mobile (such as Web pages), powerful, and support downgrade to Flash, compatible with IE8. Official website: http://videojs.com/gitdemo:http://files.cnblogs.com/files/stoneniqiu/video-js-5.11.4.zipTake a look at the default example:Head>
Android video player selection interface pop-up mechanism, android Mechanism
1. file manager and videos have different video recognition mechanisms.
A) file manager identifies the file based on the suffix. 3gp, mp4, and avi are considered as three different video formats res
play automatically when it finishes loading. Set to muted, it automatically plays in silent mode, and there is a mute icon in the middle of the display area. Bufferlength (number): Sets the cache time for FLV. Default is 3 secondsrepeat* (true,false,list): The default is Flase, which stops after playing from the current playback position to the tail of the list. Set to list all items in the playlist, and set to True to loop back.rotatetime* (number): Sets the display time of the picture. The de
Some time ago to re-learn the video part of the HTML5, previously just stuck on the use of tags, this time decided to drill into the relevant APIs, and use these APIs to create a simple video player. The so-called "Build Your Own" is to rewrite the control bar section of the video tag, including play, Pause, progress a
Apple ios
MP4
H.264
ACC, MP3, PCM
Apple Safari
MP4
H.264
Google Android (pre v.3)
--
--
--
Google Chrome
MP4, OGG, WebM
Theora, VP8
ACC, MP3, Vorbis
Microsoft Internet Explorer
MP4
H.264
ACC, MP3
Mozilla Firefox
OGG,
HTML5 Video Label Basics
To learn the basic usage of the HTML 5 video tag, first look at the following example code:
The code is as follows
Copy Code
In HTML5, the video tag only needs to add
In addition, in the HTML5 tag, you can also write some text, such as the above "your browser does not support
Objective
In order to ensure a weekly progress, and because the new version of Vitamio has not been released, decided to postpone the local playback of some features (screenshots, video time, size, etc.), skip directly write the section of the online play part. As you can see from Vitamio's introduction, it supports a variety of network protocols such as HTTP, m3u8, and this chapter will write examples of playing Youku videos.
Series
1. Android use
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,
Preface
Some time ago in a website project, asked to be able to play video online, music, this has not really touched before. Just today, wandering in the jar, found that there are comrades interested in this area, and then put these together under, at the same time, they can also review.
The player needs to meet the following requirements:
1. Support all major browsers
2. Can interact with the
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.