2

アプリで http URL からビデオ ファイルを再生しようとしています。私のアプリが特定の mp4 ファイルのみを再生し (512k mp4 を試してみたところ、うまくいきました)、他のいくつかのファイルを再生しないのはなぜですか?

これが私のコードのスニペットです:

    mVideoView.setVideoPath(myVideoURL);
    mVideoView.setMediaController(new MediaController(this));
    mVideoView.seekTo(currentPosition);
    mVideoView.requestFocus(); 

ありがとうクリス

4

1 に答える 1

3

Make sure your mp4's aren't DRM'd, and that they're not wider than 320 pixels (videoView will not scale them for you). Are you getting any useful errors in LogCat?

于 2010-05-26T05:40:39.053 に答える