Coder Social home page Coder Social logo

kxmovie's Introduction

KxMovie - movie player for iOS using ffmpeg (modified by kinglonghuang)

Build instructions:

First you need download, configure and build FFmpeg. For this open console and type in

cd kxmovie
git submodule update --init	
rake 

The rake command will firstly build all the architectures: the armv7, armv7s, arm64, i386, x86_64 architecture. Then generate a debug version which contains all the architectures above, and a release version which only contains the armv7 and arm64 architecture.
you can also using one of these cmds below to specify the architecture:

rake build_ffmpeg_i386
rake build_ffmpeg_x86
rake build_ffmpeg_armv7
rake build_ffmpeg_armv7s
rake build_ffmpeg_arm64

Generally, the rake command is all you need :)

Usage

  1. Open the kxmovie.xcodeproj with Xcode and drop the kxmovie/ffmpeg_debug into your project. (using kxmovie/ffmpeg_relase instead for release)

  2. Set the "header search path" to "ffmpeg_debug/include" folder, and choose the "recursive" options ((or "ffmpeg_release/include" for a release)

  3. Command+B, enjoy yourself :)

Note: The sdk version is 8.3, you may need to change it ("SDK_VERSION" in Rakefile)

For play movies:

ViewController *vc;
vc = [KxMovieViewController movieViewControllerWithContentPath:path parameters:nil];
[self presentViewController:vc animated:YES completion:nil];

See KxMovieExample demo project as example of using.

Also, you can include kxmovie as subproject. Look at kxtorrent as example.

Remember, you need to copy some movies via iTunes for playing them. And you can use kxmovie for streaming from remote sources via rtsp,rtmp,http,etc.

Requirements

at least iOS 6 and iPhone 4

Feedback

Tweet me โ€” @kolyvan_ru.
Email: [email protected]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.