From 52e8b31a0d25949a62ecd55f26da1be71699a71f Mon Sep 17 00:00:00 2001 From: Haesu Gwon Date: Fri, 19 Jan 2024 15:08:42 +0900 Subject: [PATCH] [StreamRecorder] Remove module (#5881) --- .../Interop/Interop.Libraries.cs | 23 - .../Interop.StreamRecorder.Capabilities.cs | 37 -- .../Interop/Interop.StreamRecorder.Events.cs | 61 --- .../Interop.StreamRecorder.Settings.cs | 88 ---- .../Interop/Interop.StreamRecorder.cs | 77 ---- .../StreamRecorder.Capabilities.cs | 162 ------- .../StreamRecorder/StreamRecorder.Events.cs | 140 ------ .../StreamRecorder/StreamRecorder.cs | 398 ------------------ .../StreamRecorderAudioOptions.cs | 194 --------- .../StreamRecorderBufferConsumedEventArgs.cs | 41 -- .../StreamRecorder/StreamRecorderEnums.cs | 294 ------------- .../StreamRecorder/StreamRecorderError.cs | 78 ---- .../StreamRecorderErrorOccurredEventArgs.cs | 49 --- .../StreamRecorder/StreamRecorderOptions.cs | 229 ---------- .../StreamRecorderStateChangedEventArgs.cs | 48 --- .../StreamRecorderVideoOptions.cs | 233 ---------- .../Tizen.Multimedia.StreamRecorder.csproj | 11 - .../Tizen.Multimedia.StreamRecorder.sln | 96 ----- src/Tizen.Multimedia/AssemblyAttrs.cs | 2 - 19 files changed, 2261 deletions(-) delete mode 100644 src/Tizen.Multimedia.StreamRecorder/Interop/Interop.Libraries.cs delete mode 100644 src/Tizen.Multimedia.StreamRecorder/Interop/Interop.StreamRecorder.Capabilities.cs delete mode 100644 src/Tizen.Multimedia.StreamRecorder/Interop/Interop.StreamRecorder.Events.cs delete mode 100644 src/Tizen.Multimedia.StreamRecorder/Interop/Interop.StreamRecorder.Settings.cs delete mode 100644 src/Tizen.Multimedia.StreamRecorder/Interop/Interop.StreamRecorder.cs delete mode 100644 src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorder.Capabilities.cs delete mode 100644 src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorder.Events.cs delete mode 100755 src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorder.cs delete mode 100644 src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderAudioOptions.cs delete mode 100644 src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderBufferConsumedEventArgs.cs delete mode 100644 src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderEnums.cs delete mode 100644 src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderError.cs delete mode 100644 src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderErrorOccurredEventArgs.cs delete mode 100644 src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderOptions.cs delete mode 100644 src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderStateChangedEventArgs.cs delete mode 100644 src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderVideoOptions.cs delete mode 100644 src/Tizen.Multimedia.StreamRecorder/Tizen.Multimedia.StreamRecorder.csproj delete mode 100644 src/Tizen.Multimedia.StreamRecorder/Tizen.Multimedia.StreamRecorder.sln diff --git a/src/Tizen.Multimedia.StreamRecorder/Interop/Interop.Libraries.cs b/src/Tizen.Multimedia.StreamRecorder/Interop/Interop.Libraries.cs deleted file mode 100644 index 43f15f26955..00000000000 --- a/src/Tizen.Multimedia.StreamRecorder/Interop/Interop.Libraries.cs +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -internal static partial class Interop -{ - internal static partial class Libraries - { - public const string StreamRecorder = "libcapi-media-streamrecorder.so.0"; - } -} diff --git a/src/Tizen.Multimedia.StreamRecorder/Interop/Interop.StreamRecorder.Capabilities.cs b/src/Tizen.Multimedia.StreamRecorder/Interop/Interop.StreamRecorder.Capabilities.cs deleted file mode 100644 index 133674e58ce..00000000000 --- a/src/Tizen.Multimedia.StreamRecorder/Interop/Interop.StreamRecorder.Capabilities.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using Tizen.Multimedia; - -internal static partial class Interop -{ - internal static partial class StreamRecorder - { - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - internal delegate bool VideoResolutionCallback(int width, int height, IntPtr userData); - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - internal delegate bool FileFormatCallback(StreamRecorderFileFormat format, IntPtr userData); - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - internal delegate bool AudioEncoderCallback(StreamRecorderAudioCodec codec, IntPtr userData); - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - internal delegate bool VideoEncoderCallback(StreamRecorderVideoCodec codec, IntPtr userData); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_foreach_supported_file_format")] - internal static extern StreamRecorderErrorCode FileFormats(StreamRecorderHandle handle, - FileFormatCallback callback, IntPtr userData = default(IntPtr)); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_foreach_supported_audio_encoder")] - internal static extern StreamRecorderErrorCode AudioEncoders(StreamRecorderHandle handle, - AudioEncoderCallback callback, IntPtr userData = default(IntPtr)); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_foreach_supported_video_encoder")] - internal static extern StreamRecorderErrorCode VideoEncoders(StreamRecorderHandle handle, - VideoEncoderCallback callback, IntPtr userData = default(IntPtr)); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_foreach_supported_video_resolution")] - internal static extern StreamRecorderErrorCode VideoResolution(StreamRecorderHandle handle, - VideoResolutionCallback callback, IntPtr userData = default(IntPtr)); - } -} diff --git a/src/Tizen.Multimedia.StreamRecorder/Interop/Interop.StreamRecorder.Events.cs b/src/Tizen.Multimedia.StreamRecorder/Interop/Interop.StreamRecorder.Events.cs deleted file mode 100644 index e7febae51dd..00000000000 --- a/src/Tizen.Multimedia.StreamRecorder/Interop/Interop.StreamRecorder.Events.cs +++ /dev/null @@ -1,61 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using Tizen.Multimedia; - -internal static partial class Interop -{ - internal static partial class StreamRecorder - { - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - internal delegate void RecordingLimitReachedCallback(RecordingLimitType type, IntPtr userData); - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - internal delegate void RecordingStatusCallback(ulong elapsedTime, ulong fileSize, IntPtr userData); - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - internal delegate void NotifiedCallback(int previous, int current, - StreamRecorderNotify notify, IntPtr userData); - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - internal delegate void RecorderErrorCallback(StreamRecorderErrorCode error, - RecorderState current, IntPtr userData); - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - internal delegate void BufferConsumedCallback(IntPtr buffer, IntPtr userData); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_notify_cb")] - internal static extern StreamRecorderErrorCode SetNotifiedCallback(StreamRecorderHandle handle, - NotifiedCallback callback, IntPtr userData = default(IntPtr)); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_unset_notify_cb")] - internal static extern int UnsetNotifiedCallback(StreamRecorderHandle handle); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_recording_status_cb")] - internal static extern StreamRecorderErrorCode SetStatusChangedCallback(StreamRecorderHandle handle, - RecordingStatusCallback callback, IntPtr userData = default(IntPtr)); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_unset_recording_status_cb")] - internal static extern int UnsetStatusChangedCallback(StreamRecorderHandle handle); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_recording_limit_reached_cb")] - internal static extern StreamRecorderErrorCode SetLimitReachedCallback(StreamRecorderHandle handle, - RecordingLimitReachedCallback callback, IntPtr userData = default(IntPtr)); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_unset_recording_limit_reached_cb")] - internal static extern int UnsetLimitReachedCallback(StreamRecorderHandle handle); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_error_cb")] - internal static extern StreamRecorderErrorCode SetErrorCallback(StreamRecorderHandle handle, - RecorderErrorCallback callback, IntPtr userData = default(IntPtr)); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_unset_error_cb")] - internal static extern int UnsetErrorCallback(StreamRecorderHandle handle); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_buffer_consume_completed_cb")] - internal static extern StreamRecorderErrorCode SetBufferConsumedCallback(StreamRecorderHandle handle, - BufferConsumedCallback callback, IntPtr userData = default(IntPtr)); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_unset_buffer_consume_completed_cb")] - internal static extern int UnsetBufferConsumedCallback(StreamRecorderHandle handle); - } -} diff --git a/src/Tizen.Multimedia.StreamRecorder/Interop/Interop.StreamRecorder.Settings.cs b/src/Tizen.Multimedia.StreamRecorder/Interop/Interop.StreamRecorder.Settings.cs deleted file mode 100644 index a8fabbb41b1..00000000000 --- a/src/Tizen.Multimedia.StreamRecorder/Interop/Interop.StreamRecorder.Settings.cs +++ /dev/null @@ -1,88 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using Tizen.Multimedia; - -internal static partial class Interop -{ - internal static partial class StreamRecorder - { - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_filename")] - internal static extern StreamRecorderErrorCode SetFileName(StreamRecorderHandle handle, string path); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_filename")] - internal static extern int GetFileName(StreamRecorderHandle handle, out IntPtr path); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_file_format")] - internal static extern StreamRecorderErrorCode SetFileFormat(StreamRecorderHandle handle, - StreamRecorderFileFormat format); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_file_format")] - internal static extern int GetFileFormat(StreamRecorderHandle handle, out int format); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_audio_encoder")] - internal static extern StreamRecorderErrorCode SetAudioEncoder(StreamRecorderHandle handle, - StreamRecorderAudioCodec codec); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_audio_encoder")] - internal static extern int GetAudioEncoder(StreamRecorderHandle handle, out int codec); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_video_encoder")] - internal static extern StreamRecorderErrorCode SetVideoEncoder(StreamRecorderHandle handle, - StreamRecorderVideoCodec codec); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_video_encoder")] - internal static extern int GetVideoEncoder(StreamRecorderHandle handle, out int codec); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_video_resolution")] - internal static extern StreamRecorderErrorCode SetVideoResolution(StreamRecorderHandle handle, - int width, int height); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_video_resolution")] - internal static extern StreamRecorderErrorCode GetVideoResolution(StreamRecorderHandle handle, - out int width, out int height); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_video_framerate")] - internal static extern StreamRecorderErrorCode SetVideoFrameRate(StreamRecorderHandle handle, int framerate); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_video_framerate")] - internal static extern int GetVideoFramerate(StreamRecorderHandle handle, out int framerate); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_video_source_format")] - internal static extern StreamRecorderErrorCode SetVideoSourceFormat(StreamRecorderHandle handle, - StreamRecorderVideoFormat format); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_video_source_format")] - internal static extern int GetVideoSourceFormat(StreamRecorderHandle handle, out int format); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_recording_limit")] - internal static extern StreamRecorderErrorCode SetRecordingLimit(StreamRecorderHandle handle, - RecordingLimitType type, int limit); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_recording_limit")] - internal static extern int GetRecordingLimit(StreamRecorderHandle handle, int type, out int format); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_audio_samplerate")] - internal static extern StreamRecorderErrorCode SetAudioSampleRate(StreamRecorderHandle handle, int samplerate); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_audio_samplerate")] - internal static extern int GetAudioSampleRate(StreamRecorderHandle handle, out int samplerate); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_audio_encoder_bitrate")] - internal static extern StreamRecorderErrorCode SetAudioEncoderBitrate(StreamRecorderHandle handle, int bitrate); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_audio_encoder_bitrate")] - internal static extern int GetAudioEncoderBitrate(StreamRecorderHandle handle, out int bitrate); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_video_encoder_bitrate")] - internal static extern StreamRecorderErrorCode SetVideoEncoderBitRate(StreamRecorderHandle handle, int bitrate); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_video_encoder_bitrate")] - internal static extern int GetVideoEncoderBitrate(StreamRecorderHandle handle, out int bitrate); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_audio_channel")] - internal static extern StreamRecorderErrorCode SetAudioChannel(StreamRecorderHandle handle, int channel); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_audio_channel")] - internal static extern int GetAudioChannel(StreamRecorderHandle handle, out int channel); - } -} diff --git a/src/Tizen.Multimedia.StreamRecorder/Interop/Interop.StreamRecorder.cs b/src/Tizen.Multimedia.StreamRecorder/Interop/Interop.StreamRecorder.cs deleted file mode 100644 index e7f061b0e0d..00000000000 --- a/src/Tizen.Multimedia.StreamRecorder/Interop/Interop.StreamRecorder.cs +++ /dev/null @@ -1,77 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using Tizen.Multimedia; - -internal static partial class Interop -{ - internal static partial class StreamRecorder - { - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_create")] - internal static extern StreamRecorderErrorCode Create(out StreamRecorderHandle handle); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_prepare")] - internal static extern StreamRecorderErrorCode Prepare(StreamRecorderHandle handle); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_unprepare")] - internal static extern StreamRecorderErrorCode Unprepare(StreamRecorderHandle handle); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_start")] - internal static extern StreamRecorderErrorCode Start(StreamRecorderHandle handle); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_pause")] - internal static extern StreamRecorderErrorCode Pause(StreamRecorderHandle handle); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_commit")] - internal static extern StreamRecorderErrorCode Commit(StreamRecorderHandle handle); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_cancel")] - internal static extern StreamRecorderErrorCode Cancel(StreamRecorderHandle handle); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_push_stream_buffer")] - internal static extern StreamRecorderErrorCode PushStreamBuffer(StreamRecorderHandle handle, - IntPtr mediaPacketHandle); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_enable_source_buffer")] - internal static extern StreamRecorderErrorCode EnableSourceBuffer(StreamRecorderHandle handle, - StreamRecorderSourceType type); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_state")] - internal static extern StreamRecorderErrorCode GetState(StreamRecorderHandle handle, out RecorderState state); - } - - internal class StreamRecorderHandle : SafeHandle - { - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_destroy")] - private static extern StreamRecorderErrorCode Destroy(IntPtr handle); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_cancel")] - private static extern StreamRecorderErrorCode Cancel(IntPtr handle); - - [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_unprepare")] - private static extern StreamRecorderErrorCode Unprepare(IntPtr handle); - - protected StreamRecorderHandle() : base(IntPtr.Zero, true) - { - } - - public override bool IsInvalid => handle == IntPtr.Zero; - - protected override bool ReleaseHandle() - { - try - { - Cancel(handle).Ignore(StreamRecorderErrorCode.InvalidState).ThrowIfError("Failed to cancel."); - Unprepare(handle).Ignore(StreamRecorderErrorCode.InvalidState).ThrowIfError("Failed to unprepare."); - Destroy(handle).ThrowIfError("Failed to destory."); - - return true; - } - catch (Exception e) - { - Tizen.Log.Debug(GetType().FullName, $"Failed to release native RecorderHandle; {e.Message}"); - - return false; - } - } - } -} diff --git a/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorder.Capabilities.cs b/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorder.Capabilities.cs deleted file mode 100644 index 5b10eb832dc..00000000000 --- a/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorder.Capabilities.cs +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -using System; -using System.Collections.Generic; -using System.Linq; -using Native = Interop.StreamRecorder; - -namespace Tizen.Multimedia -{ - public partial class StreamRecorder - { - internal void LoadCapabilities() - { - _videoCodecs = LoadVideoCodecs(this); - _audioCodecs = LoadAudioCodecs(this); - _fileFormats = LoadFileFormats(this); - _videoResolutions = LoadResolutions(this); - } - - private static IEnumerable LoadVideoCodecs(StreamRecorder recorder) - { - var result = new List(); - Native.VideoEncoderCallback callback = (codec, _) => - { - result.Add(codec.ToRecorderEnum()); - return true; - }; - - Native.VideoEncoders(recorder.Handle, callback).ThrowIfError("Failed to get the supported video codecs."); - - return result.AsReadOnly(); - } - - private static IEnumerable LoadAudioCodecs(StreamRecorder recorder) - { - var result = new List(); - - Native.AudioEncoders(recorder.Handle, (codec, _) => - { - result.Add(codec.ToRecorderEnum()); - return true; - }).ThrowIfError("Failed to get the supported audio codecs."); - - return result.AsReadOnly(); - } - - private static IEnumerable LoadFileFormats(StreamRecorder recorder) - { - var result = new List(); - - Native.FileFormats(recorder.Handle, (fileFormat, _) => - { - result.Add(fileFormat.ToRecorderEnum()); - return true; - }).ThrowIfError("Failed to get the supported file formats."); - - return result.AsReadOnly(); - } - - private static IEnumerable LoadResolutions(StreamRecorder recorder) - { - List result = new List(); - - Native.VideoResolutionCallback callback = (width, height, _) => - { - result.Add(new Size(width, height)); - return true; - }; - - Native.VideoResolution(recorder.Handle, callback). - ThrowIfError("Failed to get the supported video resolutions."); - - return result.AsReadOnly(); - } - - private IEnumerable _fileFormats; - - /// - /// Gets the file formats that the current device supports. - /// - /// An IEnumerable of representing the supported file formats. - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public IEnumerable GetSupportedFileFormats() => _fileFormats; - - private IEnumerable _audioCodecs; - - /// - /// Gets the audio codecs that the current device supports. - /// - /// An IEnumerable of representing the supported audio codecs. - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public IEnumerable GetSupportedAudioCodecs() => _audioCodecs; - - private IEnumerable _videoCodecs; - - /// - /// Gets the video codecs that the current device supports. - /// - /// An IEnumerable of representing the supported video codecs. - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public IEnumerable GetSupportedVideoCodecs() => _videoCodecs; - - private IEnumerable _videoResolutions; - - /// - /// Gets the video resolutions that the current device supports. - /// - /// An IEnumerable of representing the supported resolutions. - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public IEnumerable GetSupportedVideoResolutions() => _videoResolutions; - - internal void ValidateFileFormat(RecorderFileFormat format) - { - if (_fileFormats.Contains(format) == false) - { - throw new NotSupportedException($"{format.ToString()} is not supported."); - } - } - - internal void ValidateAudioCodec(RecorderAudioCodec codec) - { - if (_audioCodecs.Contains(codec) == false) - { - throw new NotSupportedException($"{codec.ToString()} is not supported."); - } - } - - internal void ValidateVideoCodec(RecorderVideoCodec codec) - { - if (_videoCodecs.Contains(codec) == false) - { - throw new NotSupportedException($"{codec.ToString()} is not supported."); - } - } - - internal void ValidateVideoResolution(Size resolution) - { - if (_videoResolutions.Contains(resolution) == false) - { - throw new NotSupportedException($"Resolution({resolution.ToString()}) is not supported."); - } - } - } -} \ No newline at end of file diff --git a/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorder.Events.cs b/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorder.Events.cs deleted file mode 100644 index f54823310e1..00000000000 --- a/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorder.Events.cs +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -using System; -using System.Diagnostics; -using Native = Interop.StreamRecorder; - -namespace Tizen.Multimedia -{ - /// 3 - public partial class StreamRecorder - { - /// - /// Occurs when state is changed. - /// - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public event EventHandler StateChanged; - - - /// - /// Occurs when a buffer had consumed completely. - /// - /// 3 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public event EventHandler BufferConsumed; - - /// - /// Occurs when recording status is changed. - /// - /// 3 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public event EventHandler RecordingStatusChanged; - - /// - /// Occurs when recording limit is reached. - /// - /// 3 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public event EventHandler RecordingLimitReached; - - /// - /// Occurs when an error occurred during a recorder operation. - /// - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public event EventHandler ErrorOccurred; - - private Native.RecordingLimitReachedCallback _recordingLimitReachedCallback; - private Native.RecorderErrorCallback _recorderErrorCallback; - private Native.RecordingStatusCallback _recordingStatusCallback; - private Native.BufferConsumedCallback _bufferConsumedCallback; - private Native.NotifiedCallback _notifiedCallback; - - private void RegisterStreamRecorderNotifiedEvent() - { - _notifiedCallback = (previous, current, notify, _) => - { - if (previous == 0) - { - return; - } - - StateChanged?.Invoke(this, new StreamRecorderStateChangedEventArgs( - (RecorderState)previous, (RecorderState)current)); - }; - - Native.SetNotifiedCallback(_handle, _notifiedCallback). - ThrowIfError("Failed to initialize state changed event."); - } - - private void RegisterBufferConsumedEvent() - { - _bufferConsumedCallback = (lockedPacketHandle, _) => - { - MediaPacket packet = null; - - // Lock must be disposed here, note that the packet won't be disposed. - using (MediaPacket.Lock packetLock = - MediaPacket.Lock.FromHandle(lockedPacketHandle)) - { - Debug.Assert(packetLock != null); - - packet = packetLock.MediaPacket; - } - - BufferConsumed?.Invoke(this, new StreamRecorderBufferConsumedEventArgs(packet)); - }; - - Native.SetBufferConsumedCallback(_handle, _bufferConsumedCallback). - ThrowIfError("Failed to initialize buffer consumed event."); - } - - private void RegisterRecordingStatusChangedEvent() - { - _recordingStatusCallback = (elapsedTime, fileSize, _) => - { - RecordingStatusChanged?.Invoke(this, new RecordingStatusChangedEventArgs((long)elapsedTime, (long)fileSize)); - }; - Native.SetStatusChangedCallback(_handle, _recordingStatusCallback). - ThrowIfError("Failed to initialize status changed event."); - } - - private void RegisterRecordingLimitReachedEvent() - { - _recordingLimitReachedCallback = (type, _) => - { - RecordingLimitReached?.Invoke(this, new RecordingLimitReachedEventArgs(type)); - }; - - Native.SetLimitReachedCallback(_handle, _recordingLimitReachedCallback). - ThrowIfError("Failed to initialize limit reached event."); - } - - private void RegisterRecordingErrorOccurredEvent() - { - _recorderErrorCallback = (error, currentState, _) => - { - ErrorOccurred?.Invoke(this, new StreamRecorderErrorOccurredEventArgs( - error == StreamRecorderErrorCode.OutOfStorage ? - StreamRecorderError.OutOfStorage : StreamRecorderError.InternalError, currentState)); - }; - Native.SetErrorCallback(_handle, _recorderErrorCallback). - ThrowIfError("Failed to set error callback"); - } - } -} diff --git a/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorder.cs b/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorder.cs deleted file mode 100755 index 3eb215d0d19..00000000000 --- a/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorder.cs +++ /dev/null @@ -1,398 +0,0 @@ -/* - * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -using System; -using System.Diagnostics; -using System.Linq; -using NativeHandle = Interop.StreamRecorderHandle; -using Native = Interop.StreamRecorder; - -namespace Tizen.Multimedia -{ - /// - /// Provides the ability to record user buffer from application. - /// - /// - [Obsolete("Deprecated in API10; Will be removed in API12")] - public partial class StreamRecorder : IDisposable - { - private NativeHandle _handle; - private bool _disposed = false; - - private bool _audioEnabled; - private bool _videoEnabled; - private StreamRecorderVideoFormat _sourceFormat; - private const string Feature = "http://tizen.org/feature/multimedia.stream_recorder"; - - private static bool IsSupported() - { - return System.Information.TryGetValue(Feature, out bool isSupported) && isSupported; - } - - /// - /// Initialize a new instance of the class. - /// - /// The feature is not supported. - /// 3 - /// http://tizen.org/feature/multimedia.stream_recorder - [Obsolete("Deprecated in API10; Will be removed in API12")] - public StreamRecorder() - { - if (IsSupported() == false) - { - throw new NotSupportedException( - $"The feature({Feature}) is not supported on the current device."); - } - - try - { - Native.Create(out _handle).ThrowIfError("Failed to create stream recorder."); - } - catch (TypeLoadException) - { - throw new NotSupportedException("StreamRecorder is not supported."); - } - - LoadCapabilities(); - - RegisterStreamRecorderNotifiedEvent(); - RegisterBufferConsumedEvent(); - RegisterRecordingStatusChangedEvent(); - RegisterRecordingErrorOccurredEvent(); - RegisterRecordingLimitReachedEvent(); - } - - internal NativeHandle Handle - { - get - { - if (_disposed) - { - throw new ObjectDisposedException(nameof(StreamRecorder)); - } - - return _handle; - } - } - - /// - /// Gets the current state of the stream recorder. - /// - /// The has already been disposed. - /// 3 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public RecorderState State - { - get - { - Native.GetState(Handle, out var val).ThrowIfError("Failed to get the stream recorder state."); - - return val; - } - } - - private void ValidateState(params RecorderState[] required) - { - Debug.Assert(required.Length > 0); - - var curState = State; - if (!required.Contains(curState)) - { - throw new InvalidOperationException($"The stream recorder is not in a valid state. " + - $"Current State : { curState }, Valid State : { string.Join(", ", required) }."); - } - } - - #region Operation methods - /// - /// Prepares the stream recorder with the specified options. - /// - /// The recorder must be . - /// The options for recording. - /// The recorder is not in the valid state. - /// Both and - /// are null. - /// - /// contains a value which is not supported. - /// The has already been disposed. - /// - /// - /// - /// - /// - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public void Prepare(StreamRecorderOptions options) - { - if (options == null) - { - throw new ArgumentNullException(nameof(options)); - } - - ValidateState(RecorderState.Idle); - - options.Apply(this); - - Native.Prepare(Handle).ThrowIfError("Failed to prepare stream recorder."); - - _audioEnabled = options.Audio != null; - _videoEnabled = options.Video != null; - - if (options.Video != null) - { - _sourceFormat = options.Video.SourceFormat; - } - } - - /// - /// Unprepares the stream recorder. - /// - /// - /// The recorder state must be state by - /// , and .
- /// The recorder state will be .
- ///
- /// It has no effect if the recorder is already in the state. - ///
- /// The recorder is not in the valid state. - /// The has already been disposed. - /// - /// 3 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public void Unprepare() - { - if (State == RecorderState.Idle) - { - return; - } - - ValidateState(RecorderState.Ready); - - Native.Unprepare(Handle).ThrowIfError("Failed to reset the stream recorder."); - } - - /// - /// Starts recording. - /// - /// - /// The recorder state must be state by - /// or - /// state by .
- ///
- /// It has no effect if the recorder is already in the state. - ///
- /// The recorder is not in the valid state. - /// The access of the resources can not be granted. - /// The has already been disposed. - /// - /// - /// - /// 3 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public void Start() - { - if (State == RecorderState.Recording) - { - return; - } - - ValidateState(RecorderState.Ready, RecorderState.Paused); - - Native.Start(Handle).ThrowIfError("Failed to start the stream recorder."); - } - - /// - /// Pauses recording. - /// - /// - /// Recording can be resumed with .
- ///
- /// The recorder state must be state by .
- ///
- /// It has no effect if the recorder is already in the state. - ///
- /// The recorder is not in the valid state. - /// The has already been disposed. - /// - /// - /// - /// 3 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public void Pause() - { - if (State == RecorderState.Paused) - { - return; - } - - ValidateState(RecorderState.Recording); - - Native.Pause(Handle).ThrowIfError("Failed to pause the stream recorder."); - } - - /// - /// Stops recording and saves the result. - /// - /// - /// The recorder state must be state by or - /// state by .
- ///
- /// The recorder state will be after commit. - /// - /// http://tizen.org/privilege/mediastorage is needed if the save path are relevant to media storage. - /// http://tizen.org/privilege/externalstorage is needed if the save path are relevant to external storage. - /// - ///
- /// http://tizen.org/privilege/mediastorage - /// http://tizen.org/privilege/externalstorage - /// The recorder is not in the valid state. - /// The access to the resources can not be granted. - /// The has already been disposed. - /// - /// - /// 3 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public void Commit() - { - ValidateState(RecorderState.Paused, RecorderState.Recording); - - Native.Commit(Handle).ThrowIfError("Failed to commit."); - } - - /// - /// Cancels recording. - /// The recording data is discarded and not written. - /// - /// - /// The recorder state must be state by or - /// state by . - /// - /// The recorder is not in the valid state. - /// The has already been disposed. - /// - /// - /// 3 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public void Cancel() - { - ValidateState(RecorderState.Paused, RecorderState.Recording); - - Native.Cancel(Handle).ThrowIfError("Failed to cancel recording."); - } - - private static bool AreVideoTypesMatched(StreamRecorderVideoFormat videoFormat, MediaFormatVideoMimeType mimeType) - { - return (videoFormat == StreamRecorderVideoFormat.Nv12 && mimeType == MediaFormatVideoMimeType.NV12) || - (videoFormat == StreamRecorderVideoFormat.Nv21 && mimeType == MediaFormatVideoMimeType.NV21) || - (videoFormat == StreamRecorderVideoFormat.I420 && mimeType == MediaFormatVideoMimeType.I420); - } - - /// - /// Pushes a packet as recording raw data. - /// - /// An audio or video packet to record. - /// - /// The recorder state must be state by . - /// - /// - /// The recorder is not in the valid state.
- /// -or-
- /// is an audio packet but audio recording is not enabled(See ).
- /// -or-
- /// is a video packet but video recording is not enabled(See ).
- /// -or-
- /// is a video packet but the does not match the video source format.
- /// -or-
- /// An internal error occurs. - ///
- /// The has already been disposed. - /// - /// - /// - /// - /// 3 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public void PushBuffer(MediaPacket packet) - { - if (packet == null) - { - throw new ArgumentNullException(nameof(packet)); - } - - ValidateState(RecorderState.Recording); - - switch (packet.Format.Type) - { - case MediaFormatType.Audio: - if (_audioEnabled == false) - { - throw new InvalidOperationException("Audio option is not set."); - } - break; - - case MediaFormatType.Video: - if (_videoEnabled == false) - { - throw new InvalidOperationException("Video option is not set."); - } - - if (AreVideoTypesMatched(_sourceFormat, (packet.Format as VideoMediaFormat).MimeType) == false) - { - throw new InvalidOperationException("Video format does not match."); - } - - break; - - default: - throw new ArgumentException("Packet is not valid."); - } - - Native.PushStreamBuffer(Handle, MediaPacket.Lock.Get(packet).GetHandle()) - .ThrowIfError("Failed to push buffer."); - } - - #endregion - - #region Dispose support - /// - /// Release any unmanaged resources used by this object. - /// - /// 3 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public void Dispose() - { - Dispose(true); - } - - /// - /// Releases the resources used by the StreamRecorder. - /// - /// - /// true to release both managed and unmanaged resources; false to release only unmanaged resources. - /// - /// 3 - protected virtual void Dispose(bool disposing) - { - if (!_disposed) - { - _handle?.Dispose(); - - _disposed = true; - } - } - #endregion - } -} diff --git a/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderAudioOptions.cs b/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderAudioOptions.cs deleted file mode 100644 index c890259511b..00000000000 --- a/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderAudioOptions.cs +++ /dev/null @@ -1,194 +0,0 @@ -/* - * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -using System; -using Native = Interop.StreamRecorder; - -namespace Tizen.Multimedia -{ - /// - /// Specifies the options associated with audio recording. - /// - /// - /// - /// - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public class StreamRecorderAudioOptions - { - private const int DefaultSampleRate = 0; - private const int DefaultBitRate = 128000; - private const int DefaultChannels = 2; - - /// - /// Initialize a new instance of the class with the specified codec. - /// - /// The for encoding audio stream. - /// - /// , and will be set as default. - /// - /// is not valid. - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public StreamRecorderAudioOptions(RecorderAudioCodec codec) : - this(codec, DefaultSampleRate, DefaultBitRate, DefaultChannels) - { - } - - /// - /// Initialize a new instance of the class with the specified - /// codec, sample rate, bit rate, and channel value. - /// - /// The for encoding audio stream. - /// The sample rate for encoding audio stream. - /// The bit rate for encoding audio stream. - /// The number of channels for encoding audio stream. - /// is not valid. - /// - /// is less than zero.
- /// -or-
- /// is less than or equal to zero.
- /// -or-
- /// is less than or equal to zero. - ///
- /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public StreamRecorderAudioOptions(RecorderAudioCodec codec, int sampleRate, int bitRate, int channels) - { - Codec = codec; - SampleRate = sampleRate; - BitRate = bitRate; - Channels = channels; - } - - private RecorderAudioCodec _codec; - - /// - /// Gets or sets the audio codec for encoding an audio stream. - /// - /// The codec for audio stream recording. - /// is not valid. - /// - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public RecorderAudioCodec Codec - { - get => _codec; - set - { - ValidationUtil.ValidateEnum(typeof(RecorderAudioCodec), value, nameof(value)); - - if (value == RecorderAudioCodec.None) - { - throw new ArgumentException("Audio codec can't be None."); - } - - _codec = value; - } - } - - private int _sampleRate; - - /// - /// Gets or sets the sampling rate of the audio stream in hertz. - /// - /// If the value is zero, the sample rate will be decided based on input buffers. - /// The sample rate value for stream recorder. The default is zero. - /// is less than zero. - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public int SampleRate - { - get => _sampleRate; - set - { - if (value < 0) - { - throw new ArgumentOutOfRangeException(nameof(value), value, - "Sample rate can't be less than or equal to zero."); - } - - _sampleRate = value; - } - } - - private int _bitRate; - - /// - /// Gets or sets the bit rate of the audio encoder in bits per second. - /// - /// The bit rate value for audio stream recording. The default is 128000. - /// is less than or equal to zero. - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public int BitRate - { - get => _bitRate; - set - { - if (value <= 0) - { - throw new ArgumentOutOfRangeException(nameof(value), value, - "Bit rate can't be less than or equal to zero."); - } - - _bitRate = value; - } - } - - private int _channels; - - /// - /// Gets or sets the number of audio channels. - /// - /// The number of audio channels for audio stream recording. The default is 2. - /// is less than or equal to zero. - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public int Channels - { - get => _channels; - set - { - if (value <= 0) - { - throw new ArgumentOutOfRangeException(nameof(value), value, - "Channels can't be less than or equal to zero."); - } - - _channels = value; - } - } - - internal void Apply(StreamRecorder recorder) - { - recorder.ValidateAudioCodec(Codec); - - Native.SetAudioEncoder(recorder.Handle, Codec.ToStreamRecorderEnum()). - ThrowIfError("Failed to set audio codec."); - - Native.SetAudioSampleRate(recorder.Handle, SampleRate). - ThrowIfError("Failed to set audio sample rate."); - - Native.SetAudioEncoderBitrate(recorder.Handle, BitRate). - ThrowIfError("Failed to set audio bit rate."); - - Native.SetAudioChannel(recorder.Handle, Channels). - ThrowIfError("Failed to set audio channels."); - } - } - -} diff --git a/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderBufferConsumedEventArgs.cs b/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderBufferConsumedEventArgs.cs deleted file mode 100644 index 44bd6d1a626..00000000000 --- a/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderBufferConsumedEventArgs.cs +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -using System; - -namespace Tizen.Multimedia -{ - - /// - /// Provides data for the event. - /// - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public class StreamRecorderBufferConsumedEventArgs : EventArgs - { - internal StreamRecorderBufferConsumedEventArgs(MediaPacket packet) - { - Packet = packet; - } - - /// - /// Gets the packet that has consumed. - /// - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public MediaPacket Packet { get; } - } -} diff --git a/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderEnums.cs b/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderEnums.cs deleted file mode 100644 index a035cc89057..00000000000 --- a/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderEnums.cs +++ /dev/null @@ -1,294 +0,0 @@ -/* - * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -using System; -using System.Diagnostics; - -namespace Tizen.Multimedia -{ - - /// - /// Specifies errors for / - /// - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public enum StreamRecorderError - { - /// - /// Internal error. - /// - InternalError = StreamRecorderErrorCode.InvalidOperation, - /// - /// Out of storage. - /// - OutOfStorage = StreamRecorderErrorCode.OutOfStorage - } - - /// - /// Specifies the video source formats for . - /// - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public enum StreamRecorderVideoFormat - { - /// - /// Nv12 format. - /// - Nv12, - /// - /// Nv21 format. - /// - Nv21, - /// - /// I420 format. - /// - I420 - } - - #region Internal enums - - /// - /// Enumeration for Audio Codec. - /// - internal enum StreamRecorderAudioCodec - { - /// - /// AMR codec. - /// - Amr = 0, - /// - /// AAC codec. - /// - Aac, - /// - /// PCM codec. - /// - Pcm - } - - /// - /// Enumeration for the file container format. - /// - internal enum StreamRecorderFileFormat - { - /// - /// 3GP file format. - /// - ThreeGp, - /// - /// MP4 file format. - /// - Mp4, - /// - /// AMR file format. - /// - Amr, - /// - /// ADTS file format. - /// - Adts, - /// - /// WAV file format. - /// - Wav - } - - /// - /// Enumeration for the recorder notify type. - /// - internal enum StreamRecorderNotify - { - /// - /// None. - /// - None = 0, - /// - /// State changed. - /// - StateChanged - } - - /// - /// Enumeration for video codec. - /// - internal enum StreamRecorderVideoCodec - { - /// - /// H263 codec. - /// - H263, - /// - /// MPEG4 codec. - /// - Mpeg4 - } - - /// - /// Enumeration for source type. - /// - internal enum StreamRecorderSourceType - { - /// - /// Video source - /// - Video, - /// - /// Audio source - /// - Audio, - /// - /// Audio/Video both - /// - VideoAudio - } - - internal static class StreamRecorderEnumExtensions - { - internal static RecorderVideoCodec ToRecorderEnum(this StreamRecorderVideoCodec value) - { - switch (value) - { - case StreamRecorderVideoCodec.H263: - return RecorderVideoCodec.H263; - - case StreamRecorderVideoCodec.Mpeg4: - return RecorderVideoCodec.Mpeg4; - - default: - break; - } - - Debug.Fail("Unknown video codec value."); - return 0; - } - - internal static StreamRecorderVideoCodec ToStreamRecorderEnum(this RecorderVideoCodec value) - { - switch (value) - { - case RecorderVideoCodec.H263: - return StreamRecorderVideoCodec.H263; - - case RecorderVideoCodec.Mpeg4: - return StreamRecorderVideoCodec.Mpeg4; - - default: - break; - } - - throw new NotSupportedException($"{value.ToString()} is not supported."); - } - - - internal static RecorderAudioCodec ToRecorderEnum(this StreamRecorderAudioCodec value) - { - switch (value) - { - case StreamRecorderAudioCodec.Aac: - return RecorderAudioCodec.Aac; - - case StreamRecorderAudioCodec.Amr: - return RecorderAudioCodec.Amr; - - case StreamRecorderAudioCodec.Pcm: - return RecorderAudioCodec.Pcm; - - default: - break; - } - - Debug.Fail("Unknown audio codec value."); - return 0; - } - - - internal static StreamRecorderAudioCodec ToStreamRecorderEnum(this RecorderAudioCodec value) - { - switch (value) - { - case RecorderAudioCodec.Aac: - return StreamRecorderAudioCodec.Aac; - - case RecorderAudioCodec.Amr: - return StreamRecorderAudioCodec.Amr; - - case RecorderAudioCodec.Pcm: - return StreamRecorderAudioCodec.Pcm; - - default: - break; - } - - throw new NotSupportedException($"{value.ToString()} is not supported."); - } - - - internal static RecorderFileFormat ToRecorderEnum(this StreamRecorderFileFormat value) - { - switch (value) - { - case StreamRecorderFileFormat.ThreeGp: - return RecorderFileFormat.ThreeGp; - - case StreamRecorderFileFormat.Mp4: - return RecorderFileFormat.Mp4; - - case StreamRecorderFileFormat.Amr: - return RecorderFileFormat.Amr; - - case StreamRecorderFileFormat.Adts: - return RecorderFileFormat.Adts; - - case StreamRecorderFileFormat.Wav: - return RecorderFileFormat.Wav; - - default: - break; - } - - Debug.Fail("Unknown file format value."); - return 0; - } - - - internal static StreamRecorderFileFormat ToStreamRecorderEnum(this RecorderFileFormat value) - { - switch (value) - { - case RecorderFileFormat.ThreeGp: - return StreamRecorderFileFormat.ThreeGp; - - case RecorderFileFormat.Mp4: - return StreamRecorderFileFormat.Mp4; - - case RecorderFileFormat.Amr: - return StreamRecorderFileFormat.Amr; - - case RecorderFileFormat.Adts: - return StreamRecorderFileFormat.Adts; - - case RecorderFileFormat.Wav: - return StreamRecorderFileFormat.Wav; - - default: - break; - } - - throw new NotSupportedException($"{value.ToString()} is not supported."); - } - } - #endregion -} diff --git a/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderError.cs b/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderError.cs deleted file mode 100644 index 736537880e4..00000000000 --- a/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderError.cs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -using System; -using System.IO; -using Tizen.Internals.Errors; - -namespace Tizen.Multimedia -{ - internal enum StreamRecorderErrorCode - { - None = ErrorCode.None, - InvalidParameter = ErrorCode.InvalidParameter, - TizenErrorStreamRecorder = -0x01A10000, - InvalidState = TizenErrorStreamRecorder | 0x01, - OutOfMemory = ErrorCode.OutOfMemory, - InvalidOperation = ErrorCode.InvalidOperation, - OutOfStorage = TizenErrorStreamRecorder | 0x02, - PermissionDenied = ErrorCode.PermissionDenied, - NotSupported = ErrorCode.NotSupported, - } - - internal static class StreamRecorderErrorExtensions - { - internal static StreamRecorderErrorCode Ignore(this StreamRecorderErrorCode errorCode, StreamRecorderErrorCode ignore) - { - return (ignore == errorCode) ? StreamRecorderErrorCode.None : errorCode; - } - - internal static void ThrowIfError(this StreamRecorderErrorCode errorCode, string errorMessage) - { - if (errorCode == StreamRecorderErrorCode.None) - { - return; - } - - switch (errorCode) - { - case StreamRecorderErrorCode.InvalidParameter: - throw new ArgumentException(errorMessage); - - case StreamRecorderErrorCode.OutOfMemory: - throw new OutOfMemoryException(errorMessage); - - case StreamRecorderErrorCode.PermissionDenied: - throw new UnauthorizedAccessException(errorMessage); - - case StreamRecorderErrorCode.NotSupported: - throw new NotSupportedException(errorMessage); - - case StreamRecorderErrorCode.InvalidState: - case StreamRecorderErrorCode.InvalidOperation: - throw new InvalidOperationException(errorMessage); - - case StreamRecorderErrorCode.OutOfStorage: - throw new IOException(errorMessage); - - default: - Log.Error("Tizen.Multimedia.StreamRecorder", $"Unknown error : {errorCode.ToString()}"); - break; - } - } - } -} - diff --git a/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderErrorOccurredEventArgs.cs b/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderErrorOccurredEventArgs.cs deleted file mode 100644 index fcd9f723913..00000000000 --- a/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderErrorOccurredEventArgs.cs +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -using System; - -namespace Tizen.Multimedia -{ - /// - /// Provides data for the event. - /// - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public class StreamRecorderErrorOccurredEventArgs : EventArgs - { - internal StreamRecorderErrorOccurredEventArgs(StreamRecorderError error, RecorderState state) - { - Error = error; - State = state; - } - - /// - /// Gets the error code. - /// - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public StreamRecorderError Error { get; } - - /// - /// Gets the state of the recorder. - /// - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public RecorderState State { get; } - - } -} diff --git a/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderOptions.cs b/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderOptions.cs deleted file mode 100644 index 0fe0286f7e1..00000000000 --- a/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderOptions.cs +++ /dev/null @@ -1,229 +0,0 @@ -/* - * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -using System; -using System.Diagnostics; -using Native = Interop.StreamRecorder; - -namespace Tizen.Multimedia -{ - /// - /// Specifies the options associated with . - /// - /// - /// - /// - /// - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public class StreamRecorderOptions - { - /// - /// Initialize a new instance of the class with the specified - /// save path and file format. - /// - /// The path that the recording result is saved. - /// The file format of output file. - /// is null. - /// - /// is an empty string.
- /// -or-
- /// is not valid. - ///
- /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public StreamRecorderOptions(string savePath, RecorderFileFormat fileFormat) - { - SavePath = savePath; - FileFormat = fileFormat; - } - - private string _savePath; - - /// - /// Gets or sets the file path to record. - /// - /// - /// If the same file already exists in the file system, then old file will be overwritten. - /// - /// is null. - /// is an empty string. - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public string SavePath - { - get => _savePath; - set - { - if (value == null) - { - throw new ArgumentNullException(nameof(value)); - } - - if (string.IsNullOrWhiteSpace(value)) - { - throw new ArgumentException("Path can't be an empty string.", nameof(value)); - } - - _savePath = value; - } - } - - private RecorderFileFormat _fileFormat; - - /// - /// Gets or sets the file format for recording media stream. - /// - /// is not valid. - /// - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public RecorderFileFormat FileFormat - { - get => _fileFormat; - set - { - ValidationUtil.ValidateEnum(typeof(RecorderFileFormat), value, nameof(value)); - - _fileFormat = value; - } - } - - private int _timeLimit; - - /// - /// Gets or sets the time limit of recording. - /// - /// - /// The maximum time of recording in seconds, or 0 for unlimited time. - /// - /// - /// After reaching the limitation, the data which is being recorded will - /// be discarded and not written to the file. - /// - /// is less than zero. - /// - /// - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public int TimeLimit - { - get => _timeLimit; - set - { - if (value < 0) - { - throw new ArgumentOutOfRangeException(nameof(value), value, - "Time limit can't be less than zero."); - } - - _timeLimit = value; - } - } - - private int _sizeLimit; - - /// - /// Gets or sets the maximum size of a recording file. - /// - /// - /// The maximum size of a recording file in kilobytes, or 0 for unlimited size. - /// - /// - /// After reaching the limitation, the data which is being recorded will - /// be discarded and not written to the file. - /// - /// is less than zero. - /// - /// - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public int SizeLimit - { - get => _sizeLimit; - set - { - if (value < 0) - { - throw new ArgumentOutOfRangeException(nameof(value), value, - "Size limit can't be less than zero."); - } - - _sizeLimit = value; - } - } - - /// - /// Gets or sets the options for audio recording. - /// - /// - /// or must be set for recording. - /// - /// - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public StreamRecorderAudioOptions Audio { get; set; } - - /// - /// Gets or sets the options for video recording. - /// - /// - /// or must be set for recording. - /// - /// - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public StreamRecorderVideoOptions Video { get; set; } - - private StreamRecorderSourceType GetSourceType() - { - Debug.Assert(Audio != null || Video != null); - - if (Audio != null && Video != null) - { - return StreamRecorderSourceType.VideoAudio; - } - - return Audio != null ? StreamRecorderSourceType.Audio : StreamRecorderSourceType.Video; - } - - internal void Apply(StreamRecorder recorder) - { - if (Audio == null && Video == null) - { - throw new ArgumentException("Both Audio and Video are not set."); - } - - Native.EnableSourceBuffer(recorder.Handle, GetSourceType()).ThrowIfError("Failed to apply options."); - - Native.SetFileName(recorder.Handle, SavePath).ThrowIfError("Failed to set save path."); - - recorder.ValidateFileFormat(FileFormat); - Native.SetFileFormat(recorder.Handle, FileFormat.ToStreamRecorderEnum()) - .ThrowIfError("Failed to set file format."); - - Native.SetRecordingLimit(recorder.Handle, RecordingLimitType.Size, SizeLimit). - ThrowIfError("Failed to set size limit."); - - Native.SetRecordingLimit(recorder.Handle, RecordingLimitType.Time, TimeLimit). - ThrowIfError("Failed to set time limit."); - - Audio?.Apply(recorder); - - Video?.Apply(recorder); - } - } -} diff --git a/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderStateChangedEventArgs.cs b/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderStateChangedEventArgs.cs deleted file mode 100644 index 3a16e7e8109..00000000000 --- a/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderStateChangedEventArgs.cs +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -using System; - -namespace Tizen.Multimedia -{ - /// - /// Provides data for the event. - /// - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public class StreamRecorderStateChangedEventArgs : EventArgs - { - internal StreamRecorderStateChangedEventArgs(RecorderState previous, RecorderState current) - { - Previous = previous; - Current = current; - } - - /// - /// Gets the previous state of the stream recorder. - /// - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public RecorderState Previous { get; } - - /// - /// Gets the current state of the stream recorder. - /// - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public RecorderState Current { get; } - } -} diff --git a/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderVideoOptions.cs b/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderVideoOptions.cs deleted file mode 100644 index ae443bbd646..00000000000 --- a/src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderVideoOptions.cs +++ /dev/null @@ -1,233 +0,0 @@ -/* - * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -using System; -using Native = Interop.StreamRecorder; - -namespace Tizen.Multimedia -{ - /// - /// Specifies the options associated with video recording. - /// - /// - /// - /// - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public class StreamRecorderVideoOptions - { - private const int DefaultBitRate = 0; - - /// - /// Initialize a new instance of the class with the specified - /// codec, resolution, source format, and frame rate. - /// - /// The for encoding video stream. - /// The resolution of video recording. - /// The format of source stream. - /// The frame rate for encoding video stream. - /// - /// will be set as default. - /// - /// - /// is not valid.
- /// -or-
- /// is not valid. - ///
- /// - /// Width or height of is less than or equal to zero.
- /// -or-
- /// is less than or equal to zero. - ///
- /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public StreamRecorderVideoOptions(RecorderVideoCodec codec, Size resolution, - StreamRecorderVideoFormat sourceFormat, int frameRate) : - this(codec, resolution, sourceFormat, frameRate, DefaultBitRate) - { - } - - /// - /// Initialize a new instance of the class with the specified - /// codec, resolution, source format, frame rate, and bit rate. - /// - /// The for encoding video stream. - /// The resolution of video recording. - /// The format of source stream. - /// The frame rate for encoding video stream. - /// The bit rate for encoding video stream. - /// - /// is not valid.
- /// -or-
- /// is not valid.
- ///
- /// - /// Width or height of is less than or equal to zero.
- /// -or-
- /// is less than or equal to zero.
- /// -or-
- /// is less than zero. - ///
- /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public StreamRecorderVideoOptions(RecorderVideoCodec codec, Size resolution, - StreamRecorderVideoFormat sourceFormat, int frameRate, int bitRate) - { - Codec = codec; - Resolution = resolution; - SourceFormat = sourceFormat; - FrameRate = frameRate; - BitRate = bitRate; - } - - private RecorderVideoCodec _codec; - - /// - /// Gets or sets the video codec for encoding video stream. - /// - /// The codec for video stream recording. - /// is not valid. - /// - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public RecorderVideoCodec Codec - { - get => _codec; - set - { - ValidationUtil.ValidateEnum(typeof(RecorderVideoCodec), value, nameof(value)); - - _codec = value; - } - } - - private Size _resolution; - - /// - /// Gets or sets the resolution of the video recording. - /// - /// The output resolution for video stream recording. - /// - /// Width or height of is less than or equal to zero. - /// - /// - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public Size Resolution - { - get => _resolution; - set - { - if (value.Width <= 0 || value.Height <= 0) - { - throw new ArgumentOutOfRangeException(nameof(value), value, - "Resolution can't be less than or equal to zero."); - } - - _resolution = value; - } - } - - private int _frameRate; - - /// - /// Gets or sets the frame rate for recording media stream. - /// - /// The frame rate value for video stream recording. - /// is less than or equal to zero. - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public int FrameRate - { - get => _frameRate; - set - { - if (value <= 0) - { - throw new ArgumentOutOfRangeException(nameof(value), value, - "Frame rate can't be less than or equal to zero."); - } - _frameRate = value; - } - } - - private StreamRecorderVideoFormat _sourceFormat; - - /// - /// Gets or sets the video source format for recording media stream. - /// - /// The source format of buffers for video stream recording. - /// is not valid. - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public StreamRecorderVideoFormat SourceFormat - { - get => _sourceFormat; - set - { - ValidationUtil.ValidateEnum(typeof(StreamRecorderVideoFormat), value, nameof(value)); - - _sourceFormat = value; - } - } - - private int _bitRate; - - /// - /// The bit rate of the video encoder in bits per second. - /// - /// The bit rate value for video stream recording. The default is 0. - /// is less than zero. - /// 4 - [Obsolete("Deprecated in API10; Will be removed in API12")] - public int BitRate - { - get => _bitRate; - set - { - if (value < 0) - { - throw new ArgumentOutOfRangeException(nameof(value), value, - "Bit rate can't be less than or equal to zero."); - } - _bitRate = value; - } - } - - internal void Apply(StreamRecorder recorder) - { - recorder.ValidateVideoCodec(Codec); - - Native.SetVideoEncoder(recorder.Handle, Codec.ToStreamRecorderEnum()). - ThrowIfError("Failed to set video codec."); - - recorder.ValidateVideoResolution(Resolution); - - Native.SetVideoResolution(recorder.Handle, Resolution.Width, Resolution.Height). - ThrowIfError("Failed to set video resolution."); - - Native.SetVideoFrameRate(recorder.Handle, FrameRate). - ThrowIfError("Failed to set video frame rate."); - - Native.SetVideoEncoderBitRate(recorder.Handle, BitRate). - ThrowIfError("Failed to set video bit rate."); - - Native.SetVideoSourceFormat(recorder.Handle, SourceFormat). - ThrowIfError("Failed to set video source format."); - } - } - -} diff --git a/src/Tizen.Multimedia.StreamRecorder/Tizen.Multimedia.StreamRecorder.csproj b/src/Tizen.Multimedia.StreamRecorder/Tizen.Multimedia.StreamRecorder.csproj deleted file mode 100644 index 7b772bc5c1c..00000000000 --- a/src/Tizen.Multimedia.StreamRecorder/Tizen.Multimedia.StreamRecorder.csproj +++ /dev/null @@ -1,11 +0,0 @@ - - - - net6.0 - - - - - - - \ No newline at end of file diff --git a/src/Tizen.Multimedia.StreamRecorder/Tizen.Multimedia.StreamRecorder.sln b/src/Tizen.Multimedia.StreamRecorder/Tizen.Multimedia.StreamRecorder.sln deleted file mode 100644 index a6e970ab613..00000000000 --- a/src/Tizen.Multimedia.StreamRecorder/Tizen.Multimedia.StreamRecorder.sln +++ /dev/null @@ -1,96 +0,0 @@ -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.26730.12 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Multimedia.StreamRecorder", "Tizen.Multimedia.StreamRecorder.csproj", "{E637475F-BFC1-40F3-A903-D548C240F677}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Multimedia.Recorder", "..\Tizen.Multimedia.Recorder\Tizen.Multimedia.Recorder.csproj", "{FF4886B5-3225-40C5-9314-1193E0ECAEDF}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen", "..\Tizen\Tizen.csproj", "{C983A5CA-797B-4C30-B9E0-A7A4B1275D88}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Log", "..\Tizen.Log\Tizen.Log.csproj", "{AF762B89-151B-413B-B289-9909ABA04371}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ElmSharp", "..\ElmSharp\ElmSharp.csproj", "{1413EA41-9936-41A5-9BCF-9E1DA243DB7B}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Applications.Common", "..\Tizen.Applications.Common\Tizen.Applications.Common.csproj", "{BC2D0788-EF91-4E36-BFC6-B91E48A223E2}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.NUI", "..\Tizen.NUI\Tizen.NUI.csproj", "{F605BC25-8B3A-4C51-AF63-C49AABFB6793}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.System.SystemSettings", "..\Tizen.System.SystemSettings\Tizen.System.SystemSettings.csproj", "{3E60C6E2-D0C3-4471-9E2F-ADD1E3A8A3C7}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Multimedia", "..\Tizen.Multimedia\Tizen.Multimedia.csproj", "{36328359-B4AB-4AFD-A06E-4C0355B9472F}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.System.Information", "..\Tizen.System.Information\Tizen.System.Information.csproj", "{958093FF-C0C1-4CAA-9B89-EFFF00790535}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Multimedia.AudioIO", "..\Tizen.Multimedia.AudioIO\Tizen.Multimedia.AudioIO.csproj", "{80C1392F-E71C-4539-A970-BDE3FF04B951}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Multimedia.Camera", "..\Tizen.Multimedia.Camera\Tizen.Multimedia.Camera.csproj", "{EEA12578-E0D6-4852-90B8-020D238E29C4}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Applications.ComponentBased", "..\Tizen.Applications.ComponentBased\Tizen.Applications.ComponentBased.csproj", "{F3A6EEC0-C363-4022-87F8-864A9BB9E2A4}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {E637475F-BFC1-40F3-A903-D548C240F677}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E637475F-BFC1-40F3-A903-D548C240F677}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E637475F-BFC1-40F3-A903-D548C240F677}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E637475F-BFC1-40F3-A903-D548C240F677}.Release|Any CPU.Build.0 = Release|Any CPU - {FF4886B5-3225-40C5-9314-1193E0ECAEDF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FF4886B5-3225-40C5-9314-1193E0ECAEDF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FF4886B5-3225-40C5-9314-1193E0ECAEDF}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FF4886B5-3225-40C5-9314-1193E0ECAEDF}.Release|Any CPU.Build.0 = Release|Any CPU - {C983A5CA-797B-4C30-B9E0-A7A4B1275D88}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C983A5CA-797B-4C30-B9E0-A7A4B1275D88}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C983A5CA-797B-4C30-B9E0-A7A4B1275D88}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C983A5CA-797B-4C30-B9E0-A7A4B1275D88}.Release|Any CPU.Build.0 = Release|Any CPU - {AF762B89-151B-413B-B289-9909ABA04371}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {AF762B89-151B-413B-B289-9909ABA04371}.Debug|Any CPU.Build.0 = Debug|Any CPU - {AF762B89-151B-413B-B289-9909ABA04371}.Release|Any CPU.ActiveCfg = Release|Any CPU - {AF762B89-151B-413B-B289-9909ABA04371}.Release|Any CPU.Build.0 = Release|Any CPU - {1413EA41-9936-41A5-9BCF-9E1DA243DB7B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1413EA41-9936-41A5-9BCF-9E1DA243DB7B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1413EA41-9936-41A5-9BCF-9E1DA243DB7B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1413EA41-9936-41A5-9BCF-9E1DA243DB7B}.Release|Any CPU.Build.0 = Release|Any CPU - {BC2D0788-EF91-4E36-BFC6-B91E48A223E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {BC2D0788-EF91-4E36-BFC6-B91E48A223E2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BC2D0788-EF91-4E36-BFC6-B91E48A223E2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {BC2D0788-EF91-4E36-BFC6-B91E48A223E2}.Release|Any CPU.Build.0 = Release|Any CPU - {F605BC25-8B3A-4C51-AF63-C49AABFB6793}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F605BC25-8B3A-4C51-AF63-C49AABFB6793}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F605BC25-8B3A-4C51-AF63-C49AABFB6793}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F605BC25-8B3A-4C51-AF63-C49AABFB6793}.Release|Any CPU.Build.0 = Release|Any CPU - {3E60C6E2-D0C3-4471-9E2F-ADD1E3A8A3C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3E60C6E2-D0C3-4471-9E2F-ADD1E3A8A3C7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3E60C6E2-D0C3-4471-9E2F-ADD1E3A8A3C7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3E60C6E2-D0C3-4471-9E2F-ADD1E3A8A3C7}.Release|Any CPU.Build.0 = Release|Any CPU - {36328359-B4AB-4AFD-A06E-4C0355B9472F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {36328359-B4AB-4AFD-A06E-4C0355B9472F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {36328359-B4AB-4AFD-A06E-4C0355B9472F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {36328359-B4AB-4AFD-A06E-4C0355B9472F}.Release|Any CPU.Build.0 = Release|Any CPU - {958093FF-C0C1-4CAA-9B89-EFFF00790535}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {958093FF-C0C1-4CAA-9B89-EFFF00790535}.Debug|Any CPU.Build.0 = Debug|Any CPU - {958093FF-C0C1-4CAA-9B89-EFFF00790535}.Release|Any CPU.ActiveCfg = Release|Any CPU - {958093FF-C0C1-4CAA-9B89-EFFF00790535}.Release|Any CPU.Build.0 = Release|Any CPU - {80C1392F-E71C-4539-A970-BDE3FF04B951}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {80C1392F-E71C-4539-A970-BDE3FF04B951}.Debug|Any CPU.Build.0 = Debug|Any CPU - {80C1392F-E71C-4539-A970-BDE3FF04B951}.Release|Any CPU.ActiveCfg = Release|Any CPU - {80C1392F-E71C-4539-A970-BDE3FF04B951}.Release|Any CPU.Build.0 = Release|Any CPU - {EEA12578-E0D6-4852-90B8-020D238E29C4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {EEA12578-E0D6-4852-90B8-020D238E29C4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {EEA12578-E0D6-4852-90B8-020D238E29C4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {EEA12578-E0D6-4852-90B8-020D238E29C4}.Release|Any CPU.Build.0 = Release|Any CPU - {F3A6EEC0-C363-4022-87F8-864A9BB9E2A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F3A6EEC0-C363-4022-87F8-864A9BB9E2A4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F3A6EEC0-C363-4022-87F8-864A9BB9E2A4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F3A6EEC0-C363-4022-87F8-864A9BB9E2A4}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {DD113101-5A21-474D-9B56-22610C624BDF} - EndGlobalSection -EndGlobal diff --git a/src/Tizen.Multimedia/AssemblyAttrs.cs b/src/Tizen.Multimedia/AssemblyAttrs.cs index ed3637c5b88..fc45d4f3550 100644 --- a/src/Tizen.Multimedia/AssemblyAttrs.cs +++ b/src/Tizen.Multimedia/AssemblyAttrs.cs @@ -31,8 +31,6 @@ [assembly: InternalsVisibleTo("Tizen.Multimedia.Recorder, " + PublicKey.Value)] -[assembly: InternalsVisibleTo("Tizen.Multimedia.StreamRecorder, " + PublicKey.Value)] - [assembly: InternalsVisibleTo("Tizen.Multimedia.Remoting, " + PublicKey.Value)] [assembly: InternalsVisibleTo("Tizen.Multimedia.Util, " + PublicKey.Value)]