iOS: POC: Added option to open webm files in iOS VLC app #80
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello.
This is a very simple PoC enabling opening webm in the iOS VLC application when it's installed and therefore enabling at least somewhat of a good user experience with webms sent to the user on IRC if he's willing to use VLC on his device.
Link to VLC for Mobile: https://apps.apple.com/us/app/vlc-for-mobile/id650377962
Pros:
This adds option "Attempt to open webms in VLC" to the Settings dialog only when the platform is iOS, otherwise the setting is set to false and not rendered in the Settings dialog.
When this setting is enabled:
Before & after behavior can be seen on this video:
https://user-images.githubusercontent.com/5108747/106830915-4477f200-668f-11eb-860d-5db94275aac7.mp4
Cons:
Suggestions, discussion, opinions welcome :)
BTW: If iOS 14 somehow "fixes" this and you can somehow associate .webms in Safari to directly open in an app, then this may be useless and I apologize, but on iOS 13.7 that I'm running the only option after opening in Safari (or any other browser) is to "Download" and open in VLC manually or "Share" to VLC which downloads it and opens it in VLC instead of streaming it.