1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 module com
{ module sun
{ module star
{ module media
{
22 /** is the multimedia stream handling interface. This allows to
23 perform every basic operation on videos and sounds.
27 /** starts reading the stream from the current position.
31 /** stops reading the stream and leave the cursor at its current
36 /** indicates whether the stream is played or not.
39 `TRUE` if the stream is played, `FALSE` otherwise
43 /** gets the stream length
46 the stream length in second
50 /** sets the new cursor position in the media stream. After using
51 this method the stream is stopped.
54 the new position to set in seconds
56 void setMediaTime
( [in] double fTime
);
58 /** gets the current position of the cursor in the stream
61 the cursor position in seconds
63 double getMediaTime
();
65 /** sets whether the stream reading should restart at the stream
66 start after the end of the stream.
69 loops if set to `TRUE`, otherwise stops at the end of the
72 void setPlaybackLoop
( [in] boolean bSet
);
74 /** indicates whether the stream reading will restart after the
78 `TRUE` if the stream will loop, `FALSE` otherwise.
80 boolean isPlaybackLoop
();
82 /** sets the audio volume in decibel.
85 the new volume in Decibel
87 void setVolumeDB
( [in] short nDB
);
89 /** gets the current audio volume in decibel
96 /** sets the volume to <code>0</code> or to its previous value.
99 sets the volume to <code>0</code> if `TRUE`, and switch
100 to the previous non-null value if `FALSE`
102 void setMute
( [in] boolean bSet
);
104 /** gets whether the volume is temporarily down to <code>0</code>
108 `TRUE` if the volume is temporarily set to <code>0</code>,
113 /** gets the preferred window size
116 the com::sun::star::awt::Size
118 ::com
::sun
::star
::awt
::Size getPreferredPlayerWindowSize
();
120 /** gets a new player window for this stream control
123 arguments passed to the window during its creation.
125 XPlayerWindow createPlayerWindow
( [in] sequence
< any
> aArguments
);
127 /** gets a frame grabber for this stream.
129 XFrameGrabber createFrameGrabber
();
134 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */