Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Multimedija u delphi-u

[es] :: Pascal / Delphi / Kylix :: Multimedija u delphi-u

[ Pregleda: 564 | Odgovora: 3 ]

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

Vladica Savić
My Computer - LordWEB!
Nis/Leskovac

Član broj: 26699
Poruke: 443
*.ptt.yu.

ICQ: 368492567
Sajt: myitviewoflife.blogspot.c..


Profil

icon Multimedija u delphi-u23.04.2005. u 07:18

Caos ljudi

Imam jedan problem
Zeleo bih da player koji sam napravio pusta filmove, ali to nije problem on ih pusta,samo isecene (odredjeni deo, ne ceo film(po povrsini mislim)), koristim klasicnu komponentu medialpayer, a kao deo za prikazivanje mi sluzi panel komponenta. Nije mi jasno u cemu je problem, i zasto ovo nece da funkcionise kako bi ja to hteo.
Ako neko zna resenje na ovaj problem neka mi pomogne.
A da tu je i problem kako da preko trackbar-a menjam poziciju trake ili filma koji pusta mediaplayer kao jump u radlight-u ili slicno, znate na sta mislim.

Unapred hvala
VladaLe
23.04.2005. u 07:18 

Nemanja Avramović
PHP developer, Webinsane
Mladenovac, Srbija

Član broj: 32202
Poruke: 3862
*.yu1.net.

ICQ: 266136396
Sajt: www.avramovic.info


Profil

icon Re: Multimedija u delphi-u23.04.2005. u 08:42
vidi ovo:

Code:

{//////////////////////////////////////////////////////////////
 This sample shows how to play .AVI-file in TPanel component.
 Note that TMediaPlayer component is hidden and we use our own
 buttons to Play, Pause/Continue and Stop movie.
//////////////////////////////////////////////////////////////}
unit AVIUnit;
interface
uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  MPlayer, StdCtrls, ExtCtrls, ComCtrls;
type
  TForm1 = class(TForm)
    MediaPlayer1: TMediaPlayer;
    Button1: TButton;
    Panel1: TPanel;
    Button2: TButton;
    Button3: TButton;
    TrackBar1: TTrackBar;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
    procedure Button3Click(Sender: TObject);
    procedure TrackBar1Change(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;
var
  Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
var
  TheLength: LongInt;
begin
With MediaPlayer1 do
  Begin
   DeviceType := dtAVIVideo;
   TimeFormat := tfFrames;
   Open;
   FileName := 'd:\welcome.avi';
{
}
   TrackBar1.Max := Frames;
   TheLength := Length;
   Display := Panel1;
   DisplayRect := Rect(10,10, Panel1.Width-20,Panel1.Height-20);
   Play;
  End;
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
 If (Sender As TButton). Caption = 'Pause' Then
   (Sender As TButton). Caption := 'Continue';
 If (Sender As TButton). Caption = 'Continue' Then
   (Sender As TButton). Caption := 'Pause';
 MediaPlayer1.Pause;
end;
procedure TForm1.Button3Click(Sender: TObject);
begin
 MediaPlayer1.Stop;
 Panel1.Refresh;
end;
procedure TForm1.TrackBar1Change(Sender: TObject);
begin
 With MediaPlayer1 do
  Begin
   StartPos := TrackBar1.Position;
   Play;
  End;
end;
end.


p.s. ako ovo nema veze s temom, ne zamerite, sad sam dosao sa zurke!
Moj sajt. Moj blog. Moj avatar. Moj grad. Moja frizura.

[NE PRUŽAM PODRŠKU ZA PHP PREKO PRIVATNIH PORUKA!]
23.04.2005. u 08:42 

Vladica Savić
My Computer - LordWEB!
Nis/Leskovac

Član broj: 26699
Poruke: 443
*.ptt.yu.

ICQ: 368492567
Sajt: myitviewoflife.blogspot.c..


Profil

icon Re: Multimedija u delphi-u24.04.2005. u 15:28
Bas ti hvala to je ono sto sam trazio.
Puno si mi pomogao

24.04.2005. u 15:28 

Nemanja Avramović
PHP developer, Webinsane
Mladenovac, Srbija

Član broj: 32202
Poruke: 3862
*.yu1.net.

ICQ: 266136396
Sajt: www.avramovic.info


Profil

icon Re: Multimedija u delphi-u24.04.2005. u 16:24
hehe, blago meni :D ipak nisam pogresio iako sam bio mrtav (umoran)

oki onda, srecno! i vichi opet ako treba jos nesto
Moj sajt. Moj blog. Moj avatar. Moj grad. Moja frizura.

[NE PRUŽAM PODRŠKU ZA PHP PREKO PRIVATNIH PORUKA!]
24.04.2005. u 16:24 

[es] :: Pascal / Delphi / Kylix :: Multimedija u delphi-u

[ Pregleda: 564 | Odgovora: 3 ]

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.