Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
## [3.1.0-exp.5] - 2023-1-16

### Changed

- Upgrade the version of Input System package `1.4.4`.
- Upgrade the version of WebRTC package `3.0.0-pre.4`.

### Fixed

- Fix incorrect mouse position in full-screen web player sample.
  • Loading branch information
Unity Technologies committed Jan 16, 2023
1 parent 423c1ed commit 02f6e02
Show file tree
Hide file tree
Showing 62 changed files with 1,533 additions and 961 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ All notable changes to com.unity.renderstreaming package will be documented in t
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [3.1.0-exp.5] - 2023-1-16

### Changed

- Upgrade the version of Input System package `1.4.4`.
- Upgrade the version of WebRTC package `3.0.0-pre.4`.

### Fixed

- Fix incorrect mouse position in full-screen web player sample.

## [3.1.0-exp.4] - 2022-10-06

### Added
Expand Down
2 changes: 0 additions & 2 deletions Documentation~/TableOfContents.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* [Audio Streaming Component](audio-streaming.md)
* [Data Streaming Component](data-streaming.md)
* [Using with Input System](use-inputsystem.md)
* [Deploy to Furioos](deploy-to-furioos.md)
* [Samples](samples.md)
* [Receiver](sample-receiver.md)
* [Broadcast](sample-broadcast.md)
Expand All @@ -26,5 +25,4 @@
* [Gyroscope](sample-gyroscope.md)
* [Web Browser Input](sample-browserinput.md)
* [Multiplay](sample-multiplay.md)
* [Project Template](template.md)
* [FAQ](faq.md)
2 changes: 1 addition & 1 deletion Documentation~/create-scene.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Add a [**Video Stream Sender**](video-streaming.html#videostreamsenderapiunityre

![Add VideoStreamSender component](images/add_videostreamsender_component.png)

Assign the [**Video Stream Sender**](video-streaming.html#videostreamsenderapiunityrenderstreamingvideostreamsenderhtml-component) component to the **Broadcast** component property.
Assign the [**Video Stream Sender**](video-streaming.html#videostreamsenderapiunityrenderstreamingvideostreamsenderhtml-component) component to the **Broadcast** component property. And set camera

![Assign VideoStreamSender component to streams](images/assign_videostreamsender_to_streams.png)

Expand Down
19 changes: 0 additions & 19 deletions Documentation~/deploy-to-furioos.md

This file was deleted.

Binary file modified Documentation~/images/assign_videostreamsender_to_streams.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Documentation~/images/control_camera_06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Documentation~/images/inputreceiver_inspector.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 6 additions & 8 deletions Documentation~/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@ This version of Render Streaming is compatible with the following versions of th

- **Windows**
- **Linux**
- **macOS** (**Apple Slicon** is not supported yet)
- **macOS**
- **iOS**
- **Android** (**ARMv7** is not supported)

> [!NOTE]
> This package depends on [the WebRTC package](https://docs.unity3d.com/Packages/[email protected]). If you build for mobile platform (iOS/Android), please see [the package documentation](https://docs.unity3d.com/Packages/[email protected]/manual/requirements.html#additional-notes) to know the requirements for building.
### Browser support

Unity Render Streaming supports almost all browsers that can use WebRTC.
Expand All @@ -62,13 +65,8 @@ Unity Render Streaming supports almost all browsers that can use WebRTC.

Please check [this page](samples.md).

## Project template

Please check [this page](template.md).

## Furioos compatibility

**Unity Render Streaming** is also supported natively by **Furioos** platform https://www.furioos.com/ .
That means that you can easily build a Unity application, upload it on **Furioos** and enjoy all the features of **Unity Render Streaming** without worrying about the deployment and scalability issues of your project.
Unity provides **[Furioos](https://www.furioos.com)** which is a web service to stream any 3D contents on any devices in real-time.

Please see [Furioos Tutorial](deploy-to-furioos.md) section to find out how it works.
This version of Unity Render Streaming doesn't support Furioos integration.
2 changes: 1 addition & 1 deletion Documentation~/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Check Package Manager window, Click `+` button and select `Add package from git
Input the string below to the input field.

```
[email protected].4
[email protected].5
```

The list of version string is [here](https://github.com/Unity-Technologies/UnityRenderStreaming/tags). In most cases, the latest version is recommended to use.
Expand Down
63 changes: 0 additions & 63 deletions Documentation~/template.md

This file was deleted.

96 changes: 0 additions & 96 deletions Documentation~/tutorial.md

This file was deleted.

38 changes: 29 additions & 9 deletions Editor/PropertyDrawers/CodecDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ interface Codec
int channelCount { get; }
int sampleRate { get; }
string optionTitle { get; }
int order { get; }
}

class AudioCodec : Codec
Expand All @@ -37,6 +38,8 @@ public string optionTitle
}
}

public int order { get { return codec_.channelCount; } }

public AudioCodec(AudioCodecInfo codec)
{
codec_ = codec;
Expand All @@ -53,25 +56,42 @@ public string optionTitle
{
get
{
if (codec_ is H264CodecInfo h264Codec)
{
return $"{h264Codec.profile} Profile, Level {h264Codec.level.ToString().Insert(1, ".")}";
}
else if (codec_ is VP9CodecInfo vp9codec)
switch(codec_)
{
return $"Profile {(int)vp9codec.profile}";
case H264CodecInfo h264Codec:
return $"{h264Codec.profile} Profile, Level {h264Codec.level.ToString().Insert(1, ".")}";
case VP9CodecInfo vp9codec:
return $"Profile {(int)vp9codec.profile}";
case AV1CodecInfo av1codec:
return $"Profile {(int)av1codec.profile}";
}
return null;
}
}

public int channelCount { get { throw new NotSupportedException(); } }
public int sampleRate { get { throw new NotSupportedException(); } }

public int order
{
get
{
switch (codec_)
{
case H264CodecInfo h264Codec:
return (int)h264Codec.profile;
case VP9CodecInfo vp9codec:
return (int)vp9codec.profile;
case AV1CodecInfo av1codec:
return (int)av1codec.profile;
}
return 0;
}
}
public VideoCodec(VideoCodecInfo codec)
{
codec_ = codec;
}

VideoCodecInfo codec_;
}

Expand Down Expand Up @@ -158,7 +178,7 @@ public override void OnGUI(Rect position, SerializedProperty property, GUIConten
codecNames = codecNames.Concat(codecs.Select(codec => codec.name)).Distinct().ToArray();
var mimeType = propertyMimeType.stringValue;
var codecName = mimeType.GetCodecName();
selectedCodecs = codecs.Where(codec => codec.name == codecName);
selectedCodecs = codecs.Where(codec => codec.name == codecName).OrderBy(codec => codec.order);
codecOptions = selectedCodecs.Select(codec => codec.optionTitle).ToArray();
if (!selectedCodecs.Any())
selectCodecIndex = 0;
Expand All @@ -185,7 +205,7 @@ public override void OnGUI(Rect position, SerializedProperty property, GUIConten
if(0 < selectCodecIndex)
{
string codecName = codecNames[selectCodecIndex];
selectedCodecs = codecs.Where(codec => codec.name == codecName);
selectedCodecs = codecs.Where(codec => codec.name == codecName).OrderBy(codec => codec.order);
codecOptions = selectedCodecs.Select(codec => codec.optionTitle).ToArray();
hasCodecOptions = codecOptions.Length > 1;
var codec = selectedCodecs.First();
Expand Down
2 changes: 1 addition & 1 deletion Editor/WebAppDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Unity.RenderStreaming.Editor
internal static class WebAppDownloader
{
const string URLRoot = "https://github.com/Unity-Technologies/UnityRenderStreaming";
const string LatestKnownVersion = "3.1.0-exp.4";
const string LatestKnownVersion = "3.1.0-exp.5";

// TODO::fix release process of webserver runtime.
const string FileNameWebAppForMac = "webserver_mac";
Expand Down
Loading

0 comments on commit 02f6e02

Please sign in to comment.