android - Record and play video in portrait -


hi guys have been trying record video in portrait mode , play after uploading aws s3. video plays in landscape mode ie. video rotated 90 degree clockwise. tried record video setting landscape orientation recording activity still same thing happens. while recording portrait used usepreviewdisplay method rotate preview 90 degree , know doesn't affect recording. when orientationhint 270 able play video in portrait on latest devices android 4.0 +, not other version. need play same video on web portal , using jw player playing videos on web. need play same video on ios to. how can acheive this. or ideas appreciated. in advance.

file file = new file(path, filename); mrec = new mediarecorder(); mcamera.lock(); mcamera.unlock(); mrec.setcamera(mcamera); mrec.setvideosource(mediarecorder.videosource.camera); mrec.setaudiosource(mediarecorder.audiosource.mic); mrec.setoutputformat(mediarecorder.outputformat.mpeg_4); mrec.setvideoencoder(mediarecorder.videoencoder.mpeg_4_sp); mrec.setaudioencoder(mediarecorder.audioencoder.amr_nb); mrec.setvideosize(320, 240); mrec.setpreviewdisplay(surfaceholder.getsurface()); mrec.setoutputfile(path + filename); mrec.prepare();


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -