How to play demo video in custom width and height instead of full screen

Hi all,

I am developing a pre-School game.In my game,I need to play a demo video before playing the game.

Please have a look in the attached image below.

I would like to know how to  play a video in Customize Size (Width and height) without displaying the Full Screen and also need to skip if the player doesn’t want to see the demo video (by pressing the Skip button).

I tried to use  native.newVideo. This function is only supported on iOS. Actually,my game suppose to run on iOS and Android.

May I know how to play a game demo video in Customize Size (Width and height) and which library I need to use in order to play a demo video for both iOS and Android?

Best Regards,

John

your only option for both is media.playVideo() and it uses the phones media player to play the video in so you cant control the size.

you could detect if the users device is ios or android then use media.playVideo() for android and use native.newVideo() on ios which will let you set a size

I had the same problem on Android. Sadly the native.newVideo(), which is exactly what we are asking for, doesn’t work for Android. I had to abandon the idea.

I hope they make it work someday for Android. In ADT SDK you can use and scale/position a video as you please.

I don’t know what is the case for iOS and if it works as expected there.

your only option for both is media.playVideo() and it uses the phones media player to play the video in so you cant control the size.

you could detect if the users device is ios or android then use media.playVideo() for android and use native.newVideo() on ios which will let you set a size

I had the same problem on Android. Sadly the native.newVideo(), which is exactly what we are asking for, doesn’t work for Android. I had to abandon the idea.

I hope they make it work someday for Android. In ADT SDK you can use and scale/position a video as you please.

I don’t know what is the case for iOS and if it works as expected there.