J John Sparrow Member Licensed User Longtime User Feb 6, 2015 #1 In Basic4Android I added a VideoView with: B4X: Activity.AddView(vv,10%x,0,80%x,100%y) I cannot use this approach in b4i. In Erel's tutorial on videoview and camera (https://www.b4x.com/android/forum/threads/imedia-library-camera-and-videoview.46144/#content) he refers to noting that the VideoView object itself is not a View (unlike in B4A). How do I add VideoView.View to the layout? Thanks John
In Basic4Android I added a VideoView with: B4X: Activity.AddView(vv,10%x,0,80%x,100%y) I cannot use this approach in b4i. In Erel's tutorial on videoview and camera (https://www.b4x.com/android/forum/threads/imedia-library-camera-and-videoview.46144/#content) he refers to noting that the VideoView object itself is not a View (unlike in B4A). How do I add VideoView.View to the layout? Thanks John
klaus Expert Licensed User Longtime User Feb 6, 2015 #2 Look at the example code in the post you are refering to. Upvote 0
ilan Expert Licensed User Longtime User Feb 6, 2015 #3 John Sparrow said: In Basic4Android I added a VideoView with: B4X: Activity.AddView(vv,10%x,0,80%x,100%y) I cannot use this approach in b4i. In Erel's tutorial on videoview and camera (https://www.b4x.com/android/forum/threads/imedia-library-camera-and-videoview.46144/#content) he refers to noting that the VideoView object itself is not a View (unlike in B4A). How do I add VideoView.View to the layout? Thanks John Click to expand... B4X: Page1.RootPanel.AddView(vv.View,0,0,100%x,100%y) Upvote 0
John Sparrow said: In Basic4Android I added a VideoView with: B4X: Activity.AddView(vv,10%x,0,80%x,100%y) I cannot use this approach in b4i. In Erel's tutorial on videoview and camera (https://www.b4x.com/android/forum/threads/imedia-library-camera-and-videoview.46144/#content) he refers to noting that the VideoView object itself is not a View (unlike in B4A). How do I add VideoView.View to the layout? Thanks John Click to expand... B4X: Page1.RootPanel.AddView(vv.View,0,0,100%x,100%y)
J John Sparrow Member Licensed User Longtime User Feb 7, 2015 #4 ilan said: B4X: Page1.RootPanel.AddView(vv.View,0,0,100%x,100%y) Click to expand... Thanks. Sorted! Upvote 0