Coder Social home page Coder Social logo

zhaoliangguo / live555-simple-demo-4-ios Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 6.0 12.74 MB

Build the live555 to an static library in Xcode for an iOS application.

License: GNU Lesser General Public License v2.1

C++ 96.60% Makefile 1.50% Shell 0.02% C 1.06% Objective-C 0.09% Objective-C++ 0.73%

live555-simple-demo-4-ios's Introduction

live555-build-4-iOS

Build live555 to an static library named liblive555.a, which can be used in any Simulator or Generic iOS Device.
Architectures in this fat file liblive555.a are: i386 x86_64 armv7 arm64.
Base on live555 Version 20160626. http://www.live555.com/liveMedia/

Instructions.

  • Step 1: Open the live555.xcodeproj in Xcode.

  • Step 2: Set iOS SDK Version.

    Edit the IOS_VERSION in config.iphoneos file, you can change it according to your iOS SDK Version.

    IOS_VERSION = 10.0
    
  • Step 3: Build the target in Simulator mode, then in the Generic iOS Device mode.

    • Select any simulator, e.g. iPhone 6 Plus, then click the Build and Run Button.

    • Select the Generic iOS Device, then click the Build and Run Button.

      After that, a universal (multi-architecture) file named liblive555.a will be generated in the output directory.
      Also, all the headers needed will be copy to /output/include.`.
      All this happen automaticly, you don't have to run any command by hand.

  • Step 4: Use the liblive555.a.
    Copy liblive555.a and include directory to your project. Then you can use it!!!

live555-simple-demo-4-iOS

The simplest rtsp client example that can open a valid rtsp url(using liblive555.a) in Xcode. Find the function - (int) PlayRTSP in ViewController.mm, change rtspURL to a valid RTSP URL.

char rtspURL[512] = "rtsp://192.168.1.101:8554/test.mkv";

Then run the project, the result will be shown in the console.

live555-simple-demo-4-ios's People

Contributors

theflyingmadagasarpenguin avatar zhaoliangguo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

live555-simple-demo-4-ios's Issues

Undefined symbols for architecture arm64

Undefined symbols for architecture arm64:
"GenericMediaServer::addServerMediaSession(ServerMediaSession*)", referenced from:
-[RtspSeverViewController initSever] in RtspSeverViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

How to solve it

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.