tdf#130857 qt weld: Implement QtInstanceWidget::get_text_height
[LibreOffice.git] / offapi / com / sun / star / media / XPlayer.idl
blob9be07e67d44896b8d9b51c3ff0cd0c9b28f8ba09
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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.
25 interface XPlayer
27 /** starts reading the stream from the current position.
29 void start();
31 /** stops reading the stream and leave the cursor at its current
32 position.
34 void stop();
36 /** indicates whether the stream is played or not.
38 @returns
39 `TRUE` if the stream is played, `FALSE` otherwise
41 boolean isPlaying();
43 /** gets the stream length
45 @returns
46 the stream length in second
48 double getDuration();
50 /** sets the new cursor position in the media stream. After using
51 this method the stream is stopped.
53 @param fTime
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
60 @returns
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.
68 @param bSet
69 loops if set to `TRUE`, otherwise stops at the end of the
70 stream.
72 void setPlaybackLoop( [in] boolean bSet );
74 /** indicates whether the stream reading will restart after the
75 end of the stream.
77 @returns
78 `TRUE` if the stream will loop, `FALSE` otherwise.
80 boolean isPlaybackLoop();
82 /** sets the audio volume in decibel.
84 @param nDB
85 the new volume in Decibel
87 void setVolumeDB( [in] short nDB );
89 /** gets the current audio volume in decibel
91 @returns
92 the volume in decibel
94 short getVolumeDB();
96 /** sets the volume to <code>0</code> or to its previous value.
98 @param bSet
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>
105 or not.
107 @returns
108 `TRUE` if the volume is temporarily set to <code>0</code>,
109 `FALSE` otherwise.
111 boolean isMute();
113 /** gets the preferred window size
115 @returns
116 the com::sun::star::awt::Size
118 ::com::sun::star::awt::Size getPreferredPlayerWindowSize();
120 /** gets a new player window for this stream control
122 @param aArguments
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();
132 }; }; }; };
134 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */