Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
ksvc
KSYMediaPlayer_iOS
Repository navigation
Code
Issues
134
(134)
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
background
Jump to bottom
Franken Zeng edited this page
Oct 20, 2016
·
3 revisions
如何实现后台播放
需要APP有后台执行权限,在工程Info.plist中添加后台运行模式,设置为audio。具体是添加UIBackgroundModes项,值为audio。
当用户点击home按钮后,播放器进入后台继续读取数据并播放音频。
当APP回到前台后,音频继续播放。图像渲染内容保持和音频同步。
如果在开启后台运行模式后,需要实现切换到后台暂停音频,需要监听相关事件并主动调用pause操作。
capabilities settings example:
Wiki pages
Pages
49
Loading
Home
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
audioOutputSetting
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
audioSession
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
background
如何实现后台播放
Loading
backupurl
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
call
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
commonProblems
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
contentMode
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
continuedPlayOnDemand
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
debugInfo
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
decoderMode
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
deinterlace
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
dylib
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
errorCode
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
fileList
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
finishReason
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
floatWin
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
getMetaInfo
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
hlsStalledd
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
launchTime
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
license
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
liveDelay
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
loadState
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
loop
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
lowpowerdecoder
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
messagechannel
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
mirror
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
muteAndHidePicture
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
nettracker
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
networkChange
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
notification
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
oneInstance
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
playerConfiguration
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
playerRecord
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
playRate
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
playStatus
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
prober
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
rapidIntegration
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
rawData
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
reload
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
rotate
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
seek
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
setHttpHeader
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
shotScreen
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
subtitle
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
timeout
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
vodBuffer
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
vodframework
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
volume
Uh oh!
There was an error while loading.
Please reload this page
.
Show 34 more pages…
金山播放SDK主页
快速集成
播放说明
播放器配置
画面填充模式
解码方式
画面旋转
画面镜像
静音与画面隐藏
后台音频播放
音量调节
截图
播放状态
加载状态(卡顿情况)
结束原因
错误码
消息通知
设置HTTP头域
获取媒体信息
细节说明
声音相关
超时说明
网络切换
开播时间
来电处理
直播相关
直播时延控制
reload(播放过程中直播源切换)
点播相关
使用点播库
循环播放
切换视频(单实例播放不同URL)
seek
点播续播
视频反交错处理
缓冲设置
url列表播放
字幕
倍速播放
高级功能
动态库
原始音视频数据获取
短视频录制(播放录屏)
动态贴纸集成
音频输出设置
文件格式探测与获取缩略图
网络探测
悬浮窗
低功耗硬解
消息通道
常见问题
license和版本
m3u8直播频繁卡顿
DEBUG信息说明
API接口速查
联系我们
Clone this wiki locally
You can’t perform that action at this time.