Autoplay videos and audio with iOS 13
Nobody has claimed this yet.
- Dominant language
- Objective-C++
- Stars
- 2.7k
- Forks
- 734
- Avg merge
- 11h 39m
- Merged PRs (30d)
- 1
Description
Here is a quick patch if you need autoplay video or audio in WebView.
Sorry I'm not confident enough to make a PR since i'm not ObjC dev, but this one works for me.
After plugin installation, in Assets/Plugins/iOS/WebView.mm - Line 157 :
[...]
if (@available(iOS 11.0, *) || @available(iOS 12.0, *) || @available(iOS 13.0, *)) {
configuration.mediaTypesRequiringUserActionForPlayback = [];
}
else if (@available(iOS 10.0, *)) {
[...]
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in Assets/Plugins/iOS/WebView.mm around line 157 and review the existing iOS availability branches and playback configuration. Verify the reported autoplay behavior for video and audio in an iOS 13 WebView; done means the behavior works after plugin installation without breaking the existing older-iOS path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, objective-c
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100