gregchao Active Member Licensed User Longtime User Apr 21, 2019 #1 Is there anyway to sense when VideoPlayer changes from play to pause or visa versa?
Erel B4X founder Staff member Licensed User Longtime User Apr 22, 2019 #2 Try this: B4X: Dim no As NativeObject = VideoPlayer1 Dim state As Int = no.GetField("controller").GetField("player").GetField("timeControlStatus").AsNumber Should return 0 for paused and 2 for playing. You can use a timer to monitor it. Last edited: Apr 23, 2019 Upvote 0
Try this: B4X: Dim no As NativeObject = VideoPlayer1 Dim state As Int = no.GetField("controller").GetField("player").GetField("timeControlStatus").AsNumber Should return 0 for paused and 2 for playing. You can use a timer to monitor it.
gregchao Active Member Licensed User Longtime User Apr 22, 2019 #3 I replaced "NativePlayer" with "NativeObject" and it worked. Thanks. Upvote 0