So recently, Apple released the second operating system for their Apple Watch. With this update, the Apple Watch can now have HTTP requests and an internet connection. They added the
WKInterfaceMovie
Which loads a video from a URL with the method
" - setMovieURL: Declaration (New in watchOS 2.0)
SWIFT
func setMovieURL(_ URL: NSURL)
OBJECTIVE-C
- (void)setMovieURL:(NSURL * _Nonnull)URL
"
If I input a URL with any .mov video online. The WKInterfaceMovie closes automatically. Sometimes, the "Downloading" circle comes and begins to load up, but I haven't been able to show the remote video (Not stored in the Apple Watch®)
Thanks
It only works with https URLs, regardless of the App Transport Security (ATS) settings.
Source WatchKit Framework Reference:
If you specify a URL for a file on a remote server, this method downloads the file first and displays a progress indicator showing the progress of the operation. Because WatchKit uses App Transport Security (ATS) when downloading files from a web server, the file must be on a secure server, and the URL must use the https scheme. If your server does not support ATS–level security, download the file yourself before playing it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With