Giter VIP home page Giter VIP logo

srpmovieplayercontroller's Introduction

SRPMoviePlayerController

基於 ijkplayer 的線上影片播放器, 支援 TV out, AirPlay 全螢幕播放.

基本上我是用在我的 App 影音瀏覽器 來播放 flash 影片用的.

這裡的 AirPlay 是指 User 手動使用內建控制面板切換 AirPlay, 而非在播放器內切換.

需求

iOS 8 Later

僅在 iPhone 6 (iOS 8.1.1), iPad 3 (iOS 8.1.1) 測試過 (盡量使用實體測試)

使用 AirPlay 時, 在 iPad 3 上效能很差, 但是透過連接線播放就沒問題.
而在 iPhone 6 使用 AirPlay, 效果很好.

使用

依照 ijkplayer 下載編譯後, 將 SRPMoviePlayerController 目錄拖放置你的專案.

SRPMoviePlayerController *mvc = [[SRPMoviePlayerController alloc]init];

mvc.videoURL = url;

[self presentViewController:mvc animated:YES completion:nil];

不要使用 UINavigationController push, 因為 SRPMoviePlayerController 本身有自帶的 UINavigationBar.

ijkplayer 設置

下載 ijkplayer 後, 如果你使用 import project 方式, 請按照下列步驟

  1. 將 IJKMediaPlayer.xcodeproj 拖至你的專案

  1. 在 Build Phases 加入 ijkplayer

  1. 加入相關 Frameworks / libraries

如果你使用編譯好的 Libraries, 請加入相關 Frameworks.

srpmovieplayercontroller's People

Contributors

shinrenpan avatar

Watchers

Xu01 avatar

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.