Skip to content

bug: Cannot load video file URL into view while running on device through ionic command #4097

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

Closed
reesretuta opened this issue Jul 17, 2015 · 1 comment

Comments

@reesretuta
Copy link

Type: bug

Platform: ios 8 webview

1) I run my app using "ionic run ios --device --livereload" on a connected iPhone 6
2) my app uses the cordova camera plugin to open device Photo Library of videos and user selects video
3) I am able to properly console log the video file URL response, however when I try to bind that to my view such as
4) I get this error

7     313600   error    Error: [$interpolate:interr] Can't interpolate: {{video_url}}
Error: [$sce:insecurl] Blocked loading resource from url not allowed by $sceDelegate policy.  URL: file:///private/var/mobile/Containers/Data/Application/8C38A9CE-2D9C-469F-9A71-80CDC7B30A72/tmp/trim.84D641A6-61B0-47B4-9161-C424E6187FC7.MOV
http://errors.angularjs.org/1.3.13/$sce/insecurl?p0=file%3A%2F%2F%2Fprivate%2Fvar%2Fmobile%2FContainers%2FData%2FApplication%2F8C38A9CE-2D9C-469F-9A71-80CDC7B30A72%2Ftmp%2Ftrim.84D641A6-61B0-47B4-9161-C424E6187FC7.MOV

IMPORTANT: This only happens when running the app via the command in #1 above... building and then running the app on the device through Xcode does NOT produce this error. In fact properly binds and displays the video file to the view

@reesretuta reesretuta changed the title Cannot load video file URL into view while running on device through ionic command bug: Cannot load video file URL into view while running on device through ionic command Jul 17, 2015
@Ionitron
Copy link
Collaborator

Greetings @reesretuta!

I've closed this issue because my sensors indicated it was old and inactive, and may have already been fixed in recent versions of Ionic. However, if you are still experiencing this issue, please feel free to reopen this issue by creating a new one, and include any examples and other necessary information, so that we can look into it further.

Thank you for allowing me to assist you.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants