⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Wt
All Projects
Wt
Overview
Activity
Roadmap
Issues
Wiki
Forums
Download (936 Bytes)
Feature #4423
ยป 4423.cpp
Benoit Daccache, 09/08/2015 01:56 PM
#include
<Wt/WApplication>
#include
<Wt/WPushButton>
#include
<Wt/WContainerWidget>
#include
<Wt/WDialog>
#include
<Wt/WMenu>
#include
<Wt/WMenuItem>
#include
<Wt/WPopupMenu>
#include
<iostream>
#include
<Wt/WVideo>
using
namespace
Wt
;
class
Test4423
:
public
Wt
::
WApplication
{
public:
Test4423
(
const
Wt
::
WEnvironment
&
env
)
:
Wt
::
WApplication
(
env
)
{
Wt
::
WContainerWidget
*
container
=
new
Wt
::
WContainerWidget
();
std
::
string
ogvVideo
=
"http://localhost:8080/sintel_trailer.ogv"
;
std
::
string
mp4Video
=
"http://localhost:8080/sintel_trailer.mp4"
;
Wt
::
WVideo
*
video
=
new
Wt
::
WVideo
(
container
);
video
->
addSource
(
Wt
::
WLink
(
mp4Video
));
video
->
addSource
(
Wt
::
WLink
(
ogvVideo
));
video
->
resize
(
640
,
360
);
root
()
->
addWidget
(
video
);
}
};
WApplication
*
createApplication
(
const
WEnvironment
&
env
)
{
return
new
Test4423
(
env
);
}
int
main
(
int
argc
,
char
**
argv
)
{
return
WRun
(
argc
,
argv
,
&
createApplication
);
}
(1-1/1)
Loading...