Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Video and IFrame are not displayed #55

Unanswered
Fla1337 asked this question in Q&A
Discussion options

First of all thanks, designing the GUI with React is definitely easier than doing it with Unity. I just need help with the two things.

Video
I have now tried everything, but I just get error messages or the element is not displayed.

IFrame
I also need an <Iframe>. Have also done a few tests, but it is not displayed.

I also tried it with this.

Here as an example, one of my attempts.

Video
< video width="750" height="500" controls >
< source src={videosrc} type="video/mp4" />
< /video>

Iframe
< iframe width="420" height="345" src="https://website"></iframe>

Is there a solution or is it currently not possible.

I am currently using Unity 2021年3月1日f1 LTS

You must be logged in to vote

Replies: 1 comment

Comment options

Hello. ReactUnity is not an in-game browser. It does not have capability to render websites like browsers do. So iframe is not and will not be supported. You can check a 3rd party library for that. For example https://assetstore.unity.com/packages/tools/gui/embedded-browser-55459#description

There is a video component but it does not work like browsers. It uses Unity's VideoPlayer component. Usage is like:

<video source={videosrc} />
You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /