Giter Site home page Giter Site logo

Comments (5)

tonihei avatar tonihei commented on July 30, 2024

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.

jstewart007 avatar jstewart007 commented on July 30, 2024

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.

tonihei avatar tonihei commented on July 30, 2024

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.

google-oss-bot avatar google-oss-bot commented on July 30, 2024

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.

google-oss-bot avatar google-oss-bot commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.