Comments (3)
Hi!
I checked it out this scenario. It is possible to hide/show player controls using the following methods:
private void initButtonListeners() {
Button buttonHideControls = findViewById(R.id.button_hide_controls);
buttonHideControls.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
setUIControlVisibility(View.GONE);
}
});
Button buttonShowControls = findViewById(R.id.button_show_controls);
buttonShowControls.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
setUIControlVisibility(View.VISIBLE);
}
});
}
private void setUIControlVisibility(int visibility) {
//UI control view position in SkinLayout hierarchy
int controlId = 1;
if (skinLayout != null && skinLayout.getChildAt(controlId) != null) {
skinLayout.getChildAt(controlId).setVisibility(visibility);
}
}
I used OoyalaSkinSampleApp, in particular, OoyalaSkinPlayerActivity.java
You can initialize the listeners here.
It is kind of workaround for the current version of sdk.
Please let me know if it works for you.
Thanks,
Alina
from android-sample-apps.
@AlinaVoronkovaEpam The above solution works for us, Thanks for the help.
Have you considered adding a Picture in Picture sample to the android apps?
from android-sample-apps.
Closing due to inactivity for a long time.
from android-sample-apps.
Related Issues (20)
- Error while Building Complete Sample App HOT 1
- Exoplayer 2 HOT 2
- Stream not found HOT 2
- "Authorization Error: invalid token" occurs when trying to launch Widevine DASH Stream HOT 1
- COMPLETE SAMPLE APP IS NOT WORKING HOT 1
- Volume seek-bar can't see. HOT 1
- illegalOperationOccurred: Did not expect user ad resume while ad is playing. HOT 2
- SecurePlayerSampleApp compileSdkVersion HOT 2
- ChromecastSampleApp crashes on launch if expected version of Google Play Services is not installed HOT 2
- clean up Nielsen jni folders
- AndroidX Migration of Ooyala SDK has made it impossible to upgrade to v4.41.0 when using the support libs HOT 3
- Using OoyalaPlayer and OoyalaFreewheelManager in a Fragment HOT 1
- IMA SDK version v3.8.5 will be deprecated on 5/23/2019. See the Deprecation Schedule for more details. HOT 1
- DRM session manager error com.google.android.exoplayer2.upstream.HttpDataSource$HttpDataSourceException: Failed to parse the response body from ... HOT 1
- Video quality has worsened since upgrading Ooyala player version HOT 7
- [Ooyala v4.48] java.lang.NullPointerException OoyalaPlayerIMAWrapper.loadAd HOT 2
- [Ooyala v4.48] java.lang.NullPointerException: OoyalaPlayerIMAWrapper.playAd HOT 2
- All the ooyala analytics are reported under http://www.ooyala.com tag
- IMA Sample App - NullPointerException
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 android-sample-apps.