teddybear Well-Known Member Licensed User Jan 31, 2022 #1 When using CreateListSource to play video, we can change item of playlist by clicking next or pre button of usercontorller, if I don't use usercontroller, can I change item of playlist as usercontroller?
When using CreateListSource to play video, we can change item of playlist by clicking next or pre button of usercontorller, if I don't use usercontroller, can I change item of playlist as usercontroller?
Erel B4X founder Staff member Licensed User Longtime User Feb 1, 2022 #2 Try this: B4X: Dim native As JavaObject = player1.As(JavaObject).GetFieldJO("player") native.RunMethod("next", Null) 'also related: native.RunMethod("previous", Null) 'And Log(native.RunMethod("hasNext", Null)) Upvote 0
Try this: B4X: Dim native As JavaObject = player1.As(JavaObject).GetFieldJO("player") native.RunMethod("next", Null) 'also related: native.RunMethod("previous", Null) 'And Log(native.RunMethod("hasNext", Null))
teddybear Well-Known Member Licensed User Feb 1, 2022 #3 Erel said: Try this: B4X: Dim native As JavaObject = player1.As(JavaObject).GetFieldJO("player") native.RunMethod("next", Null) 'also related: native.RunMethod("previous", Null) 'And Log(native.RunMethod("hasNext", Null)) Click to expand... Thanks for your hint Upvote 0
Erel said: Try this: B4X: Dim native As JavaObject = player1.As(JavaObject).GetFieldJO("player") native.RunMethod("next", Null) 'also related: native.RunMethod("previous", Null) 'And Log(native.RunMethod("hasNext", Null)) Click to expand... Thanks for your hint
teddybear Well-Known Member Licensed User Feb 1, 2022 #4 Erel said: Try this: B4X: Dim native As JavaObject = player1.As(JavaObject).GetFieldJO("player") native.RunMethod("next", Null) 'also related: native.RunMethod("previous", Null) 'And Log(native.RunMethod("hasNext", Null)) Click to expand... Thanks again, it solved my proeblem of exoplayer on TV. Additional questions for ask? 1.Is it support ts stream? 2.I can get the CurrentWindowIndex of player, can I set the CurrentWindowIndex? Upvote 0
Erel said: Try this: B4X: Dim native As JavaObject = player1.As(JavaObject).GetFieldJO("player") native.RunMethod("next", Null) 'also related: native.RunMethod("previous", Null) 'And Log(native.RunMethod("hasNext", Null)) Click to expand... Thanks again, it solved my proeblem of exoplayer on TV. Additional questions for ask? 1.Is it support ts stream? 2.I can get the CurrentWindowIndex of player, can I set the CurrentWindowIndex?