M MbedAndroid Well-Known Member Licensed User Longtime User Nov 17, 2020 #1 Playing with exoplayer it seems that neither in the designer or code you can't disable the visible function? Bug? And if so will it be fixed in the future? And does someone knows if there is some way to auto start the movie? (ï'm using a mp4 video from a private server). Always you need to click in the play icon to start the video. Last question. Tried the exoplayer serveral times. Sometimes it stops middle of the video. But the buffer is filled. When you click a bit around it goes on. Dont think it is related to the server, as Webview hasnt this problem.
Playing with exoplayer it seems that neither in the designer or code you can't disable the visible function? Bug? And if so will it be fixed in the future? And does someone knows if there is some way to auto start the movie? (ï'm using a mp4 video from a private server). Always you need to click in the play icon to start the video. Last question. Tried the exoplayer serveral times. Sometimes it stops middle of the video. But the buffer is filled. When you click a bit around it goes on. Dont think it is related to the server, as Webview hasnt this problem.
Erel B4X founder Staff member Licensed User Longtime User Nov 17, 2020 #2 Not sure what you mean. Just tried it with: Code: Private Sub Button1_Click SimpleExoPlayerView1.Visible = False End Sub The video disappears. Upvote 0
Not sure what you mean. Just tried it with: Code: Private Sub Button1_Click SimpleExoPlayerView1.Visible = False End Sub The video disappears.
M MbedAndroid Well-Known Member Licensed User Longtime User Nov 17, 2020 #3 Bit strange. If i play 1 video, the SimpleExoPlayerView1.Visible = False works. But when the app starts, even with SimpleExoPlayerView1.Visible = False in activity_create, the view stays. SimpleExoPlayerView1.Visible = False setting in designer. Still the window is there Question 2) i found already you need to insert : B4X: player1.Play Question 3) might be related to the video. Upvote 0
Bit strange. If i play 1 video, the SimpleExoPlayerView1.Visible = False works. But when the app starts, even with SimpleExoPlayerView1.Visible = False in activity_create, the view stays. SimpleExoPlayerView1.Visible = False setting in designer. Still the window is there Question 2) i found already you need to insert : B4X: player1.Play Question 3) might be related to the video.
Erel B4X founder Staff member Licensed User Longtime User Nov 17, 2020 #4 You can put it in a panel and hide it. Upvote 0
M MbedAndroid Well-Known Member Licensed User Longtime User Nov 17, 2020 #5 found it. You need minimum these lines in activity_start B4X: player1.Initialize("player") SimpleExoPlayerView1.Player = player1 SimpleExoPlayerView1.Visible=False Upvote 0
found it. You need minimum these lines in activity_start B4X: player1.Initialize("player") SimpleExoPlayerView1.Player = player1 SimpleExoPlayerView1.Visible=False
M MbedAndroid Well-Known Member Licensed User Longtime User Nov 17, 2020 #6 I had those lines in a playvideo sub... that's why Thanks Erel Upvote 0
M MbedAndroid Well-Known Member Licensed User Longtime User Nov 17, 2020 #7 after some playing the best way to solve this issue is indeed with a panel. As without a panel i see -for a short moment -still the exoplayer view..... Users dont like such things. So with a panel the view is only there when needed... Upvote 0
after some playing the best way to solve this issue is indeed with a panel. As without a panel i see -for a short moment -still the exoplayer view..... Users dont like such things. So with a panel the view is only there when needed...