Vuforia Augmented Real SDK로 실험 중이며 샘플입니다. 성공적으로 비디오 페이 백 샘플을 컴파일하고 태블릿에서 실행했습니다. 그런 다음 장치 대신 URL에서 비디오를로드하려고했습니다. 샘플 코드의 주석에 이어 , VideoPlayerHelper.java에 나는이 부분에서 주석 :vuforia AR SDK - URL로 비디오를 재생할 수 없습니다.
// This example shows how to load the movie from the
// assets folder of the app
// However, if you would like to load the movie from the
// sdcard or from a network location
// simply comment the three lines below
AssetFileDescriptor afd = mParentActivity.getAssets()
.openFd(filename);
mMediaPlayer.setDataSource(afd.getFileDescriptor(),
afd.getStartOffset(), afd.getLength());
afd.close();
하고이 부분을 주석 및 비디오 파일을 온라인에 URL을 추가 : 아직도
mMediaPlayer.setDataSource("http://oneshot.qualcomm.com/webAR/content/strawberryfields_H264_AAC.mp4");
을 내가 할 수 오류없이 컴파일하지만 트리거 이미지쪽으로 카메라를 가리킬 때 십자가가 보이거나 비디오를로드하는 모래 시계가 보입니다. 그러나 아무 일도 일어나지 않습니다. 이 문제를 해결하기 위해 무엇을해야합니까? vuforia 포럼에서 둘러 보았습니다. 대부분의 솔루션은 (내가 사용 하나이 제안되었다) 기본적으로 이미이 일을 같이하고 있어요 무슨 변화가 제대로 비디오를 선택했다 :
Uri videolink = Uri.parse("http://oneshot.qualcomm.com/webAR/content/strawberryfields_H264_AAC.mp4");
mMediaPlayer.setDataSource(mParentActivity,videolink);