Avi file and black screen

kalarius

Active Member
Licensed User
Longtime User
At the complete event ||I have the follow code

B4X:
xxx
xxx
xxx
File.Copy("sdcard","newavi.avi","sdcard","myavi.avi")
   File.Delete ("sdcard","newavi.avi")
' I have the same name of the avi file but it is different contents
   
vv.LoadVideo("mnt/sdcard", "myavi.avi")
    vv.BringToFront
    DoEvents
    vv.Position=0000
    vv.Play ' play it

The player start play the file but the screen is black
I must move the mouse to see the screen
*** the device when it plays does not have a mouse to move or touch screen

when I start the activity it shows ok
olny when I change the file (the content) it goes to black

so I must have an other solution to refresh the screen

thank
Kalarakis
Greece
 

kalarius

Active Member
Licensed User
Longtime User
my device mk802 II
Welcome to Rikomagic UK
has mouse and keyboard (on the usb or with wifi)
and the TV as screen
Now I use 32" screen 1280X1060


**** I have remove the vv.position=0 but still the screen is black whn change the contents of the avi file


How can Refresh the object on the screen????
 
Upvote 0

kalarius

Active Member
Licensed User
Longtime User
:signOops:

sorry but
the question is how to refresh the view
not
if it is need or not to refresh the view

is there any command or something to do it?

as I wrote if I move the mouse it shows the avi on the screen
I install it on a teplephone and I must touch the screen to see the avi.
So I must do it with program Because of the MK800 device when it plays the avi it doent have a mouse on it.

Kalarakis
Greece
 
Upvote 0

kalarius

Active Member
Licensed User
Longtime User
I found that if the files has tha same resolution there is no problem
If the first file is 1280X700 and the second is 320X400 then there is a problem.
I must restart the program.
 
Upvote 0
Top