B Station Open source play Frame Ijkplayer (iOS version) Use tutorial

Source: Internet
Author: User
Tags install homebrew truncated

Recently in the attention to live this piece, started directly with FFmpeg wrote a, write is bad, the lag is very serious, later heard the B station open-source play frame ijkplayer, so go to try this is the link, a use is really good, every person will to people Amway, can always have some students say do not understand, will not use. In fact, the usage is clearly written in the readme, just do it. Well, I know that you're not bothered to look at-_-!, so I'll talk about the steps here.

Configure the environment first, need to install homebrew,git,yasm (requires ruby environment)


Image truncated from Readme

Then clone the project locally, download and compile the FFmpeg


Image truncated from Readme

Finally import the player and open it with Xcode


Image truncated from Readme

So the official demo of Ijkplayer can be run.


Run

So the point is, how to integrate the Ijkplayer into their own projects, one is like the demo in the entire project reference, here no longer unfold. The other is the framework package that is produced by importing ijkmediaplayer projects.


Ijkplayer Integration

When packing, be aware that the simulator can only be used in the simulator, the real machine will need to be packaged with a real machine. With the simulator and the real machine after packaging can get two packets, and then merge, you can get a generic package, my demo is a universal package (Debug version)


Real machine and Simulator package (Debug version)

By friends remind, I played these two are debug version, the official use of the best to play the release version, packaging process, just modify the following options can be Product->scheme->edit sceme


Release version Packaging modification

Import the package and other dependent libraries, you can imitate the official demo call, if not lazy to write, like me, directly to the Ijkplayer write good pull into the project directly with the line


In live

Here, I'm going to puke. B Station, web version is live when the network is broken, in the player right-click, select Switch site, the middle of the screen immediately out of a sentence: Video not found or access denied:http://xxxxxx Does it really matter that the debug statements are displayed directly on the Web page?

This is my demo.



Wen/stargazer_c (author of Jane's book)
Original link: http://www.jianshu.com/p/5218f8c952fb
Copyright belongs to the author, please contact the author to obtain authorization, and Mark "book author".

B Station Open source play Frame Ijkplayer (iOS version) Use tutorial

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.