Closed zrxq closed 6 years ago
In fact, the app ends up "Terminated due to memory issue" even when the video (the large one, 1st link) is stored locally.
Yes. This is because it tries to load the entire file into memory. If you want a streaming solution, encode your content using HLS.
@nathanmartz: Sorry, I failed to mention that the second address is supposed to be HLS.
I just tried to stream this – http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/sl.m3u8 – video, also HLS, and the result is exactly the same: eventually I get Message from debugger: Terminated due to memory issue
. Could you please reopen the issue?
Just to clarify, I use [VRVideo loadFromUrl:[NSURL URLWithString:@"http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/sl.m3u8"]]
. Android SDK has Options.FORMAT_HLS
option, perhaps iOS needs something similar for HLS to work as intended?
Wasn't able to reproduce the issue in simulator, but on a device (iPhone 6) it reproduces every time.
Okay, turns out GVRVideoView
isn't the culprit, GVRPanoramaView
is (I use one for the preview). It seems to leak memory and eventually crashes the app. Loading a large video in GVRVideoView
just speeds things up, but is not the root cause. Removing GVRPanoramaView
results in the app playing the video without any issues. Sorry for the misinformation.
I'm using a
GVRVideoView
from GVRSDK (0.8.1) to play remote video.