Android Question wrap video intent to a panel

a2stepper

Member
Licensed User
Longtime User
i'm playing a video using intent/video and works good but is there a way i can put
that into a panel or put a background or image behind it?

thanks.
Paul
 

DonManfred

Expert
Licensed User
Longtime User
Who is the destination of the intent? Is it your app or another app which runs then?
Usually a intent calls another app. Your app is in the background (your activity is paused)

What do you want to show in a paused activity?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
So android will use a suiteable app and start it. Can you confirm that your activity is being paused after you start the intent? Put a log command in activity_pause to log it
I would guess YES; another app is running to show the video.

You can use the mediaplayer i believe to show the video in your app
 
Upvote 0

a2stepper

Member
Licensed User
Longtime User
yes thanks, i did download library but not working, i've tried every example in the forum and nothing works.
thanks anyway..
paul
 
Upvote 0

a2stepper

Member
Licensed User
Longtime User
java.lang.RuntimeException: Object should first be initialized (VideoView). this is the error i always get on different examples.

code:

Sub Globals
Dim vv As VideoView
End Sub

Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout ("1")
vv.Initialize("vv")
Activity.AddView(vv, 10dip, 10dip, 250dip, 250dip)

vv.loadvideo("http","http://videoservice.us/mobile/photo/photo.mp4")

vv.Play

End Sub


Sub vv_Complete
Log("Playing completed")
End Sub
 
Upvote 0
Top