Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
1518df76
Commit
1518df76
authored
Dec 14, 2008
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jvlc: LibVlcMediaDescriptor renamed to LibVlcMedia
parent
4dac1cf9
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
57 additions
and
57 deletions
+57
-57
bindings/java/core/src/main/java/org/videolan/jvlc/MediaDescriptor.java
...core/src/main/java/org/videolan/jvlc/MediaDescriptor.java
+4
-4
bindings/java/core/src/main/java/org/videolan/jvlc/MediaList.java
.../java/core/src/main/java/org/videolan/jvlc/MediaList.java
+2
-2
bindings/java/core/src/main/java/org/videolan/jvlc/internal/LibVlc.java
...core/src/main/java/org/videolan/jvlc/internal/LibVlc.java
+24
-24
bindings/java/core/src/main/java/org/videolan/jvlc/internal/LibVlcImpl.java
.../src/main/java/org/videolan/jvlc/internal/LibVlcImpl.java
+2
-2
bindings/java/core/src/test/java/org/videolan/jvlc/internal/LibVlcMediaPlayerTest.java
...ava/org/videolan/jvlc/internal/LibVlcMediaPlayerTest.java
+7
-7
bindings/java/core/src/test/java/org/videolan/jvlc/internal/MediaDescriptorTest.java
.../java/org/videolan/jvlc/internal/MediaDescriptorTest.java
+3
-3
bindings/java/core/src/test/java/org/videolan/jvlc/internal/MediaListPlayerTest.java
.../java/org/videolan/jvlc/internal/MediaListPlayerTest.java
+9
-9
bindings/java/core/src/test/java/org/videolan/jvlc/internal/MediaListTest.java
...c/test/java/org/videolan/jvlc/internal/MediaListTest.java
+6
-6
No files found.
bindings/java/core/src/main/java/org/videolan/jvlc/MediaDescriptor.java
View file @
1518df76
...
@@ -27,13 +27,13 @@ package org.videolan.jvlc;
...
@@ -27,13 +27,13 @@ package org.videolan.jvlc;
import
org.videolan.jvlc.internal.LibVlc
;
import
org.videolan.jvlc.internal.LibVlc
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcEventManager
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcEventManager
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMedia
Descriptor
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMedia
;
import
org.videolan.jvlc.internal.LibVlc.libvlc_exception_t
;
import
org.videolan.jvlc.internal.LibVlc.libvlc_exception_t
;
public
class
MediaDescriptor
public
class
MediaDescriptor
{
{
private
LibVlcMedia
Descriptor
instance
;
private
LibVlcMedia
instance
;
private
LibVlc
libvlc
;
private
LibVlc
libvlc
;
private
LibVlcEventManager
eventManager
;
private
LibVlcEventManager
eventManager
;
private
boolean
released
;
private
boolean
released
;
...
@@ -50,7 +50,7 @@ public class MediaDescriptor
...
@@ -50,7 +50,7 @@ public class MediaDescriptor
eventManager
=
libvlc
.
libvlc_media_event_manager
(
instance
,
exception
);
eventManager
=
libvlc
.
libvlc_media_event_manager
(
instance
,
exception
);
}
}
MediaDescriptor
(
JVLC
jvlc
,
LibVlcMedia
Descriptor
instance
)
MediaDescriptor
(
JVLC
jvlc
,
LibVlcMedia
instance
)
{
{
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
libvlc
=
jvlc
.
getLibvlc
();
libvlc
=
jvlc
.
getLibvlc
();
...
@@ -90,7 +90,7 @@ public class MediaDescriptor
...
@@ -90,7 +90,7 @@ public class MediaDescriptor
* Returns the instance.
* Returns the instance.
* @return the instance
* @return the instance
*/
*/
LibVlcMedia
Descriptor
getInstance
()
LibVlcMedia
getInstance
()
{
{
return
instance
;
return
instance
;
}
}
...
...
bindings/java/core/src/main/java/org/videolan/jvlc/MediaList.java
View file @
1518df76
...
@@ -30,7 +30,7 @@ import java.util.LinkedHashSet;
...
@@ -30,7 +30,7 @@ import java.util.LinkedHashSet;
import
java.util.List
;
import
java.util.List
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcEventManager
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcEventManager
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMedia
Descriptor
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMedia
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMediaList
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMediaList
;
import
org.videolan.jvlc.internal.LibVlc.libvlc_exception_t
;
import
org.videolan.jvlc.internal.LibVlc.libvlc_exception_t
;
...
@@ -112,7 +112,7 @@ public class MediaList
...
@@ -112,7 +112,7 @@ public class MediaList
{
{
throw
new
IndexOutOfBoundsException
();
throw
new
IndexOutOfBoundsException
();
}
}
LibVlcMedia
Descriptor
descriptor
=
jvlc
.
getLibvlc
().
libvlc_media_list_item_at_index
(
instance
,
index
,
exception
);
LibVlcMedia
descriptor
=
jvlc
.
getLibvlc
().
libvlc_media_list_item_at_index
(
instance
,
index
,
exception
);
return
new
MediaDescriptor
(
jvlc
,
descriptor
);
return
new
MediaDescriptor
(
jvlc
,
descriptor
);
}
}
...
...
bindings/java/core/src/main/java/org/videolan/jvlc/internal/LibVlc.java
View file @
1518df76
...
@@ -99,7 +99,7 @@ public interface LibVlc extends Library
...
@@ -99,7 +99,7 @@ public interface LibVlc extends Library
public
class
media_subitem_added
extends
Structure
public
class
media_subitem_added
extends
Structure
{
{
public
LibVlcMedia
Descriptor
new_child
;
public
LibVlcMedia
new_child
;
}
}
public
class
media_duration_changed
extends
Structure
public
class
media_duration_changed
extends
Structure
...
@@ -117,7 +117,7 @@ public interface LibVlc extends Library
...
@@ -117,7 +117,7 @@ public interface LibVlc extends Library
public
class
media_freed
extends
Structure
public
class
media_freed
extends
Structure
{
{
public
LibVlcMedia
Descriptor
md
;
public
LibVlcMedia
md
;
}
}
public
class
media_state_changed
extends
Structure
public
class
media_state_changed
extends
Structure
...
@@ -146,7 +146,7 @@ public interface LibVlc extends Library
...
@@ -146,7 +146,7 @@ public interface LibVlc extends Library
public
class
media_list_item_added
extends
Structure
public
class
media_list_item_added
extends
Structure
{
{
public
LibVlcMedia
Descriptor
item
;
public
LibVlcMedia
item
;
public
int
index
;
public
int
index
;
}
}
...
@@ -154,7 +154,7 @@ public interface LibVlc extends Library
...
@@ -154,7 +154,7 @@ public interface LibVlc extends Library
public
class
media_list_will_add_item
extends
Structure
public
class
media_list_will_add_item
extends
Structure
{
{
public
LibVlcMedia
Descriptor
item
;
public
LibVlcMedia
item
;
public
int
index
;
public
int
index
;
}
}
...
@@ -162,7 +162,7 @@ public interface LibVlc extends Library
...
@@ -162,7 +162,7 @@ public interface LibVlc extends Library
public
class
media_list_item_deleted
extends
Structure
public
class
media_list_item_deleted
extends
Structure
{
{
public
LibVlcMedia
Descriptor
item
;
public
LibVlcMedia
item
;
public
int
index
;
public
int
index
;
}
}
...
@@ -170,7 +170,7 @@ public interface LibVlc extends Library
...
@@ -170,7 +170,7 @@ public interface LibVlc extends Library
public
class
media_list_will_delete_item
extends
Structure
public
class
media_list_will_delete_item
extends
Structure
{
{
public
LibVlcMedia
Descriptor
item
;
public
LibVlcMedia
item
;
public
int
index
;
public
int
index
;
}
}
...
@@ -179,7 +179,7 @@ public interface LibVlc extends Library
...
@@ -179,7 +179,7 @@ public interface LibVlc extends Library
public
class
media_list_view_item_added
extends
Structure
public
class
media_list_view_item_added
extends
Structure
{
{
public
LibVlcMedia
Descriptor
item
;
public
LibVlcMedia
item
;
public
int
index
;
public
int
index
;
}
}
...
@@ -187,7 +187,7 @@ public interface LibVlc extends Library
...
@@ -187,7 +187,7 @@ public interface LibVlc extends Library
public
class
media_list_view_will_add_item
extends
Structure
public
class
media_list_view_will_add_item
extends
Structure
{
{
public
LibVlcMedia
Descriptor
item
;
public
LibVlcMedia
item
;
public
int
index
;
public
int
index
;
}
}
...
@@ -195,7 +195,7 @@ public interface LibVlc extends Library
...
@@ -195,7 +195,7 @@ public interface LibVlc extends Library
public
class
media_list_view_item_deleted
extends
Structure
public
class
media_list_view_item_deleted
extends
Structure
{
{
public
LibVlcMedia
Descriptor
item
;
public
LibVlcMedia
item
;
public
int
index
;
public
int
index
;
}
}
...
@@ -203,7 +203,7 @@ public interface LibVlc extends Library
...
@@ -203,7 +203,7 @@ public interface LibVlc extends Library
public
class
media_list_view_will_delete_item
extends
Structure
public
class
media_list_view_will_delete_item
extends
Structure
{
{
public
LibVlcMedia
Descriptor
item
;
public
LibVlcMedia
item
;
public
int
index
;
public
int
index
;
}
}
...
@@ -261,7 +261,7 @@ public interface LibVlc extends Library
...
@@ -261,7 +261,7 @@ public interface LibVlc extends Library
{
{
}
}
public
class
LibVlcMedia
Descriptor
extends
PointerType
public
class
LibVlcMedia
extends
PointerType
{
{
}
}
...
@@ -407,21 +407,21 @@ public interface LibVlc extends Library
...
@@ -407,21 +407,21 @@ public interface LibVlc extends Library
// media descriptor
// media descriptor
LibVlcMedia
Descriptor
libvlc_media_new
(
LibVlcInstance
libvlc_instance
,
String
mrl
,
libvlc_exception_t
exception
);
LibVlcMedia
libvlc_media_new
(
LibVlcInstance
libvlc_instance
,
String
mrl
,
libvlc_exception_t
exception
);
void
libvlc_media_add_option
(
LibVlcMedia
Descriptor
media
,
String
option
,
libvlc_exception_t
exception
);
void
libvlc_media_add_option
(
LibVlcMedia
media
,
String
option
,
libvlc_exception_t
exception
);
String
libvlc_media_get_mrl
(
LibVlcMedia
Descriptor
media
);
String
libvlc_media_get_mrl
(
LibVlcMedia
media
);
void
libvlc_media_release
(
LibVlcMedia
Descriptor
media
);
void
libvlc_media_release
(
LibVlcMedia
media
);
LibVlcEventManager
libvlc_media_event_manager
(
LibVlcMedia
Descriptor
media
,
libvlc_exception_t
exception
);
LibVlcEventManager
libvlc_media_event_manager
(
LibVlcMedia
media
,
libvlc_exception_t
exception
);
// media player
// media player
LibVlcMediaInstance
libvlc_media_player_new
(
LibVlcInstance
instance
,
libvlc_exception_t
exception
);
LibVlcMediaInstance
libvlc_media_player_new
(
LibVlcInstance
instance
,
libvlc_exception_t
exception
);
LibVlcMediaInstance
libvlc_media_player_new_from_media
(
LibVlcMedia
Descriptor
media
,
libvlc_exception_t
exception
);
LibVlcMediaInstance
libvlc_media_player_new_from_media
(
LibVlcMedia
media
,
libvlc_exception_t
exception
);
void
libvlc_media_player_play
(
LibVlcMediaInstance
media_player
,
libvlc_exception_t
exception
);
void
libvlc_media_player_play
(
LibVlcMediaInstance
media_player
,
libvlc_exception_t
exception
);
...
@@ -465,25 +465,25 @@ public interface LibVlc extends Library
...
@@ -465,25 +465,25 @@ public interface LibVlc extends Library
void
libvlc_media_list_add_file_content
(
LibVlcMediaList
libvlc_media_list
,
String
fileName
,
void
libvlc_media_list_add_file_content
(
LibVlcMediaList
libvlc_media_list
,
String
fileName
,
libvlc_exception_t
exception
);
libvlc_exception_t
exception
);
void
libvlc_media_list_set_media
(
LibVlcMediaList
libvlc_media_list
,
LibVlcMedia
Descriptor
libvlc_media
,
void
libvlc_media_list_set_media
(
LibVlcMediaList
libvlc_media_list
,
LibVlcMedia
libvlc_media
,
libvlc_exception_t
exception
);
libvlc_exception_t
exception
);
LibVlcMedia
Descriptor
libvlc_media_list_media
(
LibVlcMediaList
libvlc_media_list
,
libvlc_exception_t
exception
);
LibVlcMedia
libvlc_media_list_media
(
LibVlcMediaList
libvlc_media_list
,
libvlc_exception_t
exception
);
void
libvlc_media_list_add_media
(
LibVlcMediaList
libvlc_media_list
,
LibVlcMedia
Descriptor
libvlc_media
,
void
libvlc_media_list_add_media
(
LibVlcMediaList
libvlc_media_list
,
LibVlcMedia
libvlc_media
,
libvlc_exception_t
exception
);
libvlc_exception_t
exception
);
void
libvlc_media_list_insert_media
(
LibVlcMediaList
libvlc_media_list
,
LibVlcMedia
Descriptor
libvlc_media
,
void
libvlc_media_list_insert_media
(
LibVlcMediaList
libvlc_media_list
,
LibVlcMedia
libvlc_media
,
int
position
,
libvlc_exception_t
exception
);
int
position
,
libvlc_exception_t
exception
);
void
libvlc_media_list_remove_index
(
LibVlcMediaList
libvlc_media_list
,
int
position
,
libvlc_exception_t
exception
);
void
libvlc_media_list_remove_index
(
LibVlcMediaList
libvlc_media_list
,
int
position
,
libvlc_exception_t
exception
);
int
libvlc_media_list_count
(
LibVlcMediaList
libvlc_media_list
,
libvlc_exception_t
exception
);
int
libvlc_media_list_count
(
LibVlcMediaList
libvlc_media_list
,
libvlc_exception_t
exception
);
LibVlcMedia
Descriptor
libvlc_media_list_item_at_index
(
LibVlcMediaList
libvlc_media_list
,
int
position
,
LibVlcMedia
libvlc_media_list_item_at_index
(
LibVlcMediaList
libvlc_media_list
,
int
position
,
libvlc_exception_t
exception
);
libvlc_exception_t
exception
);
int
libvlc_media_list_index_of_item
(
LibVlcMediaList
libvlc_media_list
,
LibVlcMedia
Descriptor
libvlc_media
,
int
libvlc_media_list_index_of_item
(
LibVlcMediaList
libvlc_media_list
,
LibVlcMedia
libvlc_media
,
libvlc_exception_t
exception
);
libvlc_exception_t
exception
);
int
libvlc_media_list_is_readonly
(
LibVlcMediaList
libvlc_media_list
);
int
libvlc_media_list_is_readonly
(
LibVlcMediaList
libvlc_media_list
);
...
@@ -514,7 +514,7 @@ public interface LibVlc extends Library
...
@@ -514,7 +514,7 @@ public interface LibVlc extends Library
libvlc_exception_t
exception
);
libvlc_exception_t
exception
);
void
libvlc_media_list_player_play_item
(
LibVlcMediaListPlayer
libvlc_media_list_player
,
void
libvlc_media_list_player_play_item
(
LibVlcMediaListPlayer
libvlc_media_list_player
,
LibVlcMedia
Descriptor
libvlc_media
,
libvlc_exception_t
exception
);
LibVlcMedia
libvlc_media
,
libvlc_exception_t
exception
);
void
libvlc_media_list_player_stop
(
LibVlcMediaListPlayer
libvlc_media_list_player
,
libvlc_exception_t
exception
);
void
libvlc_media_list_player_stop
(
LibVlcMediaListPlayer
libvlc_media_list_player
,
libvlc_exception_t
exception
);
...
...
bindings/java/core/src/main/java/org/videolan/jvlc/internal/LibVlcImpl.java
View file @
1518df76
...
@@ -33,7 +33,7 @@ import javax.swing.JPanel;
...
@@ -33,7 +33,7 @@ import javax.swing.JPanel;
import
org.videolan.jvlc.internal.LibVlc.LibVlcCallback
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcCallback
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcEventManager
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcEventManager
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcInstance
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcInstance
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMedia
Descriptor
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMedia
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMediaInstance
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMediaInstance
;
import
org.videolan.jvlc.internal.LibVlc.libvlc_event_t
;
import
org.videolan.jvlc.internal.LibVlc.libvlc_event_t
;
import
org.videolan.jvlc.internal.LibVlc.libvlc_exception_t
;
import
org.videolan.jvlc.internal.LibVlc.libvlc_exception_t
;
...
@@ -61,7 +61,7 @@ public class LibVlcImpl
...
@@ -61,7 +61,7 @@ public class LibVlcImpl
LibVlcInstance
libvlc_instance_t
=
libVlc
.
libvlc_new
(
0
,
new
String
[]
{
"/usr/local/bin/vlc"
},
exception
);
LibVlcInstance
libvlc_instance_t
=
libVlc
.
libvlc_new
(
0
,
new
String
[]
{
"/usr/local/bin/vlc"
},
exception
);
LibVlcMedia
Descriptor
mediaDescriptor
=
libVlc
LibVlcMedia
mediaDescriptor
=
libVlc
.
libvlc_media_new
(
libvlc_instance_t
,
"/home/carone/a.avi"
,
exception
);
.
libvlc_media_new
(
libvlc_instance_t
,
"/home/carone/a.avi"
,
exception
);
LibVlcMediaInstance
mediaPlayer
=
libVlc
.
libvlc_media_player_new_from_media
(
mediaDescriptor
,
exception
);
LibVlcMediaInstance
mediaPlayer
=
libVlc
.
libvlc_media_player_new_from_media
(
mediaDescriptor
,
exception
);
...
...
bindings/java/core/src/test/java/org/videolan/jvlc/internal/LibVlcMediaPlayerTest.java
View file @
1518df76
...
@@ -27,7 +27,7 @@ package org.videolan.jvlc.internal;
...
@@ -27,7 +27,7 @@ package org.videolan.jvlc.internal;
import
org.junit.Assert
;
import
org.junit.Assert
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMedia
Descriptor
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMedia
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMediaInstance
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMediaInstance
;
...
@@ -52,7 +52,7 @@ public class LibVlcMediaPlayerTest extends AbstractVLCInternalTest
...
@@ -52,7 +52,7 @@ public class LibVlcMediaPlayerTest extends AbstractVLCInternalTest
@Test
@Test
public
void
mediaInstancePlay
()
public
void
mediaInstancePlay
()
{
{
LibVlcMedia
Descriptor
md
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
LibVlcMedia
md
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
LibVlcMediaInstance
mi
=
libvlc
.
libvlc_media_player_new_from_media
(
md
,
exception
);
LibVlcMediaInstance
mi
=
libvlc
.
libvlc_media_player_new_from_media
(
md
,
exception
);
libvlc
.
libvlc_media_player_play
(
mi
,
exception
);
libvlc
.
libvlc_media_player_play
(
mi
,
exception
);
Assert
.
assertEquals
(
0
,
exception
.
raised
);
Assert
.
assertEquals
(
0
,
exception
.
raised
);
...
@@ -61,7 +61,7 @@ public class LibVlcMediaPlayerTest extends AbstractVLCInternalTest
...
@@ -61,7 +61,7 @@ public class LibVlcMediaPlayerTest extends AbstractVLCInternalTest
@Test
@Test
public
void
mediaInstancePauseBad
()
public
void
mediaInstancePauseBad
()
{
{
LibVlcMedia
Descriptor
md
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
LibVlcMedia
md
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
LibVlcMediaInstance
mi
=
libvlc
.
libvlc_media_player_new_from_media
(
md
,
exception
);
LibVlcMediaInstance
mi
=
libvlc
.
libvlc_media_player_new_from_media
(
md
,
exception
);
libvlc
.
libvlc_media_player_pause
(
mi
,
exception
);
libvlc
.
libvlc_media_player_pause
(
mi
,
exception
);
Assert
.
assertEquals
(
1
,
exception
.
raised
);
Assert
.
assertEquals
(
1
,
exception
.
raised
);
...
@@ -70,7 +70,7 @@ public class LibVlcMediaPlayerTest extends AbstractVLCInternalTest
...
@@ -70,7 +70,7 @@ public class LibVlcMediaPlayerTest extends AbstractVLCInternalTest
@Test
@Test
public
void
mediaInstancePause
()
public
void
mediaInstancePause
()
{
{
LibVlcMedia
Descriptor
md
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
LibVlcMedia
md
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
LibVlcMediaInstance
mi
=
libvlc
.
libvlc_media_player_new_from_media
(
md
,
exception
);
LibVlcMediaInstance
mi
=
libvlc
.
libvlc_media_player_new_from_media
(
md
,
exception
);
libvlc
.
libvlc_media_player_play
(
mi
,
exception
);
libvlc
.
libvlc_media_player_play
(
mi
,
exception
);
libvlc
.
libvlc_media_player_pause
(
mi
,
exception
);
libvlc
.
libvlc_media_player_pause
(
mi
,
exception
);
...
@@ -80,7 +80,7 @@ public class LibVlcMediaPlayerTest extends AbstractVLCInternalTest
...
@@ -80,7 +80,7 @@ public class LibVlcMediaPlayerTest extends AbstractVLCInternalTest
@Test
@Test
public
void
mediaInstanceSetPosition
()
public
void
mediaInstanceSetPosition
()
{
{
LibVlcMedia
Descriptor
md
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
LibVlcMedia
md
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
LibVlcMediaInstance
mi
=
libvlc
.
libvlc_media_player_new_from_media
(
md
,
exception
);
LibVlcMediaInstance
mi
=
libvlc
.
libvlc_media_player_new_from_media
(
md
,
exception
);
libvlc
.
libvlc_media_player_play
(
mi
,
exception
);
libvlc
.
libvlc_media_player_play
(
mi
,
exception
);
libvlc
.
libvlc_media_player_set_position
(
mi
,
0.5f
,
exception
);
libvlc
.
libvlc_media_player_set_position
(
mi
,
0.5f
,
exception
);
...
@@ -92,7 +92,7 @@ public class LibVlcMediaPlayerTest extends AbstractVLCInternalTest
...
@@ -92,7 +92,7 @@ public class LibVlcMediaPlayerTest extends AbstractVLCInternalTest
@Test
@Test
public
void
mediaInstanceStop
()
public
void
mediaInstanceStop
()
{
{
LibVlcMedia
Descriptor
md
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
LibVlcMedia
md
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
LibVlcMediaInstance
mi
=
libvlc
.
libvlc_media_player_new_from_media
(
md
,
exception
);
LibVlcMediaInstance
mi
=
libvlc
.
libvlc_media_player_new_from_media
(
md
,
exception
);
libvlc
.
libvlc_media_player_stop
(
mi
,
exception
);
libvlc
.
libvlc_media_player_stop
(
mi
,
exception
);
Assert
.
assertEquals
(
0
,
exception
.
raised
);
Assert
.
assertEquals
(
0
,
exception
.
raised
);
...
@@ -101,7 +101,7 @@ public class LibVlcMediaPlayerTest extends AbstractVLCInternalTest
...
@@ -101,7 +101,7 @@ public class LibVlcMediaPlayerTest extends AbstractVLCInternalTest
@Test
@Test
public
void
mediaInstanceStop2
()
throws
Exception
public
void
mediaInstanceStop2
()
throws
Exception
{
{
LibVlcMedia
Descriptor
md
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
LibVlcMedia
md
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
LibVlcMediaInstance
mi
=
libvlc
.
libvlc_media_player_new_from_media
(
md
,
exception
);
LibVlcMediaInstance
mi
=
libvlc
.
libvlc_media_player_new_from_media
(
md
,
exception
);
libvlc
.
libvlc_media_player_play
(
mi
,
exception
);
libvlc
.
libvlc_media_player_play
(
mi
,
exception
);
Thread
.
sleep
(
100
);
Thread
.
sleep
(
100
);
...
...
bindings/java/core/src/test/java/org/videolan/jvlc/internal/MediaDescriptorTest.java
View file @
1518df76
...
@@ -28,7 +28,7 @@ package org.videolan.jvlc.internal;
...
@@ -28,7 +28,7 @@ package org.videolan.jvlc.internal;
import
junit.framework.Assert
;
import
junit.framework.Assert
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMedia
Descriptor
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMedia
;
import
org.videolan.jvlc.internal.LibVlc.libvlc_exception_t
;
import
org.videolan.jvlc.internal.LibVlc.libvlc_exception_t
;
...
@@ -39,7 +39,7 @@ public class MediaDescriptorTest extends AbstractVLCInternalTest
...
@@ -39,7 +39,7 @@ public class MediaDescriptorTest extends AbstractVLCInternalTest
public
void
mediaDescriptorNew
()
throws
Exception
public
void
mediaDescriptorNew
()
throws
Exception
{
{
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
LibVlcMedia
Descriptor
md
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
LibVlcMedia
md
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
Assert
.
assertNotNull
(
md
);
Assert
.
assertNotNull
(
md
);
Assert
.
assertEquals
(
0
,
exception
.
raised
);
Assert
.
assertEquals
(
0
,
exception
.
raised
);
}
}
...
@@ -48,7 +48,7 @@ public class MediaDescriptorTest extends AbstractVLCInternalTest
...
@@ -48,7 +48,7 @@ public class MediaDescriptorTest extends AbstractVLCInternalTest
public
void
mediaDescriptorGetMrl
()
public
void
mediaDescriptorGetMrl
()
{
{
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
LibVlcMedia
Descriptor
md
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
LibVlcMedia
md
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
String
mdMrl
=
libvlc
.
libvlc_media_get_mrl
(
md
);
String
mdMrl
=
libvlc
.
libvlc_media_get_mrl
(
md
);
Assert
.
assertEquals
(
mrl
,
mdMrl
);
Assert
.
assertEquals
(
mrl
,
mdMrl
);
}
}
...
...
bindings/java/core/src/test/java/org/videolan/jvlc/internal/MediaListPlayerTest.java
View file @
1518df76
...
@@ -29,7 +29,7 @@ import junit.framework.Assert;
...
@@ -29,7 +29,7 @@ import junit.framework.Assert;
import
org.junit.After
;
import
org.junit.After
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMedia
Descriptor
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMedia
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMediaInstance
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMediaInstance
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMediaList
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMediaList
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMediaListPlayer
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMediaListPlayer
;
...
@@ -69,7 +69,7 @@ public class MediaListPlayerTest extends AbstractVLCInternalTest
...
@@ -69,7 +69,7 @@ public class MediaListPlayerTest extends AbstractVLCInternalTest
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
LibVlcMediaListPlayer
mediaListPlayer
=
libvlc
.
libvlc_media_list_player_new
(
libvlcInstance
,
exception
);
LibVlcMediaListPlayer
mediaListPlayer
=
libvlc
.
libvlc_media_list_player_new
(
libvlcInstance
,
exception
);
LibVlcMediaList
mediaList
=
libvlc
.
libvlc_media_list_new
(
libvlcInstance
,
exception
);
LibVlcMediaList
mediaList
=
libvlc
.
libvlc_media_list_new
(
libvlcInstance
,
exception
);
LibVlcMedia
Descriptor
mediaDescriptor
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
LibVlcMedia
mediaDescriptor
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
libvlc
.
libvlc_media_list_add_media
(
mediaList
,
mediaDescriptor
,
exception
);
libvlc
.
libvlc_media_list_add_media
(
mediaList
,
mediaDescriptor
,
exception
);
libvlc
.
libvlc_media_list_player_set_media_list
(
mediaListPlayer
,
mediaList
,
exception
);
libvlc
.
libvlc_media_list_player_set_media_list
(
mediaListPlayer
,
mediaList
,
exception
);
Assert
.
assertEquals
(
0
,
exception
.
raised
);
Assert
.
assertEquals
(
0
,
exception
.
raised
);
...
@@ -108,7 +108,7 @@ public class MediaListPlayerTest extends AbstractVLCInternalTest
...
@@ -108,7 +108,7 @@ public class MediaListPlayerTest extends AbstractVLCInternalTest
LibVlcMediaListPlayer
mediaListPlayer
=
libvlc
.
libvlc_media_list_player_new
(
libvlcInstance
,
exception
);
LibVlcMediaListPlayer
mediaListPlayer
=
libvlc
.
libvlc_media_list_player_new
(
libvlcInstance
,
exception
);
current
=
mediaListPlayer
;
current
=
mediaListPlayer
;
LibVlcMediaList
mediaList
=
libvlc
.
libvlc_media_list_new
(
libvlcInstance
,
exception
);
LibVlcMediaList
mediaList
=
libvlc
.
libvlc_media_list_new
(
libvlcInstance
,
exception
);
LibVlcMedia
Descriptor
mediaDescriptor
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
LibVlcMedia
mediaDescriptor
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
libvlc
.
libvlc_media_list_add_media
(
mediaList
,
mediaDescriptor
,
exception
);
libvlc
.
libvlc_media_list_add_media
(
mediaList
,
mediaDescriptor
,
exception
);
libvlc
.
libvlc_media_list_player_set_media_list
(
mediaListPlayer
,
mediaList
,
exception
);
libvlc
.
libvlc_media_list_player_set_media_list
(
mediaListPlayer
,
mediaList
,
exception
);
libvlc
.
libvlc_media_list_player_play
(
mediaListPlayer
,
exception
);
libvlc
.
libvlc_media_list_player_play
(
mediaListPlayer
,
exception
);
...
@@ -124,7 +124,7 @@ public class MediaListPlayerTest extends AbstractVLCInternalTest
...
@@ -124,7 +124,7 @@ public class MediaListPlayerTest extends AbstractVLCInternalTest
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
LibVlcMediaListPlayer
mediaListPlayer
=
libvlc
.
libvlc_media_list_player_new
(
libvlcInstance
,
exception
);
LibVlcMediaListPlayer
mediaListPlayer
=
libvlc
.
libvlc_media_list_player_new
(
libvlcInstance
,
exception
);
LibVlcMediaList
mediaList
=
libvlc
.
libvlc_media_list_new
(
libvlcInstance
,
exception
);
LibVlcMediaList
mediaList
=
libvlc
.
libvlc_media_list_new
(
libvlcInstance
,
exception
);
LibVlcMedia
Descriptor
mediaDescriptor
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
LibVlcMedia
mediaDescriptor
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
libvlc
.
libvlc_media_list_add_media
(
mediaList
,
mediaDescriptor
,
exception
);
libvlc
.
libvlc_media_list_add_media
(
mediaList
,
mediaDescriptor
,
exception
);
libvlc
.
libvlc_media_list_player_set_media_list
(
mediaListPlayer
,
mediaList
,
exception
);
libvlc
.
libvlc_media_list_player_set_media_list
(
mediaListPlayer
,
mediaList
,
exception
);
libvlc
.
libvlc_media_list_player_play_item_at_index
(
mediaListPlayer
,
0
,
exception
);
libvlc
.
libvlc_media_list_player_play_item_at_index
(
mediaListPlayer
,
0
,
exception
);
...
@@ -158,7 +158,7 @@ public class MediaListPlayerTest extends AbstractVLCInternalTest
...
@@ -158,7 +158,7 @@ public class MediaListPlayerTest extends AbstractVLCInternalTest
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
LibVlcMediaListPlayer
mediaListPlayer
=
libvlc
.
libvlc_media_list_player_new
(
libvlcInstance
,
exception
);
LibVlcMediaListPlayer
mediaListPlayer
=
libvlc
.
libvlc_media_list_player_new
(
libvlcInstance
,
exception
);
LibVlcMediaList
mediaList
=
libvlc
.
libvlc_media_list_new
(
libvlcInstance
,
exception
);
LibVlcMediaList
mediaList
=
libvlc
.
libvlc_media_list_new
(
libvlcInstance
,
exception
);
LibVlcMedia
Descriptor
mediaDescriptor
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
LibVlcMedia
mediaDescriptor
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
libvlc
.
libvlc_media_list_add_media
(
mediaList
,
mediaDescriptor
,
exception
);
libvlc
.
libvlc_media_list_add_media
(
mediaList
,
mediaDescriptor
,
exception
);
libvlc
.
libvlc_media_list_player_set_media_list
(
mediaListPlayer
,
mediaList
,
exception
);
libvlc
.
libvlc_media_list_player_set_media_list
(
mediaListPlayer
,
mediaList
,
exception
);
libvlc
.
libvlc_media_list_player_play_item
(
mediaListPlayer
,
mediaDescriptor
,
exception
);
libvlc
.
libvlc_media_list_player_play_item
(
mediaListPlayer
,
mediaDescriptor
,
exception
);
...
@@ -198,7 +198,7 @@ public class MediaListPlayerTest extends AbstractVLCInternalTest
...
@@ -198,7 +198,7 @@ public class MediaListPlayerTest extends AbstractVLCInternalTest
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
LibVlcMediaListPlayer
mediaListPlayer
=
libvlc
.
libvlc_media_list_player_new
(
libvlcInstance
,
exception
);
LibVlcMediaListPlayer
mediaListPlayer
=
libvlc
.
libvlc_media_list_player_new
(
libvlcInstance
,
exception
);
LibVlcMediaList
mediaList
=
libvlc
.
libvlc_media_list_new
(
libvlcInstance
,
exception
);
LibVlcMediaList
mediaList
=
libvlc
.
libvlc_media_list_new
(
libvlcInstance
,
exception
);
LibVlcMedia
Descriptor
mediaDescriptor
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
LibVlcMedia
mediaDescriptor
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
libvlc
.
libvlc_media_list_add_media
(
mediaList
,
mediaDescriptor
,
exception
);
libvlc
.
libvlc_media_list_add_media
(
mediaList
,
mediaDescriptor
,
exception
);
libvlc
.
libvlc_media_list_player_set_media_list
(
mediaListPlayer
,
mediaList
,
exception
);
libvlc
.
libvlc_media_list_player_set_media_list
(
mediaListPlayer
,
mediaList
,
exception
);
libvlc
.
libvlc_media_list_player_play_item
(
mediaListPlayer
,
mediaDescriptor
,
exception
);
libvlc
.
libvlc_media_list_player_play_item
(
mediaListPlayer
,
mediaDescriptor
,
exception
);
...
@@ -233,7 +233,7 @@ public class MediaListPlayerTest extends AbstractVLCInternalTest
...
@@ -233,7 +233,7 @@ public class MediaListPlayerTest extends AbstractVLCInternalTest
{
{
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
LibVlcMediaListPlayer
mediaListPlayer
=
libvlc
.
libvlc_media_list_player_new
(
libvlcInstance
,
exception
);
LibVlcMediaListPlayer
mediaListPlayer
=
libvlc
.
libvlc_media_list_player_new
(
libvlcInstance
,
exception
);
LibVlcMedia
Descriptor
md
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
LibVlcMedia
md
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
LibVlcMediaInstance
mi
=
libvlc
.
libvlc_media_player_new_from_media
(
md
,
exception
);
LibVlcMediaInstance
mi
=
libvlc
.
libvlc_media_player_new_from_media
(
md
,
exception
);
libvlc
.
libvlc_media_list_player_set_media_player
(
mediaListPlayer
,
mi
,
exception
);
libvlc
.
libvlc_media_list_player_set_media_player
(
mediaListPlayer
,
mi
,
exception
);
Assert
.
assertEquals
(
0
,
exception
.
raised
);
Assert
.
assertEquals
(
0
,
exception
.
raised
);
...
@@ -257,7 +257,7 @@ public class MediaListPlayerTest extends AbstractVLCInternalTest
...
@@ -257,7 +257,7 @@ public class MediaListPlayerTest extends AbstractVLCInternalTest
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
LibVlcMediaListPlayer
mediaListPlayer
=
libvlc
.
libvlc_media_list_player_new
(
libvlcInstance
,
exception
);
LibVlcMediaListPlayer
mediaListPlayer
=
libvlc
.
libvlc_media_list_player_new
(
libvlcInstance
,
exception
);
LibVlcMediaList
mediaList
=
libvlc
.
libvlc_media_list_new
(
libvlcInstance
,
exception
);
LibVlcMediaList
mediaList
=
libvlc
.
libvlc_media_list_new
(
libvlcInstance
,
exception
);
LibVlcMedia
Descriptor
mediaDescriptor
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
LibVlcMedia
mediaDescriptor
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
libvlc
.
libvlc_media_list_add_media
(
mediaList
,
mediaDescriptor
,
exception
);
libvlc
.
libvlc_media_list_add_media
(
mediaList
,
mediaDescriptor
,
exception
);
libvlc
.
libvlc_media_list_add_media
(
mediaList
,
mediaDescriptor
,
exception
);
libvlc
.
libvlc_media_list_add_media
(
mediaList
,
mediaDescriptor
,
exception
);
libvlc
.
libvlc_media_list_player_set_media_list
(
mediaListPlayer
,
mediaList
,
exception
);
libvlc
.
libvlc_media_list_player_set_media_list
(
mediaListPlayer
,
mediaList
,
exception
);
...
@@ -274,7 +274,7 @@ public class MediaListPlayerTest extends AbstractVLCInternalTest
...
@@ -274,7 +274,7 @@ public class MediaListPlayerTest extends AbstractVLCInternalTest
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
LibVlcMediaListPlayer
mediaListPlayer
=
libvlc
.
libvlc_media_list_player_new
(
libvlcInstance
,
exception
);
LibVlcMediaListPlayer
mediaListPlayer
=
libvlc
.
libvlc_media_list_player_new
(
libvlcInstance
,
exception
);
LibVlcMediaList
mediaList
=
libvlc
.
libvlc_media_list_new
(
libvlcInstance
,
exception
);
LibVlcMediaList
mediaList
=
libvlc
.
libvlc_media_list_new
(
libvlcInstance
,
exception
);
LibVlcMedia
Descriptor
mediaDescriptor
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
LibVlcMedia
mediaDescriptor
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
libvlc
.
libvlc_media_list_add_media
(
mediaList
,
mediaDescriptor
,
exception
);
libvlc
.
libvlc_media_list_add_media
(
mediaList
,
mediaDescriptor
,
exception
);
libvlc
.
libvlc_media_list_player_set_media_list
(
mediaListPlayer
,
mediaList
,
exception
);
libvlc
.
libvlc_media_list_player_set_media_list
(
mediaListPlayer
,
mediaList
,
exception
);
libvlc
.
libvlc_media_list_player_play_item
(
mediaListPlayer
,
mediaDescriptor
,
exception
);
libvlc
.
libvlc_media_list_player_play_item
(
mediaListPlayer
,
mediaDescriptor
,
exception
);
...
...
bindings/java/core/src/test/java/org/videolan/jvlc/internal/MediaListTest.java
View file @
1518df76
...
@@ -28,7 +28,7 @@ package org.videolan.jvlc.internal;
...
@@ -28,7 +28,7 @@ package org.videolan.jvlc.internal;
import
junit.framework.Assert
;
import
junit.framework.Assert
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMedia
Descriptor
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMedia
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMediaList
;
import
org.videolan.jvlc.internal.LibVlc.LibVlcMediaList
;
import
org.videolan.jvlc.internal.LibVlc.libvlc_exception_t
;
import
org.videolan.jvlc.internal.LibVlc.libvlc_exception_t
;
...
@@ -51,7 +51,7 @@ public class MediaListTest extends AbstractVLCInternalTest
...
@@ -51,7 +51,7 @@ public class MediaListTest extends AbstractVLCInternalTest
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
LibVlcMediaList
mediaList
=
libvlc
.
libvlc_media_list_new
(
libvlcInstance
,
exception
);
LibVlcMediaList
mediaList
=
libvlc
.
libvlc_media_list_new
(
libvlcInstance
,
exception
);
String
mrl
=
this
.
getClass
().
getResource
(
"/raffa_voice.ogg"
).
getPath
();
String
mrl
=
this
.
getClass
().
getResource
(
"/raffa_voice.ogg"
).
getPath
();
LibVlcMedia
Descriptor
libvlc_media
=
libvlc
.
libvlc_media_new
(
LibVlcMedia
libvlc_media
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
libvlcInstance
,
mrl
,
mrl
,
exception
);
exception
);
...
@@ -65,7 +65,7 @@ public class MediaListTest extends AbstractVLCInternalTest
...
@@ -65,7 +65,7 @@ public class MediaListTest extends AbstractVLCInternalTest
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
LibVlcMediaList
mediaList
=
libvlc
.
libvlc_media_list_new
(
libvlcInstance
,
exception
);
LibVlcMediaList
mediaList
=
libvlc
.
libvlc_media_list_new
(
libvlcInstance
,
exception
);
String
mrl
=
this
.
getClass
().
getResource
(
"/raffa_voice.ogg"
).
getPath
();
String
mrl
=
this
.
getClass
().
getResource
(
"/raffa_voice.ogg"
).
getPath
();
LibVlcMedia
Descriptor
libvlc_media
=
libvlc
.
libvlc_media_new
(
LibVlcMedia
libvlc_media
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
libvlcInstance
,
mrl
,
mrl
,
exception
);
exception
);
...
@@ -95,7 +95,7 @@ public class MediaListTest extends AbstractVLCInternalTest
...
@@ -95,7 +95,7 @@ public class MediaListTest extends AbstractVLCInternalTest
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
LibVlcMediaList
mediaList
=
libvlc
.
libvlc_media_list_new
(
libvlcInstance
,
exception
);
LibVlcMediaList
mediaList
=
libvlc
.
libvlc_media_list_new
(
libvlcInstance
,
exception
);
String
mrl
=
this
.
getClass
().
getResource
(
"/raffa_voice.ogg"
).
getPath
();
String
mrl
=
this
.
getClass
().
getResource
(
"/raffa_voice.ogg"
).
getPath
();
LibVlcMedia
Descriptor
libvlc_media
=
libvlc
.
libvlc_media_new
(
LibVlcMedia
libvlc_media
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
libvlcInstance
,
mrl
,
mrl
,
exception
);
exception
);
...
@@ -111,7 +111,7 @@ public class MediaListTest extends AbstractVLCInternalTest
...
@@ -111,7 +111,7 @@ public class MediaListTest extends AbstractVLCInternalTest
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
LibVlcMediaList
mediaList
=
libvlc
.
libvlc_media_list_new
(
libvlcInstance
,
exception
);
LibVlcMediaList
mediaList
=
libvlc
.
libvlc_media_list_new
(
libvlcInstance
,
exception
);
String
mrl
=
this
.
getClass
().
getResource
(
"/raffa_voice.ogg"
).
getPath
();
String
mrl
=
this
.
getClass
().
getResource
(
"/raffa_voice.ogg"
).
getPath
();
LibVlcMedia
Descriptor
libvlc_media
=
libvlc
.
libvlc_media_new
(
LibVlcMedia
libvlc_media
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
libvlcInstance
,
mrl
,
mrl
,
exception
);
exception
);
...
@@ -126,7 +126,7 @@ public class MediaListTest extends AbstractVLCInternalTest
...
@@ -126,7 +126,7 @@ public class MediaListTest extends AbstractVLCInternalTest
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
LibVlcMediaList
mediaList
=
libvlc
.
libvlc_media_list_new
(
libvlcInstance
,
exception
);
LibVlcMediaList
mediaList
=
libvlc
.
libvlc_media_list_new
(
libvlcInstance
,
exception
);
String
mrl
=
this
.
getClass
().
getResource
(
"/raffa_voice.ogg"
).
getPath
();
String
mrl
=
this
.
getClass
().
getResource
(
"/raffa_voice.ogg"
).
getPath
();
LibVlcMedia
Descriptor
libvlc_media
=
libvlc
.
libvlc_media_new
(
LibVlcMedia
libvlc_media
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
libvlcInstance
,
mrl
,
mrl
,
exception
);
exception
);
...
...
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