I tried Erel's sample (#13) for moving from portrait to landscape with 2 activities:
It works fine... until I move the code in my B4XPage application.
Creating the second activity and moving current video from portrait to landscape are going well until KeyCode Back is pressed in the second (landscape) activity.
With debugging, issue is coming on line "Activity Finish" or "Return True"
I attached a picture with the code and the error message
Please could you help
Extra Exo Player features
Hello, We are using Exo Player for a video music application but we have problem in using some features like fullscreen , repeat , select quality (or autmatically detect the best quality with users internet speed) , and how to get buffer size ? I appreciate any help.
www.b4x.com
Creating the second activity and moving current video from portrait to landscape are going well until KeyCode Back is pressed in the second (landscape) activity.
With debugging, issue is coming on line "Activity Finish" or "Return True"
B4X:
Sub Activity_KeyPress (KeyCode As Int) As Boolean 'Return True to consume the event
Log("Clic sur Full Screen")
If KeyCode = KeyCodes.KEYCODE_BACK Then
Dim Page2 As Video
Page2 = B4XPages.GetPage("Video") ' Accès aux constantes
Page2.PlayerVideo.Pause
CallSubDelayed("Video", "ReturnFullVideo")
Activity.Finish
End If
Return True
End Sub
Please could you help