-
Notifications
You must be signed in to change notification settings - Fork 88
/
Copy pathuFrmVideo.pas
85 lines (69 loc) · 1.77 KB
/
uFrmVideo.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
unit uFrmVideo;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.OleCtrls, SHDocVw, ActiveX;
type
TfrmVideo = class(TForm)
browser: TWebBrowser;
private
procedure LoadHtml(html: string);
public
procedure Why;
procedure Setup;
procedure HelloWorld;
procedure MsgBoxApp;
procedure DialogApp;
procedure ConsoleApp;
procedure DLLs;
procedure Libraries;
end;
var
frmVideo: TfrmVideo;
implementation
{$R *.dfm}
procedure TfrmVideo.LoadHtml(html: string);
begin
browser.Navigate(html);
end;
procedure TfrmVideo.Why;
begin
LoadHtml('http://www.youtube.com/v/GnaeTDGWEzA&hl=en_US&feature=player_embedded&version=3');
Show;
end;
procedure TfrmVideo.Setup;
begin
LoadHtml('http://www.youtube.com/v/efEF3q42I6E&hl=en_US&feature=player_embedded&version=3');
Show;
end;
procedure TfrmVideo.HelloWorld;
begin
LoadHtml('http://www.youtube.com/v/KUFGB2HEY5M&hl=en_US&feature=player_embedded&version=3');
Show;
end;
procedure TfrmVideo.MsgBoxApp;
begin
LoadHtml('http://www.youtube.com/v/JbptfOvADJg&hl=en_US&feature=player_embedded&version=3');
Show;
end;
procedure TfrmVideo.DialogApp;
begin
LoadHtml('http://www.youtube.com/v/sv_01giF8sg&hl=en_US&feature=player_embedded&version=3');
Show;
end;
procedure TfrmVideo.ConsoleApp;
begin
LoadHtml('http://www.youtube.com/v/eZQIrXMlUFk&hl=en_US&feature=player_embedded&version=3');
Show;
end;
procedure TfrmVideo.DLLs;
begin
LoadHtml('http://www.youtube.com/v/UmBttHXqBW0&hl=en_US&feature=player_embedded&version=3');
Show;
end;
procedure TfrmVideo.Libraries;
begin
LoadHtml('http://www.youtube.com/v/s2UjFGBY2bg&hl=en_US&feature=player_embedded&version=3');
Show;
end;
end.