小编Has*_*azi的帖子

WebRTC 的画中画功能

Apple从 14.0 版开始为 iOS引入了 画中画功能,而该功能更早可用于 iPadOS。该功能在使用AVFoundationAPI时工作正常 。例如,

import AVFoundation

func viewDidLoad() {
    let playerController = AVPlayerViewController()
    playerController.allowsPictureInPicturePlayback = true
}

Run Code Online (Sandbox Code Playgroud)

我正在寻找的是,如果有任何解决方案/API 可以为iOS 和 iPadOS 中的WebRTC视频流实现画中画,特别是对于RTCVideoRenderer.

objective-c ios webrtc swift picture-in-picture

12
推荐指数
0
解决办法
567
查看次数

Travis-ci 卡在 pods 安装中

我正在尝试使用以下配置在我的 GitHub 存储库上配置Travis-CI

.travis.yml

language: objective-c
osx_image: xcode11.2

xcode_workspace: NinchatSDK.xcworkspace
xcode_scheme: NinchatSDK
xcode_destination: platform=iOS Simulator,OS=13.2,name=iPhone 8

before_install:
  - git submodule update --init --recursive

  - brew install go
  - go get -u golang.org/x/mobile/cmd/gomobile
  - export PATH=$PATH:~/go/bin
  - gomobile init
  - ./update-go-framework.sh

  - gem install cocoapods
  - gem update concurrent-ruby
  - pod setup

script:
  - xcodebuild -workspace NinchatSDK.xcworkspace -scheme NinchatSDK -configuration "Release"
Run Code Online (Sandbox Code Playgroud)

播客文件:

platform :ios, '9.0'
use_frameworks!

source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/somia/ninchat-podspecs.git'

def all_pods
    pod 'AFNetworking', '~> 3.0'
    pod 'NinchatLowLevelClient', '~> 0' …
Run Code Online (Sandbox Code Playgroud)

ios travis-ci cocoapods

3
推荐指数
1
解决办法
246
查看次数