Вниз
Скачать: CL | DM;

форматы в mediaSeeking (DirectShow)   Найти похожие ветки 

← →
hahol   (2007-09-02 14:08) [0]

привет всем
вот есть такой кусок кода
......
var
mediaseeking:iMediaSeeking;
........
if mediaseeking=nil then exit;
if (MediaSeeking.IsFormatSupported(time_format_frame)=s_ok) then
 begin
   MediaSeeking.SetTimeFormat(time_format_frame);
   Mediaseeking.GetDuration(FrameCount);
   InvalidateRect(Video_Display.Video_panel.Handle,nil,false);
   VideoWindow.put_Owner(Video_display.video_panel.Handle);
   VideoWindow.put_WindowStyle(WS_CHILD or WS_CLIPSIBLINGS);
   video_display.Show;
   istimeformat:=false;
   showmessage("time format");
 end else
  begin
  if (MediaSeeking.IsFormatSupported(TIME_FORMAT_MEDIA_TIME)=s_ok) then
   begin
    Mediaseeking.SetTimeFormat(TIME_FORMAT_MEDIA_TIME);
    MediaSeeking.GetDuration(FrameCount);
    FrameCount:=FrameCount div FrameDuration;
    isTimeFormat:=true;
    form1.Caption:="2";
    showmessage("mediatime format");
    Video_Display.Hide;
   end;
  end;

но он почемуто не работает
тк form1.caption не изменяется
че не правильно
подскажите плз
выже мастера


← →
Reindeer Moss Eater ©   (2007-09-02 22:48) [1]

А что, проверять результаты вызовов функций не модно?



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.006 c
2-1227191689
checkmate-maker
2008-11-20 17:34
2009.01.04
TBlobByteData


2-1227650952
Аврам
2008-11-26 01:09
2009.01.04
алгоритм кубиков для арканоида


8-1188577736
hahol
2007-08-31 20:28
2009.01.04
DirectShow


15-1225992268
palva
2008-11-06 20:24
2009.01.04
Гастарбайтеров станет больше


15-1225877553
ANB
2008-11-05 12:32
2009.01.04
А чего мы отмечали 4 ноября ?




   Наверх