Giter Club home page Giter Club logo

sdl_video_streaming_ios_sample's Introduction

Directions for Building

  1. After downloading the project, navigate to the root of the project and install the SDL SDK for iOS by running pod install in the terminal (For more information about CocoaPods view our installation instructions).
  2. Connections to the SDL Core can be made via TCP or iAP. The app is setup to do both. Switch between connection types in the AppDelegate class.
  3. If connecting via iAP make sure that background capabilities is enabled and that the SDL Protocol strings have been added to the app (For more information view our SDK Configuration instructions).
  4. The video will only start playing on the SDL Core HMI when the play button is selected on the device app. If desired, the video can be played right at startup in the setupPlayer() method of the HomeViewController class.

Changing the Video

  1. Drag the video into the project. The example video is located in the Video Assets folder.
  2. The video must be added to Bundle Resources. Go to Build Phases -> Copy Bundle Resources and click on the plus sign icon. A dialog box will show up. Navigate to where the video is located and click on the video file.
  3. If video streaming is lagging, the video may be too large and should be compressed.

Notes

  • This app is for testing purposes only.
  • Touch events are not used in this app.
  • This app streams a local video file. Setup will be different if streaming directly from the iOS device's camera (This is not handled in the example).
  • Video use in project is sourced from https://videos.pexels.com. The video is licensed under the Creative Commons Zero (CC0) license.

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.