/// to start, stop and save the recorded content. It also provides methods
/// to get/set various attributes and capabilities of recorder.
/// </summary>
- /// <privilege>
- /// http://tizen.org/privilege/recorder
- /// </privilege>
public class Recorder : IDisposable
{
private IntPtr _handle = IntPtr.Zero;
/// <summary>
/// Audio recorder constructor.
/// </summary>
- /// /// <privilege>
- /// http://tizen.org/privilege/microphone
- /// </privilege>
public Recorder()
{
RecorderErrorFactory.ThrowIfError(Native.Create(out _handle),
/// <param name="camera">
/// The camera object.
/// </param>
- /// <privilege>
- /// http://tizen.org/privilege/camera
- /// </privilege>
public Recorder(Camera camera)
{
RecorderErrorFactory.ThrowIfError(Native.CreateVideo(camera.Handle, out _handle),
/// Before calling the function, it is required to set AudioEncoder,
/// videoencoder and fileformat properties of recorder.
/// </remarks>
- /// <privilege>
- /// http://tizen.org/privilege/camera or http://tizen.org/privilege/microphone
- /// </privilege>
/// <exception cref="InvalidOperationException">In case of any invalid operations.</exception>
/// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
public void Prepare()
/// After this method is finished without any exception,
/// The state of recorder will be changed to <see cref="RecorderState.Created"/> state.
/// </summary>
- /// <privilege>
- /// http://tizen.org/privilege/camera or http://tizen.org/privilege/microphone
- /// </privilege>
/// <exception cref="InvalidOperationException">In case of any invalid operations.</exception>
/// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
public void Unprepare()
/// The filename should be set before this function is invoked.
/// </remarks>
/// <privilege>
- /// http://tizen.org/privilege/camera or http://tizen.org/privilege/microphone
+ /// http://tizen.org/privilege/recorder
/// </privilege>
/// <exception cref="InvalidOperationException">In case of any invalid operations.</exception>
/// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
+ /// <exception cref="UnauthorizedAccessException">In case of access to the resources cannot be granted.</exception>
public void Start()
{
ValidateState(RecorderState.Ready, RecorderState.Paused);
/// Recording can be resumed with Start().
/// </remarks>
/// <privilege>
- /// http://tizen.org/privilege/camera or http://tizen.org/privilege/microphone
+ /// http://tizen.org/privilege/recorder
/// </privilege>
/// <exception cref="InvalidOperationException">In case of any invalid operations.</exception>
/// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
+ /// <exception cref="UnauthorizedAccessException">In case of access to the resources cannot be granted.</exception>
public void Pause()
{
ValidateState(RecorderState.Recording);
/// The state of recorder will be changed to <see cref="RecorderState.Ready"/> state.
/// </summary>
/// <privilege>
- /// http://tizen.org/privilege/camera or http://tizen.org/privilege/microphone
+ /// http://tizen.org/privilege/recorder
/// </privilege>
/// <exception cref="InvalidOperationException">In case of any invalid operations.</exception>
/// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
+ /// <exception cref="UnauthorizedAccessException">In case of access to the resources cannot be granted.</exception>
public void Commit()
{
ValidateState(RecorderState.Recording, RecorderState.Paused);
/// The state of recorder will be changed to <see cref="RecorderState.Ready"/> state.
/// </summary>
/// <privilege>
- /// http://tizen.org/privilege/camera or http://tizen.org/privilege/microphone
+ /// http://tizen.org/privilege/recorder
/// </privilege>
/// <exception cref="InvalidOperationException">In case of any invalid operations.</exception>
/// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
+ /// <exception cref="UnauthorizedAccessException">In case of access to the resources cannot be granted.</exception>
public void Cancel()
{
ValidateState(RecorderState.Recording, RecorderState.Paused);