Hello Guys,
I have one issue regarding recorded video.
When i record video with media.captureVideo and try to play it. I can see that the audio(volume) of the recorded video is too low even my iPhone’s volume is set to Maximum.
I will try to divide in 3 phases:
-
start record video -->
open camera app (device ask me to allow camera and microphone , and i allow )
– > click start button for video record
--> after few second click stop button (video is recorded) -
i can see the screen with below buttons
Retake video , play video and use this video
–> I play the video and looks okay (audio is clear and with full volume )
–> after watching whole video i click use video
- Now i back to our app and immediately open media player
--> start video playing but with low volume audio (than 2ns phase)
(i confirm that my iPhone’s volume is set to Max)
Is there any possibility to get full volume of recorded video play.
I tried to play recorded video in native.newVideo() but see same low volume audio issue there.
I am running below code:
– Capture completion listener
local function onComplete( event )
if event.completed then
print( event.duration )
print( event.fileSize )
print( event.url )
media.playVideo( event.url, media.RemoteSource , true, onVideoComplete )
end
end
if media.hasSource( media.Camera ) then
media.captureVideo( { listener=onComplete , preferredQuality=“high” } )
else
native.showAlert( “MyApp”, “This device does not have a camera.”, { “OK” } )
end
Can anyone help me please ???
I am using Corona SDK build 2015.2561. I tested on iPhone 5 and iPhone 5s.
Thank you in Advance.
Bhavin