http를 통해 비디오 플레이어를 검색하는 동안 나는이 URL에있는 기사를 발견했습니다. ?검은 딸기에 http를 통해 비디오 스트리밍
http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/1089414/Stream ing_media _-_ Start_to_finish.html이 nodeid가 = 2,456,737이 &가했습니다 rnum =
내가 추가하여 실행할 수 0; URL의 끝에 "deviceside = true"로. 그것은 jde4.5 시뮬레이터에서 잘 작동합니다. 내 로컬 서버에서 3gp 비디오를 가져옵니다. 나는 580kb 파일로 테스트를하고 잘 작동한다. 하지만 내 서버 (로컬, 실제 서버가 아닌)에서 동일한 파일을 가져올 때 큰 파일 (예 : 580KB)에 문제가 있습니다. 그것은 180kb 파일을 재생하지만 (때로는이 파일도 재생하지 않음) 580kb 파일을 재생하지는 않습니다. 또한 내 9000 장치에 응용 프로그램을 배포 할 때 가끔 작은 파일 (180kb)을 재생하지만 큰 파일 (580kb)을 재생하지 않습니다.
로컬 파일에있는 경우 재생되는 이유는 실제 세계에서 재생되지 않습니다.
며칠 동안 갇혀 있습니다. 당신이 나를 도울 수 있기를 바랍니다.
아래의 URL 코드는 작동하지 않습니다. 발견 한 코드는 위와 같습니다.
blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/1089414/How_To _-_ Play_video_within_a_BlackBerry_smartphone_appli cation.html? nodeid가 = 1,383,173 & vernum = 0 BTW
,가없는 방법 등 CircularByteBuffer 클래스의 resize (long param)로 사용됩니다. 그래서 relavent 라인 (buffer.resize (buffer.getSize() + 코멘트 (buffer.getSize() * 비율/100)). 다음과 같이 미리
public void increaseBufferCapacity(int percent) {
if(percent < 0){
log(0, "FAILED! SP.setBufferCapacity() - " + percent);
throw new IllegalArgumentException("Increase factor must be positive..");
}
synchronized(readLock){
synchronized(connectionLock){
synchronized(userSeekLock){
synchronized(mediaIStream){
log(0, "SP.setBufferCapacity() - " + percent);
//buffer.resize(buffer.getSize() + (buffer.getSize() * percent/100));
this.bufferCapacity = buffer.getSize();
}
}
}
}
}
감사