Krupen / AutoplayVideos

Android library to auto-play/pause videos from url in recyclerview.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using this video view in activity instead of complete recyclerview?

chnouman opened this issue · comments

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();



   }

Did you find the answer Sir ?

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

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

Hey man, what library are you using?