Comments (5)
Have you seen google/ExoPlayer#10736? It sounds like this is basically the same question and the solution was to implement AdViewProvider
on the VideoSupportFragment
.
from media.
Yes, that is the only string I can find that is close to what I need. They list some code in there but it is not enough. I tried so hard to make this happen using a viewgroup but without seeing more of their implementation I can't make it work. I was hoping someone would show more of their code they used to implement the following:
public class PlayerFragment extends VideoSupportFragment implements AdViewProvider{
@OverRide
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
mPlayerView = (ViewGroup) super.onCreateView(inflater, container, savedInstanceState);
}
@Override
public ViewGroup getAdViewGroup() {
return mPlayerView;
}
}
from media.
I can't make it work
What are the symptoms of "can't make it work" exactly? Is it not compiling, are there any runtime errors, is the ad playing but you don't see the overlay, is the ad skipped entirely, ... ? As far the ad extension is concerned it really just needs a view group to display its overlay in. Other than that ad playback should just work.
from media.
Hey @jstewart007. We need more information to resolve this issue but there hasn't been an update in 14 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
from media.
Since there haven't been any recent updates here, I am going to close this issue.
@jstewart007 if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.
from media.
Related Issues (20)
- How to play downloaded content with a player in a MediaSession(Service)? HOT 2
- Is there support of sleep timer? HOT 2
- player.addMediaItems or player.setMediaItems takes too much time HOT 3
- "onSurfaceTextureSizeChanged" will not called with new size when use Video Effects.
- NetworkTypeObserver makes binding calls on mainthread by default HOT 2
- Getting the decoded from ExoPlayer in advance HOT 6
- Playing a song using MediaSessionService randomly turns on and off bluetooth for some reason on Android 11. HOT 9
- Render subtitles (Cue objects) via an Effect HOT 4
- Current application thread check for player.createMessage HOT 4
- Creating a perpetually loading MediaItem HOT 3
- HttpMediaDrmCallback setKeyRequestProperty PSSH name for header request HOT 1
- Media resumption results in DeadObjectException HOT 2
- Libflac decoder crash: flac_jni.cc (NewStringUTF)
- onVideoSizeChanged should be called before the frame has been written to surface
- How to overlay audio over video and preview in composition Player HOT 1
- DRM Video Playback: Black Screen with Audio Playing HOT 3
- HOWTO: Use DRM with CastPlayer HOT 1
- Android Auto ExoPlayer seeking of the audio track creates error while seeking to the end of the track HOT 1
- How can I play 360 stereoscopic vr video in ExoPlayer HOT 2
- hls+clearkey compatibility
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 media.