Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
78461b33
Commit
78461b33
authored
Mar 09, 2008
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not catch VLCException in sample
parent
9760d127
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
22 deletions
+15
-22
bindings/java/VLCExample.java
bindings/java/VLCExample.java
+15
-22
No files found.
bindings/java/VLCExample.java
View file @
78461b33
...
@@ -71,28 +71,21 @@ public class VLCExample
...
@@ -71,28 +71,21 @@ public class VLCExample
Thread
.
sleep
(
100
);
Thread
.
sleep
(
100
);
}
}
try
Video
video
=
new
Video
(
jvlc
);
{
System
.
out
.
print
(
video
.
getWidth
(
mediaInstance
));
Video
video
=
new
Video
(
jvlc
);
System
.
out
.
print
(
"x"
);
System
.
out
.
print
(
video
.
getWidth
(
mediaInstance
));
System
.
out
.
println
(
video
.
getHeight
(
mediaInstance
));
System
.
out
.
print
(
"x"
);
System
.
out
.
print
(
"Fullscreen... "
);
System
.
out
.
println
(
video
.
getHeight
(
mediaInstance
));
video
.
setFullscreen
(
mediaInstance
,
true
);
System
.
out
.
print
(
"Fullscreen... "
);
Thread
.
sleep
(
3000
);
video
.
setFullscreen
(
mediaInstance
,
true
);
System
.
out
.
println
(
"real size."
);
Thread
.
sleep
(
3000
);
video
.
setFullscreen
(
mediaInstance
,
false
);
System
.
out
.
println
(
"real size."
);
System
.
out
.
print
(
"Taking snapshot... "
);
video
.
setFullscreen
(
mediaInstance
,
false
);
video
.
getSnapshot
(
mediaInstance
,
System
.
getProperty
(
"user.dir"
)
+
"/snap.png"
,
0
,
0
);
System
.
out
.
print
(
"Taking snapshot... "
);
System
.
out
.
println
(
"taken. (see "
+
System
.
getProperty
(
"user.dir"
)
+
"/snap.png )"
);
video
.
getSnapshot
(
mediaInstance
,
System
.
getProperty
(
"user.dir"
)
+
"/snap.png"
,
0
,
0
);
Thread
.
sleep
(
2000
);
System
.
out
.
println
(
"taken. (see "
+
System
.
getProperty
(
"user.dir"
)
+
"/snap.png )"
);
System
.
out
.
println
(
"Resizing to 300x300"
);
Thread
.
sleep
(
2000
);
video
.
setSize
(
300
,
300
);
System
.
out
.
println
(
"Resizing to 300x300"
);
video
.
setSize
(
300
,
300
);
}
catch
(
VLCException
e
)
{
e
.
printStackTrace
();
}
System
.
out
.
print
(
"Muting..."
);
System
.
out
.
print
(
"Muting..."
);
Audio
audio
=
new
Audio
(
jvlc
);
Audio
audio
=
new
Audio
(
jvlc
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment