Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ionic WebView v3.x cannot access video src from iOS Documents directory #302

Closed
JoeMeeks opened this issue Feb 7, 2019 · 3 comments
Closed

Comments

@JoeMeeks
Copy link

JoeMeeks commented Feb 7, 2019

I have cordova-plugin-ionic-webview v3.1.2 installed and I am able to load image thumbnails from the iOS documents directory, but html5 video tag src attributes with ionic:// URLs do not work.

  • ionic://localhost/_app_file_/var/mobile/Containers/Data/Application/5427DD11-7B0A-44CA-875B-D8CB32829CE2/Documents/Sack/7601.jpg is fine for background-image CSS
  • ionic://localhost/_app_file_/var/mobile/Containers/Data/Application/5427DD11-7B0A-44CA-875B-D8CB32829CE2/Documents/Sack/7601.mov as the sanitized src for <video [src]="sanitize(item.source)"></video> does not work
@jcesarmobile
Copy link
Member

Can you provide a sample app? I didn't have any problem using video tag for local videos

@jcesarmobile
Copy link
Member

No sample app was provided and I can't reproduce on mine, so closing.

@Lyfei
Copy link

Lyfei commented Apr 14, 2023

I have cordova-plugin-ionic-webview v3.1.2 installed and I am able to load image thumbnails from the iOS documents directory, but html5 video tag src attributes with ionic:// URLs do not work.

  • ionic://localhost/_app_file_/var/mobile/Containers/Data/Application/5427DD11-7B0A-44CA-875B-D8CB32829CE2/Documents/Sack/7601.jpg is fine for background-image CSS
  • ionic://localhost/_app_file_/var/mobile/Containers/Data/Application/5427DD11-7B0A-44CA-875B-D8CB32829CE2/Documents/Sack/7601.mov as the sanitized src for <video [src]="sanitize(item.source)"></video> does not work

Solved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants