harmonwood / capacitor-video-player

Capacitor Video Player Plugin
MIT License
116 stars 46 forks source link

Android Custom Controls #137

Closed sClarkeDev closed 1 year ago

sClarkeDev commented 1 year ago

is it possible to use overlay controls on android? i have disabled default controls using "showControls" and am trying to render a div ontop of the player but it is always under the player.

`const Player: React.FC = () => { return (

OVERLAY

); }; `

Player init config: playerId: 'fullscreen', url: TEST_VIDEO, mode: 'fullscreen', bkmodeEnabled: false, chromecast: false, displayMode: 'landscape', pipEnabled: false, showControls: false, componentTag: 'div'

jepiqueau commented 1 year ago

@sClarkeDevz This is not possible the android part of the plugin use Exoplayer and is written in Java, so nothing to do with a HTML div element which is part of the web view.