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
9c4f520e
Commit
9c4f520e
authored
Oct 21, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
"Advanced" playlist add
parent
734f58f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
16 deletions
+28
-16
bindings/cil/Makefile
bindings/cil/Makefile
+4
-4
bindings/cil/libvlc.cs
bindings/cil/libvlc.cs
+24
-12
No files found.
bindings/cil/Makefile
View file @
9c4f520e
CS
=
gmcs
-codepage
:utf8
CSFLAGS
=
TARGETS
=
VideoLAN.
VLC.Control
.dll testvlc.exe
TARGETS
=
VideoLAN.
LibVLC
.dll testvlc.exe
all
:
$(TARGETS)
clean
:
rm
-f
--
$(TARGETS)
*
.netmodul
e
*
~
rm
-f
--
*
.netmodule
*
.dll
*
.ex
e
*
~
VideoLAN.
VLC.Control
.dll
:
marshal.cs ustring.cs exception.cs libvlc.cs
testvlc.exe
:
testvlc.cs VideoLAN.
VLC.Control
.dll
VideoLAN.
LibVLC
.dll
:
marshal.cs ustring.cs exception.cs libvlc.cs
testvlc.exe
:
testvlc.cs VideoLAN.
LibVLC
.dll
%.netmodule
:
%.cs Makefile
$(CS)
-target
:module
-out
:
$@
$(CSFLAGS)
$(
filter
%.cs,
$^
)
\
...
...
bindings/cil/libvlc.cs
View file @
9c4f520e
...
...
@@ -84,14 +84,14 @@ namespace VideoLAN.LibVLC
[
DllImport
(
"libvlc-control.dll"
,
EntryPoint
=
"libvlc_playlist_loop"
)]
static
extern
void
PlaylistLoop
(
InstanceHandle
self
,
int
b
,
static
extern
void
PlaylistLoop
(
InstanceHandle
self
,
bool
b
,
NativeException
ex
);
/** Sets the playlist loop flag */
public
bool
Loop
{
set
{
PlaylistLoop
(
self
,
value
?
1
:
0
,
ex
);
PlaylistLoop
(
self
,
value
,
ex
);
ex
.
Raise
();
}
}
...
...
@@ -171,23 +171,35 @@ namespace VideoLAN.LibVLC
ex
.
Raise
();
}
[
DllImport
(
"libvlc-control.dll"
,
EntryPoint
=
"libvlc_playlist_add"
)]
[
DllImport
(
"libvlc-control.dll"
,
EntryPoint
=
"libvlc_playlist_add_extended"
)]
static
extern
void
PlaylistAdd
(
InstanceHandle
self
,
U8String
uri
,
U8String
name
,
NativeException
e
);
/** Appends an item to the playlist */
public
void
Add
(
string
mrl
)
{
Add
(
mrl
,
null
);
}
/** Appends an item to the playlist */
public
void
Add
(
string
mrl
,
string
name
)
U8String
name
,
int
optc
,
U8String
[]
optv
,
NativeException
e
);
/** Appends an item to the playlist with options */
public
void
Add
(
string
mrl
,
string
name
,
string
[]
opts
)
{
U8String
umrl
=
new
U8String
(
mrl
);
U8String
uname
=
new
U8String
(
name
);
U8String
[]
optv
=
new
U8String
[
opts
.
Length
];
for
(
int
i
=
0
;
i
<
opts
.
Length
;
i
++)
optv
[
i
]
=
new
U8String
(
opts
[
i
]);
PlaylistAdd
(
self
,
umrl
,
uname
,
ex
);
PlaylistAdd
(
self
,
umrl
,
uname
,
optv
.
Length
,
optv
,
ex
);
ex
.
Raise
();
}
public
void
Add
(
string
mrl
,
string
[]
opts
)
{
Add
(
mrl
,
null
,
opts
);
}
public
void
Add
(
string
mrl
,
string
name
)
{
Add
(
mrl
,
name
,
new
string
[
0
]);
}
public
void
Add
(
string
mrl
)
{
Add
(
mrl
,
null
,
new
string
[
0
]);
}
};
/** Safe handle for unmanaged LibVLC media descriptor */
...
...
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