Comments (3)
@janbolat I'v opend internal ticket for this FEM-2669
please follow our release when this is added
from playkit-android.
@giladna any news on this?
from playkit-android.
After looking at it,
Seems that all you have to do is to add this listener on Application level and handle what ever you need
In addition you have the life cycle events to decide if player is visible or not
unless you do it your self and then you know what is the state.
implement -> PlayerControlView.VisibilityListener
playerFrameLayout = findViewById(R.id.player_view);
playerFrameLayout.setControllerVisibilityListener(this);
playerFrameLayout.setErrorMessageProvider(new PlayerErrorMessageProvider());
playerFrameLayout.requestFocus();
playerFrameLayout.addView(player.getView());
@Override
public void onVisibilityChange(int visibility) {
debugRootView.setVisibility(visibility);
}
@Override
public boolean dispatchKeyEvent(KeyEvent event) {
log.d("dispatchKeyEvent");
if (playerFrameLayout != null) {
// See whether the player view wants to handle media or DPAD keys events.
return playerFrameLayout.dispatchKeyEvent(event) || super.dispatchKeyEvent(event);
}
return false;
}
could you explain your use case or share a sample app?
from playkit-android.
Related Issues (20)
- Unable to compile the new 3.2.0 SDK HOT 6
- Expose setresizemode. HOT 2
- Support Dart (Flutter) HOT 6
- Cant get TextTracks for DASH media source type HOT 4
- JsonParseException in OvpResultAdapter, Android 9 HOT 4
- Access to exoplayer HOT 1
- [Question] Is KavaAnalyticsPlugin and KalturaAnalyticsPlugin the same? HOT 1
- Please add getVolume for "interface Player" HOT 5
- [Question] ads events, how to know preroll ad is ready to play HOT 13
- [Question] add/remove plugins after PlayKitManager.loadPlayer HOT 2
- React Native Integration HOT 3
- Can't parse local dash exception when trying to register DRM protected content HOT 2
- jcenter is shutting down HOT 1
- Ad events (AD_LOAD_TIMEOUT_TIMER_STARTED and ERROR) are not fired HOT 4
- Not able to get all audio tracks HOT 1
- [Question] bumper video HOT 2
- Video can not play error occur. HOT 5
- ANR happening on some Android 11/12 devices after calling `PlayKitManager.loadPlayer` HOT 5
- toggle stereo for android
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from playkit-android.