Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
51d7b654
Kaydet (Commit)
51d7b654
authored
Haz 24, 2013
tarafından
Minh Ngo
Kaydeden (comit)
Michael Meeks
Tem 26, 2013
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
get/set methods implementations
Change-Id: Ia60d54def159b2ffc18d63315d23fc195ecece94
üst
a1c329f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
vlccommon.hxx
avmedia/source/vlc/vlccommon.hxx
+2
-0
vlcplayer.cxx
avmedia/source/vlc/vlcplayer.cxx
+8
-4
No files found.
avmedia/source/vlc/vlccommon.hxx
Dosyayı görüntüle @
51d7b654
...
@@ -19,6 +19,8 @@
...
@@ -19,6 +19,8 @@
#ifndef _VLCCOMMON_HXX
#ifndef _VLCCOMMON_HXX
#define _VLCCOMMON_HXX
#define _VLCCOMMON_HXX
//TODO: Remove it before committing
#define SAL_CALL
#include <vlc/libvlc.h>
#include <vlc/libvlc.h>
...
...
avmedia/source/vlc/vlcplayer.cxx
Dosyayı görüntüle @
51d7b654
...
@@ -36,16 +36,18 @@ void SAL_CALL VLCPlayer::stop()
...
@@ -36,16 +36,18 @@ void SAL_CALL VLCPlayer::stop()
double
SAL_CALL
VLCPlayer
::
getDuration
()
double
SAL_CALL
VLCPlayer
::
getDuration
()
{
{
return
0.
f
;
libvlc_media_t
*
media
=
libvlc_media_player_get_media
(
mPlayer
.
get
()
);
return
libvlc_media_get_duration
(
media
);
}
}
void
SAL_CALL
VLCPlayer
::
setMediaTime
(
double
fTime
)
void
SAL_CALL
VLCPlayer
::
setMediaTime
(
double
fTime
)
{
{
libvlc_media_player_set_time
(
mPlayer
.
get
(),
fTime
);
}
}
double
SAL_CALL
VLCPlayer
::
getMediaTime
()
double
SAL_CALL
VLCPlayer
::
getMediaTime
()
{
{
return
0.
f
;
return
libvlc_media_player_get_time
(
mPlayer
.
get
()
)
;
}
}
double
SAL_CALL
VLCPlayer
::
getRate
()
double
SAL_CALL
VLCPlayer
::
getRate
()
...
@@ -64,20 +66,22 @@ void SAL_CALL VLCPlayer::setPlaybackLoop( ::sal_Bool bSet )
...
@@ -64,20 +66,22 @@ void SAL_CALL VLCPlayer::setPlaybackLoop( ::sal_Bool bSet )
void
SAL_CALL
VLCPlayer
::
setVolumeDB
(
::
sal_Int16
nDB
)
void
SAL_CALL
VLCPlayer
::
setVolumeDB
(
::
sal_Int16
nDB
)
{
{
libvlc_audio_set_volume
(
mPlayer
.
get
(),
nDB
);
}
}
::
sal_Int16
SAL_CALL
VLCPlayer
::
getVolumeDB
()
::
sal_Int16
SAL_CALL
VLCPlayer
::
getVolumeDB
()
{
{
return
1
;
return
libvlc_audio_get_volume
(
mPlayer
.
get
()
)
;
}
}
void
SAL_CALL
VLCPlayer
::
setMute
(
::
sal_Bool
bSet
)
void
SAL_CALL
VLCPlayer
::
setMute
(
::
sal_Bool
bSet
)
{
{
libvlc_audio_set_mute
(
mPlayer
.
get
(),
bSet
);
}
}
::
sal_Bool
SAL_CALL
VLCPlayer
::
isMute
()
::
sal_Bool
SAL_CALL
VLCPlayer
::
isMute
()
{
{
return
false
;
return
libvlc_audio_get_mute
(
mPlayer
.
get
()
)
;
}
}
css
::
awt
::
Size
SAL_CALL
VLCPlayer
::
getPreferredPlayerWindowSize
()
css
::
awt
::
Size
SAL_CALL
VLCPlayer
::
getPreferredPlayerWindowSize
()
...
...
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