iOS Question Video Viewer not working

Pablo Torres

Active Member
Licensed User
Longtime User
Hi, I can't make the video viewer play a video

I declared the VideoViewer in Sub Process_Globals
<code>
Private RepVideo As VideoView
</code>

I initializated the VideoViewer in the application start:
<code>
RepVideo.Initialize("ReproductorVideo")
pagVideo.Initialize("pagVideo")
pagVideo.RootPanel.Color = Colors.White
pagVideo.RootPanel.LoadLayout("Video")
pagVideo.RootPanel.AddView(RepVideo.View,0,0,100%x,100%y)
RepVideo.View.Visible=True
RepVideo.ShowControls=True
</code>

I added a button where I send the application to the pagVideo and this is the code for that button:
<code>
NavControl.ShowPage2(pagVideo,True)
</code>

I also added this code:
<code>
Sub pagVideo_Appear
RepVideo.LoadVideoUrl(strVideo)
Log(strVideo)
RepVideo.View.Visible=True
RepVideo.View.Alpha=255
RepVideo.View.SetBorder(3,Colors.White,10)
RepVideo.View.TintColor=Colors.White
ud.ProgressDialogShow("Cargando Video")
End Sub

Sub ReproductorVideo_Ready
ud.ProgressDialogHide
RepVideo.Position=0
RepVideo.Play
End Sub
</code>

i dont understand what I'm doing wrong

strvideo=""

I will be very happy with any help
Thanks
 
Top