Krupen / AutoplayVideos

Android library to auto-play/pause videos from url in recyclerview.
Apache License 2.0
996 stars 147 forks source link

Using this video view in activity instead of complete recyclerview? #64

Open chnouman opened 6 years ago

chnouman commented 6 years ago

I'm trying to use this video view to play my own video but having no success i have tried this code

private void initVideoViews() {
        tv = findViewById(R.id.tv);
        img_vol = findViewById( R.id.img_vol);
        img_playback = findViewById( R.id.img_playback);
        aah_vi = (AAH_VideoImage) findViewById(R.id.video_player);

        setImageUrl("https://pre00.deviantart.net/7a94/th/pre/i/2015/143/a/0/this_is_da_boomb__by_reptonic-d8uispv.png");
        setVideoUrl("https://raw.githubusercontent.com/danikula/AndroidVideoCache/master/files/orange1.mp4");
        Picasso.with(ImageDetailActivity.this).
                load("https://pre00.deviantart.net/7a94/th/pre/i/2015/143/a/0/this_is_da_boomb__by_reptonic-d8uispv.png").config(Bitmap.Config.RGB_565).
                into(aah_vi.getImageView());

        setLooping(true);
        playVideo();

    }
anonym2 commented 6 years ago

Did you find the answer Sir ?

chnouman commented 6 years ago

@anonym2 buddy instead of this i'm using another videoview this was not ful filling my requirement.

emailsubjekt commented 5 years ago

@anonym2 buddy instead of this i'm using another videoview this was not ful filling my requirement.

Hey man, what library are you using?