Skip to content

Commit

Permalink
ビデオコーデック、オーディオコーデックのデフォルト値を未指定とする
Browse files Browse the repository at this point in the history
  • Loading branch information
miosakuma committed Feb 18, 2025
1 parent 3fb593c commit 55c77bf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,17 @@

## develop

- [CHANGE] VideoCodecType のデフォルト値を `VP9` から未指定に変更する
- 未指定の場合、シグナリング "type": "connect" でビデオコーデック指定を行わない
- ビデオコーデック指定を行わない場合は Sora のデフォルト値 `VP9` が利用されるため機能影響はない
- @miosakuma
- [CHANGE] AudioCodecType のデフォルト値を `OPUS` から未指定に変更する
- 未指定の場合、シグナリング "type": "connect" でオーディオコーデック指定を行わない
- オーディオコーデック指定を行わない場合は Sora のデフォルト値 `OPUS` が利用されるため機能影響はない
- @miosakuma
- [UPDATE] Sora C++ SDK を `2025.2.0` に上げる
- `CMAKE_VERSION``3.31.4` にアップデート
- @torikizi

## 2025.1.0

Expand Down
8 changes: 4 additions & 4 deletions Sora/Sora.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public class Config
public CameraConfig CameraConfig = new CameraConfig();
public bool Video = true;
public bool Audio = true;
public VideoCodecType VideoCodecType = VideoCodecType.VP9;
public VideoCodecType? VideoCodecType;
public string VideoVp9Params = "";
public string VideoAv1Params = "";
public string VideoH264Params = "";
Expand All @@ -205,7 +205,7 @@ public class Config
/// 指定したデバイスのスピーカーを利用することが出来ます。
/// </remarks>
public string AudioPlayoutDevice = "";
public AudioCodecType AudioCodecType = AudioCodecType.OPUS;
public AudioCodecType? AudioCodecType;
public int AudioBitRate = 0;
public string AudioStreamingLanguageCode = "";

Expand Down Expand Up @@ -402,7 +402,7 @@ public void Connect(Config config)
cc.camera_config.video_width = config.CameraConfig.VideoWidth;
cc.camera_config.video_height = config.CameraConfig.VideoHeight;
cc.camera_config.video_fps = config.CameraConfig.VideoFps;
cc.video_codec_type = config.VideoCodecType.ToString();
cc.video_codec_type == null ? "" : config.VideoCodecType.ToString();
cc.video_vp9_params = config.VideoVp9Params;
cc.video_av1_params = config.VideoAv1Params;
cc.video_h264_params = config.VideoH264Params;
Expand All @@ -411,7 +411,7 @@ public void Connect(Config config)
cc.unity_audio_output = config.UnityAudioOutput;
cc.audio_recording_device = config.AudioRecordingDevice;
cc.audio_playout_device = config.AudioPlayoutDevice;
cc.audio_codec_type = config.AudioCodecType.ToString();
cc.audio_codec_type = == null ? "" : config.AudioCodecType.ToString();
cc.audio_bit_rate = config.AudioBitRate;
cc.audio_streaming_language_code = config.AudioStreamingLanguageCode;
if (config.EnableDataChannelSignaling)
Expand Down

0 comments on commit 55c77bf

Please sign in to comment.