resized movie on android ?

I know when.i started developing.in corona.2 years ago they said its just around the corner
And.i understand.that.on ios you can.have.resized video playing.inside the app without it intefiring with the rest of the app
But is there a way to do this on android ?

Did anuone done this on enterpris and.could.share me.his code ?

anybody ?

Hi @Mars Interactive,

I’m not sure what you mean by “doing this in Enterprise”. Our “native.newVideo()” API works in Android and the videos can be resized. They just can’t be rotated, which is already stated in the documentation.

http://docs.coronalabs.com/api/library/native/newVideo.html

Brent

anybody ?

Hi @Mars Interactive,

I’m not sure what you mean by “doing this in Enterprise”. Our “native.newVideo()” API works in Android and the videos can be resized. They just can’t be rotated, which is already stated in the documentation.

http://docs.coronalabs.com/api/library/native/newVideo.html

Brent

Hi @Brent,

I am developing an android app (using Corona SDK Version 2014.2393 (2014.8.5)).  “native.newVideo” also not helping me to resize the video size ( so some black space is visible on both side). According to your last post, it should work for android too, right??  Thanks.

Hi @Farzee,

Are you adjusting the video view’s width and height based on your content area settings? What is your content size scale? Are you familiar with the core concept of the content area as explained in the following guide?

http://docs.coronalabs.com/guide/basics/configSettings/index.html

Brent

Hi @Brent,

I adjusted video view according to content area setting, this is my config.lua

application = {

content = {

width = 480,

height = 854, 

scale = “zoomStretch”,

fps = 60,

 },

}

and for video view, I am using

local video = native.newVideo( mPixelWidth/2, mPixelHeight/2, 480, mPixelHeight )

where mPixelWidth and mPixelHeight is 480, 854

And what happens now? On some devices do you still get space around the video?

By the way, I highly discourage you from using the “zoomStretch” scale mode. This will make your images stretch to fit any screen, not necessarily at the same ratio. You should explore the “letterbox” or “zoomEven” scale modes, as those are far better.

Brent

@Brent:- Thanks for your suggestion.  :slight_smile:

But, still getting problem :huh:  with video resizing.So, Now I am using  device-resolution sized video, which are working fine.

Any suggestion/solution regarding this problem…welcome always!!  :smiley:

Hi @Brent,

I am developing an android app (using Corona SDK Version 2014.2393 (2014.8.5)).  “native.newVideo” also not helping me to resize the video size ( so some black space is visible on both side). According to your last post, it should work for android too, right??  Thanks.

Hi @Farzee,

Are you adjusting the video view’s width and height based on your content area settings? What is your content size scale? Are you familiar with the core concept of the content area as explained in the following guide?

http://docs.coronalabs.com/guide/basics/configSettings/index.html

Brent

Hi @Brent,

I adjusted video view according to content area setting, this is my config.lua

application = {

content = {

width = 480,

height = 854, 

scale = “zoomStretch”,

fps = 60,

 },

}

and for video view, I am using

local video = native.newVideo( mPixelWidth/2, mPixelHeight/2, 480, mPixelHeight )

where mPixelWidth and mPixelHeight is 480, 854

And what happens now? On some devices do you still get space around the video?

By the way, I highly discourage you from using the “zoomStretch” scale mode. This will make your images stretch to fit any screen, not necessarily at the same ratio. You should explore the “letterbox” or “zoomEven” scale modes, as those are far better.

Brent

@Brent:- Thanks for your suggestion.  :slight_smile:

But, still getting problem :huh:  with video resizing.So, Now I am using  device-resolution sized video, which are working fine.

Any suggestion/solution regarding this problem…welcome always!!  :smiley: