“AMR Extractor” is output in the log.
This is an unused audio codec.
It may have been accessed as AMR codec data and failed.
I’m not sure why I think it’s an AMR codec and I’m trying to read it.
Can “media.playVideo ()” only play local files on Android devices?
If I had the file on my device, I was able to play the video.
I don’t understand why the files on the server can’t be played.
I can’t think of any other solution, so I work around the problem this way.
local path
local params = {}
local function networkListener( event )
local function onComplete()
os.remove( path )
end
path = system.pathForFile( "temp.m4v", system.TemporaryDirectory )
media.playVideo( path, true, onComplete)
end
network.download(
"https://coronalabs.com/video/bbb/BigBuckBunny_640x360.m4v",
"GET",
networkListener,
params,
"temp.m4v",
system.TemporaryDirectory
)