삼성 갤럭시 S에서 내 비디오를 재생하는 데 문제가 있습니다. sdcard에서 재생하면 문제가 발생하지만 서버에 업로드 한 다음 URL을 보내면 "죄송합니다.이 동영상은 재생할 수 없습니다. 재생 "합니다. 그것은. mp4 비디오 및 Sothink 비디오 변환기를 사용하여 안드로이드 형식으로 변환.죄송합니다.이 비디오는 재생할 수 없습니다! 오류/PlayerDriver
이 내 VideoView를 지켜 보면서 코드 :
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setListAdapter(ArrayAdapter.createFromResource(getApplicationContext(),
R.array.lecturehalls,R.layout.list_item));
final String[] links = getResources().getStringArray(R.array.vid_links);
getListView().setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View view,
int position, long id) {
String content = links[position];
Intent showContent = new Intent(getApplicationContext(),
VideoOutput.class);
showContent.setData(Uri.parse(content));
startActivity(showContent);
}
});
}
참고 : URL 경로는 strings.xml의 의 배열에 저장 나는이 링크를 사용할 때 잘 작동됩니다뿐만 아니라 내가 테스트 http://www.pocketjourney.com/downloads/pj/video/famous.3gp 내 링크가 잘 작동을 그것은 내 컴퓨터에 있지만 전화로 작동하지 않습니다!
12-14 02:11:01.621: ERROR/PlayerDriver(1287): Command PLAYER_INIT completed with an error or info PVMFFailure
편집 : VideoOutput 클래스 I는 스트리밍 미디어 재생은 재생 좋아하는 비디오 파일에 대한 매우 까다로운 것으로 나타났습니다
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.videoview);
MediaController mediaController = new MediaController(this);
VideoView videoView = (VideoView) findViewById(R.id.video);
Intent launchingIntent = getIntent();
String content = launchingIntent.getData().toString();
mediaController.setMediaPlayer(videoView);
videoView.setVideoPath(content);
videoView.setMediaController(mediaController);
videoView.requestFocus();
videoView.start();
mediaController.show();
}
나는 많은 다른 컨버터하지만 여전히 나는 핸드 브레이크를 사용하는 코덱의 설정을 변경 시도하고 지금은이 오류가 같은 시도 비디오 및 서버에서 재생할 필요가 없습니다 SD – ukama
불편을 끼쳐 드려 죄송합니다. 제 편집을 참조하십시오. – FoamyGuy
고맙습니다. Wondershare Video Converter를 사용해 보겠습니다. VideoOutput 클래스 편집을 참조하십시오. – ukama