samedi 4 juin 2016

Center video with VideoView (solved)

Hello

I am using VideoView (Audio library) to display videos.
I would like to center it on the device. But I do not have information on height and width of the video.

By doing this:

Code:
  vv.Initialize("vv")
vv.LoadVideo(Main.DirActual, Main.NombreUnaImagen)
DoEvents
Activity.AddView(vv, 0, 0, 100%x, 100%y)

Log("vv.Height "& vv.Height)
Log("vv.Width "& vv.Width)
The height and width returns me the width and height of the device but not the video

Any idea?

thanks

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1U5k7da
via IFTTT

Aucun commentaire:

Enregistrer un commentaire