Questions tagged «android-videoview»


8
带有VideoView的无缝视频循环
我有以下代码将视频作为原始资源,启动视频并将其循环播放,但是从片段的结尾到现在,我需要视频才能无缝循环,然后再次开始播放片段,导致瞬间闪烁,我的应用程序确实无法做到这一点。 public class Example extends Activity { VideoView vv; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); vv = (VideoView)findViewById(R.id.VideoView01); //Video Loop vv.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { public void onCompletion(MediaPlayer mp) { vv.start(); //need to make transition seamless. } }); Uri uri = …

11
Android MediaPlayer错误(1,-2147483648)
我有两个要尝试加载到VideoView使用中的视频 videoView.setVideoURI(Uri.parse(url)); 这两个视频分别为视频1和视频2,它们具有以下规格(使用提取ffmpeg -i);实际上,它们是同一视频的两种不同编码: 影片1: Seems stream 0 codec frame rate differs from container frame rate: 180000.00 (180000/1) -> 90000.00 (180000/2) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '4fbfd5ece4b0932236fc234d.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42isomavc1 creation_time : 2011-12-03 04:43:46 genre : Trailer artist : Paramount Pictures title : Captain America: …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.