1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XPlayer.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_media_XPlayer_idl__
31 #define __com_sun_star_media_XPlayer_idl__
33 #ifndef __com_sun_star_awt_Size_idl__
34 #include
<com
/sun
/star
/awt
/Size.idl
>
36 #ifndef __com_sun_star_media_XPlayerWindow_idl__
37 #include
<com
/sun
/star
/media
/XPlayerWindow.idl
>
39 #ifndef __com_sun_star_media_XFrameGrabber_idl__
40 #include
<com
/sun
/star
/media
/XFrameGrabber.idl
>
43 module com
{ module sun
{ module star
{ module media
{
45 /** is the multimedia stream handling interface. This allows to
46 perform every basic operation on videos and sounds.
50 /** starts reading the stream from the current position.
54 /** stops reading the stream and leave the cursor at its current
59 /** indicates whether the stream is played or not.
62 <TRUE/> if the stream is played, <FALSE/> otherwise
66 /** gets the stream length
69 the stream length in second
73 /** sets the new cursor position in the media stream. After using
74 this method the stream is stopped.
77 the new position to set in seconds
79 void setMediaTime
( [in] double fTime
);
81 /** gets the current position of the cursor in the stream
84 the cursor position in seconds
86 double getMediaTime
();
88 /** sets the time at which to stop reading the stream.
91 the time at which to stop reading the stream in seconds
93 void setStopTime
( [in] double fTime
);
95 /** gets the time at which the stream will stop. The result
96 is not guaranteed if no stop time has been set.
100 /** sets the speed of the stream reading relatively to the normal
104 the stream reading rate. <code>1.0</code> means normal speed.
106 void setRate
( [in] double fRate
);
108 /** gets the speed of the stream reading relatively to the normal
112 the relative speed. <code>1.0</code> is the normal speed.
116 /** sets whether the stream reading should restart at the stream
117 start after the end of the stream.
120 loops if set to <TRUE/>, otherwise stops at the end of the
123 void setPlaybackLoop
( [in] boolean bSet
);
125 /** indicates whether the stream reading will restart after the
129 <TRUE/> if the stream will loop, <FALSE/> otherwise.
131 boolean isPlaybackLoop
();
133 /** sets the audio volume in decibel.
136 the new volume in Decibel
138 void setVolumeDB
( [in] short nDB
);
140 /** gets the current audio volume in decibel
143 the volume in decibel
147 /** sets the volume to <code>0</code> or to its previous value.
150 sets the volume to <code>0</code> if <TRUE/>, and switch
151 to the previous non-null value if <FALSE/>
153 void setMute
( [in] boolean bSet
);
155 /** gets whether the volume is temporarily down to <code>0</code>
159 <TRUE/> if the volume is temporarily set to <code>0</code>,
164 /** gets the preferred window size
167 the <type scope="com::sun::star::awt">Size</type>
169 ::com
::sun
::star
::awt
::Size getPreferredPlayerWindowSize
();
171 /** gets a new player window for this stream control
174 arguments passed to the window during its creation.
176 XPlayerWindow createPlayerWindow
( [in] sequence
< any
> aArguments
);
178 /** gets a frame grabber for this stream.
180 XFrameGrabber createFrameGrabber
();