]; [[NSNotificationCenter defaultCenter] removeObserver:self name:MPMoviePlayerPlaybackDidFinishNotification object:player]; [player stop]; [self.view removeFromSuperView]; [player autorelease];}
3. The shouldautorotatetointerfaceorientation: interfaceorientation method can be modified on a horizontal screen to return YES.
Note: The above method can be used to directly play the locally m3u8 format or online video.
Nsurl can be directly in
This article from http://blog.csdn.net/hellogv/, reference must indicate the source!
This article fixes the HTTP Proxy passthrough bug on the basis of video pre-loading (optimization) for playing Android mediaplayer. The proxy server used in the previous articles can only listen to one request from mediaplayer at a time, but in the actual project development process, it is found that some old requests are not interrupted before the m3u8 mediaplayer se
,rtsp://113.136.42.40:554/pltv/88888888/224/3221226004/10000100000000060000000000971135_0.smilKenw24,http://azure-kknews.live.bestvcdn.com.cn/live/program/dkankan.live.bestvcdn.com.cnd/_m/xwzh/m_ Key5ba4d0b27f09f3d61def864fa12f1c8dc157c22748153b54d758192a87a7f283_/live/hdnba8/2300000/d1.m3u8Zhejiang satellite TV hd-1,http://183.252.176.35//pltv/88888888/224/3221225934/index.m3u8Zhejiang satellite TV Hd-2,rtsp://113.136.42.39:554/pltv/88888888/224/3221226088/10000100000000060000000001759097_0.smi
application mytv { #应用/实例的三种类型(1)rtmp录播(vod),(2)rtmp直播(live),(3)hls直播(hls) live on; #开启直播直播模式,一对多广播 hls on; #开启直播 hls_path /usr/local/nginx/html/hls;#录制视频文件的目录/路径 hls_fragment 2s;#后面接时间,用来设置每一个块的大小。默认是5秒。只能为整数 } }}Here are some of the HLS configurations that can be configured according to your needshls_playlist_length: 设置播放列表的长度,单位是秒hls_sync: 音视频的同步时间hls_continuous:
, and more. At first, the complexity of the ABR was handled by the platform or equipment provider. However, with the increasing demand for caster control and custom players, some more underlying APIs (such as the Web Media Source Extensons, netstream on Flash and Media Codec on Android platform), and quickly attracted many powerful and robust multimedia engines based on these underlying APIs.
Figure 5. Data Flow chart of the multimedia processing engine Shakaplayer provided by Google
Next we wi
and decodes and plays the video in sequence. In this way, the live video process of "production, transmission, and consumption" is realized.
7. live video business logic
One-to-multiple model:
Broadcaster-- RTMP protocol --"Live streaming media server-- RTMP/HLS protocol --"Audience (fans)
RTMP Protocol: low latency and fast transmission speed. (The host uses this Protocol to upload video data to the server immediately)
HLS Protocol: slice the video stream that has been transmitted by the br
thrown:
Added in API level 16
Throws:
Ioexception-if the file cannot be accessed or is already upted.
Illegalargumentexception-if the mimetype is not supported.
Illegalstateexception- If called in an invalid state.
After testing, there is no problem with calling onprepared!
However, you cannot call this method, and you need to register the response.ListenerAnd callSelecttrackMethod.
The Code is as follows: (in the onprepared callback)
try { mMediaPlayer.addTimedTextS
streams, and data streams (also called Demuxing ), to view the input container formats supported in the FFmpeg source code, run the command. /configure -- list-demuxers:
As you can see, ffmpeg source code supports a lot of demuxer, including image, mp3, flv, MP4, mov, avi, etc.
3.6 FFmpeg communication protocol support
FFmpeg not only supports local multimedia processing, but also supports the processing of network streaming media. The support
) using a thread pool without a size limit; (2) The task can be cascaded together to prevent code coupling
Numberprogressbar.
Numberprogressbar Developer is a code home, this is a simple and sexy digital display of the progress bar Library, the use of very simple and convenient
Swipebacklayout.
Swipebacklayout is a support screen swipe left and right to return to the top activity, close the current activity, similar to the Jane book App
Android
Open source Ckplayer Web player, cross platform (HTML5, mobile), FLV, F4V, MP4, rtmp protocol. WEBM, OGG, m3u8!Blog Category:
Javascript/jquery/bootstrap/web
Ckplayer, which is all called super cool FLV player, it is a software for playing video on the Web page, supported by the format of: HTTP protocol on the FLV,F4V,MP4 format, while supporting RTMP video streaming format playback, this player is characterized in that the user can defin
The all-in-one live King is an HD smooth full-platform live TV app that lets you watch high-definition live TV anytime, anywhere. "All-round feature" 1. The collection of more than 1400 live channels nationwide, including Hunan Satellite TV, Jiangsu Satellite TV, Zhejiang TV and other popular channels. 2. Channel multi-line automatic selection, ensure smooth and clear. 3. Powerful custom features allow you to create your own TV. 4. Support the common video streaming protocols such as MMS, RTSP,
Brief introduction:Vitamio is an all-in-one multimedia development framework on Android and IOS platforms that supports both hardware decoding and GPU rendering. With its simple and easy-to-use API interface, Vitamio has won the favor of many developers around the world. To date, more than 1800 applications worldwide have been using Vitamio, covering more than 200 million users.Vitamio can seamlessly play videos in common formats such as 720P or 1080P HD MKV,FLV,MP4,MOV,TS,RMVB, as well as cross
install)4. Setting up a startup service4.1 Establishing a soft connectionsudo ln -sf /usr/local/srs/etc/init.d/srs /etc/init.d/srs
Note: If the SRS is installed in a different directory, replace the/USR/LOCAL/SRS with a different directory.
Note: You can also use other names, such as/etc/init.d/srs, which can be any name, and also use this name when starting up.
4.2 Adding services#centos 6sudo /sbin/chkconfig --add srsOr#ubuntu12sudo update-rc.d srs defaults4.3 Using the I
1 Install Nginx to increase nginx-rtmp-module support download good nginx-rtmp-module after decompression, and then add this module Nginx installation (--add-module)./configure--prefix=/usr/local/nginx--add-module= (nginx-rtmp-module path)2 after the installation is complete, open nginx configuration file nginx.conf to configureFirst add the rtmp configuration to the insidertmp {server {Listen 1935;Application Video {Live on;}Application HLS {Live on;HLS on;Hls_path/tmp/hls;}}}Then, for HLS, you
generates new small files with the latest live data. So that the client as long as the sequential playback of the files obtained from the server, the implementation of the live broadcast. It can be seen, basically, that HLS is on-demand technical way to achieve live. Because the data through the HTTP protocol transmission, so completely do not consider the firewall or proxy problems, and the length of the fragmented file is very short, the client can quickly select and switch the bitrate to ada
Instructions for use
1. Nginx installation of LUA extensions
2. Modify the configuration Nginx configuration file
Set $salt "Cmstopsalt"; MD5 key string
Set $expire "2"; Expiry time
Set $timeType ' seconds '; Expiration time type seconds to seconds it's value is minutes
3. Save the following code as a LUA file
--Get MD5 value
function GetMd5 (time)
Return Ngx.md5 (Ngx.var.salt. Time)
End
--Get parameters
Local args = Nil
If "GET" = = Ngx.var.request_method Then
args = Ngx.req.ge
constantly downloads and plays these small files because the server side always generates new small files with the latest live data. So that the client as long as the sequential playback of the files obtained from the server, the implementation of the live broadcast. It can be seen, basically, that HLS is on-demand technical way to achieve live. Because the data through the HTTP protocol transmission, so completely do not consider the firewall or proxy problems, and the length of the fragmented
Add LibmobilevlckitAdd LibraryLibstdc++Libiconvlibbz2SecurityQuartzcoreCoretextCfnetworkOpenglesAudiotoolboxModify the C + + compiler to stdc++?Add Reference Path Headersearch Paths to/users/fq/desktop/vlcdemo/vlcdemo/libmobilevlckit/include?Replace the/users/fq/desktop/vlcdemo_1414 with $ (srcroot)The specific format is $ (srcroot)/project name/libmobilevlckit/includeJoin Agent VlcmediaplayerdelegateAdd header file #import The file used is changed to. MM Support C + + compilationhttp://192.168.
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.