2

I'm working with VideoView and I'm trying to show same video in two Videoviews like this application

I'm following this link to show the video in two VideoViews but I'm getting delay in both audio and video on both videoviews so please help me to solve this problem. I need to play the video at the same time without any delay

Thank you..

Community
  • 1
  • 1
Suresh
  • 427
  • 1
  • 6
  • 22

2 Answers2

0

Two TextureViews and two MediaPlayers should do the trick. Here's is a link for a demo of video playing with TextureView.

http://www.malmstein.com/blog/2014/08/09/how-to-use-a-textureview-to-display-a-video-with-custom-media-player-controls/

Then you can play video with sync by managing two media players. If you face problems while playing in sync comment on this answer and I'll post code.

bpr10
  • 1,086
  • 8
  • 14
0

The code example in this YouTube shows two VideoViews playing near the end of the clip. The example is playing different videos, but you can set the URL of each VideoView to the same video.

Milad Yarmohammadi
  • 1,253
  • 2
  • 22
  • 37
Greg Marsh
  • 209
  • 1
  • 2
  • 9