C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 Q&A
C++Builder Programming Q&A
[54311] 동영상의 길이 구하려 하는데...전혀 엉뚱한 값들이 리턴 됩니다..
linuxman [] 1048 읽음    2008-08-13 11:46
MediaPlayer에서 동영상의 시간길이를 구하려 하는데...
아래처럼..help 에 있는 내용을 해보니.... 전혀 이해할수 있는 값들이 리턴됩니다..
실제로 약 3분 40초 짜리 동영상인데....
label1에선 240,  label2에는 3 , label3에는 89 ....
이것이 코덱 따리 틀릴수 있는건가요? 

     MediaPlayer1->FileName="d:\\test\\kim3.wmv";
     MediaPlayer1->Open();
     MediaPlayer1->Play();

       int TheLength;
  // Set time format - note that some devices don뭪 support tfHMS
  MediaPlayer1->TimeFormat = tfHMS;

  // Store length of currently loaded media
  TheLength = MediaPlayer1->Length;
  //Label1->Caption = IntToStr ( TheLength );
  // display hours in label 1
  Label1->Caption = IntToStr(LOBYTE(LOWORD(TheLength)));
  // display minutes in label 2
  Label2->Caption = IntToStr(HIBYTE(LOWORD(TheLength)));
  // display the seconds in label 3
  Label3->Caption = IntToStr(LOBYTE(HIWORD(TheLength)));

+ -

관련 글 리스트
54311 동영상의 길이 구하려 하는데...전혀 엉뚱한 값들이 리턴 됩니다.. linuxman 1048 2008/08/13
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.