native Video slider , or media video ads.

Hi,

i want to put ads in my video apps.

but i try media video, and theres no way to put ads in front of it. so i using native video.

but theres no controler.

is there any way to create slider controler with native video ?

i have create slider, and show current time, but no luck.

local slider = widget.newSlider

{

top = 700,

left = 200,

width = 900,

value = video.currentTime,

listener = sliderListener

}

if event.errorCode then

native.showAlert( “Error!”, event.errorMessage, { “OK” } )

end

or there is a way to show ads in media video?

thanks in advance

or there is tutorial to use video.currentTime ?

thanks

native.newVideo (and anything that starts with native.*) resides in a layer above the Corona SDK graphics layer.  Corona’s display.* and widget.* API’s are done in OpenGL and you can’t mix the two and native.* is always on top.  The only part of native.* that works with display.* is putting them in a display.newGroup or Composer scene for managing their transition on and off screens or moving them with the rest of the display.  Only media.playVideo (http://docs.coronalabs.com/api/library/media/playVideo.html) has playback controls available to it.

You could of course not play the video full screen and leave an area below it where you could use a progress bar or slider to do that.  It would seem that you should be able to use the .load() method to show a pre-roll and then .load() to load the main video.

Rob

Hi Rob,

thanks for the answer. i try to use preload interstitial ads to put it betweeb media.playVideo. So its not able to put ads above media.playVideo ?

Also,how to use video.currenttime ? (object.currentTime). I try to create slider and controler for my native video.

thanks

or there is tutorial to use video.currentTime ?

thanks

native.newVideo (and anything that starts with native.*) resides in a layer above the Corona SDK graphics layer.  Corona’s display.* and widget.* API’s are done in OpenGL and you can’t mix the two and native.* is always on top.  The only part of native.* that works with display.* is putting them in a display.newGroup or Composer scene for managing their transition on and off screens or moving them with the rest of the display.  Only media.playVideo (http://docs.coronalabs.com/api/library/media/playVideo.html) has playback controls available to it.

You could of course not play the video full screen and leave an area below it where you could use a progress bar or slider to do that.  It would seem that you should be able to use the .load() method to show a pre-roll and then .load() to load the main video.

Rob

Hi Rob,

thanks for the answer. i try to use preload interstitial ads to put it betweeb media.playVideo. So its not able to put ads above media.playVideo ?

Also,how to use video.currenttime ? (object.currentTime). I try to create slider and controler for my native video.

thanks