Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
ee8a709f
Commit
ee8a709f
authored
Apr 09, 2008
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more VLM tests
parent
1ac8441a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
76 additions
and
3 deletions
+76
-3
bindings/java/core/src/test/java/org/videolan/jvlc/VLMTest.java
...gs/java/core/src/test/java/org/videolan/jvlc/VLMTest.java
+76
-3
No files found.
bindings/java/core/src/test/java/org/videolan/jvlc/VLMTest.java
View file @
ee8a709f
...
...
@@ -38,6 +38,8 @@ public class VLMTest
private
String
mrl
=
getClass
().
getResource
(
"/raffa_voice.ogg"
).
getFile
();
private
String
mediaName
=
"test"
;
@Before
public
void
setup
()
{
...
...
@@ -62,18 +64,89 @@ public class VLMTest
public
void
testAddBroadcast
()
{
VLM
vlm
=
jvlc
.
getVLM
();
vlm
.
addBroadcast
(
"test"
,
"file://"
+
mrl
,
""
,
null
,
true
,
false
);
vlm
.
addBroadcast
(
mediaName
,
"file://"
+
mrl
,
""
,
null
,
true
,
false
);
}
@Test
public
void
testShowMedia
()
{
VLM
vlm
=
jvlc
.
getVLM
();
vlm
.
addBroadcast
(
"test"
,
"file://"
+
mrl
,
""
,
null
,
true
,
false
);
vlm
.
showMedia
(
"test"
);
vlm
.
addBroadcast
(
mediaName
,
"file://"
+
mrl
,
""
,
null
,
true
,
false
);
vlm
.
showMedia
(
mediaName
);
}
@Test
public
void
testDisableMedia
()
{
VLM
vlm
=
jvlc
.
getVLM
();
vlm
.
addBroadcast
(
mediaName
,
"file://"
+
mrl
,
""
,
null
,
true
,
false
);
vlm
.
disableMedia
(
mediaName
);
}
@Test
public
void
testPlayMedia
()
{
VLM
vlm
=
jvlc
.
getVLM
();
vlm
.
addBroadcast
(
mediaName
,
"file://"
+
mrl
,
""
,
null
,
true
,
false
);
vlm
.
playMedia
(
mediaName
);
}
@Test
public
void
testPauseMedia
()
{
VLM
vlm
=
jvlc
.
getVLM
();
vlm
.
addBroadcast
(
mediaName
,
"file://"
+
mrl
,
""
,
null
,
true
,
false
);
vlm
.
playMedia
(
mediaName
);
vlm
.
pauseMedia
(
mediaName
);
}
@Test
public
void
testStopMedia
()
{
VLM
vlm
=
jvlc
.
getVLM
();
vlm
.
addBroadcast
(
mediaName
,
"file://"
+
mrl
,
""
,
null
,
true
,
false
);
vlm
.
playMedia
(
mediaName
);
vlm
.
stopMedia
(
mediaName
);
}
@Test
public
void
testSeekMedia
()
{
VLM
vlm
=
jvlc
.
getVLM
();
vlm
.
addBroadcast
(
mediaName
,
"file://"
+
mrl
,
""
,
null
,
true
,
false
);
vlm
.
playMedia
(
mediaName
);
vlm
.
seekMedia
(
mediaName
,
0.3f
);
}
@Test
public
void
testAddMediaInput
()
{
VLM
vlm
=
jvlc
.
getVLM
();
vlm
.
addBroadcast
(
mediaName
,
"file://"
+
mrl
,
""
,
null
,
true
,
false
);
vlm
.
addMediaInput
(
mediaName
,
"file://"
+
mrl
);
}
@Test
public
void
testEnableMedia
()
{
VLM
vlm
=
jvlc
.
getVLM
();
vlm
.
addBroadcast
(
mediaName
,
"file://"
+
mrl
,
""
,
null
,
false
,
false
);
vlm
.
enableMedia
(
mediaName
);
}
@Test
public
void
testDeleteMedia
()
{
VLM
vlm
=
jvlc
.
getVLM
();
vlm
.
addBroadcast
(
mediaName
,
"file://"
+
mrl
,
""
,
null
,
false
,
false
);
vlm
.
deleteMedia
(
mediaName
);
}
@Test
public
void
testMediaLoop
()
{
VLM
vlm
=
jvlc
.
getVLM
();
vlm
.
addBroadcast
(
mediaName
,
"file://"
+
mrl
,
""
,
null
,
false
,
false
);
vlm
.
setMediaLoop
(
mediaName
,
true
);
}
}
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