Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iframe available options #2

Closed
pragmatech opened this issue Dec 7, 2022 · 5 comments
Closed

Iframe available options #2

pragmatech opened this issue Dec 7, 2022 · 5 comments
Labels
question Further information is requested

Comments

@pragmatech
Copy link

Using the iframe so that the user drops into a preset room name would be useful. Currently it seems that one must include a username in such a preset url in the iframe, which isn't ideal. Any pointers or approach to how one does this is appreciated.
mahalo from Mauna Loa

@miroslavpejic85
Copy link
Owner

miroslavpejic85 commented Dec 7, 2022

Based of you needs, you can create 3 type of Iframes for a website:

  1. Set the Room and Username desired: https://c2c.mirotalk.com
<iframe
    allow="camera; microphone; display-capture; fullscreen; clipboard-read; clipboard-write; web-share; autoplay"
    src="https://c2c.mirotalk.com"
    style="height: 100vh; width: 100vw; border: 0px;"
></iframe>
  1. Set the Username desired: https://c2c.mirotalk.com/?room=test
<iframe
    allow="camera; microphone; display-capture; fullscreen; clipboard-read; clipboard-write; web-share; autoplay"
    src="https://c2c.mirotalk.com/?room=test"
    style="height: 100vh; width: 100vw; border: 0px;"
></iframe>
  1. Direct Join: https://c2c.mirotalk.com/join?room=test&name=test
<iframe
    allow="camera; microphone; display-capture; fullscreen; clipboard-read; clipboard-write; web-share; autoplay"
    src="https://c2c.mirotalk.com/join?room=test&name=test"
    style="height: 100vh; width: 100vw; border: 0px;"
></iframe>

@pragmatech
Copy link
Author

pragmatech commented Dec 7, 2022

<iframe allow="camera; microphone; fullscreen; display-capture; autoplay" src="https://c2c.mirotalk.com/?room=test" style="height: 100%; width: 100%; border: 0px;" ></iframe>

It seems that the above setting (and what is preferrable in my use case) does not allow for the client to load.
(whereas if some arbitrary user name is included ala 'Direct Join' it loads, but with that somewhat odd chosen name string.)

@miroslavpejic85
Copy link
Owner

miroslavpejic85 commented Dec 7, 2022

It seems that the above setting (and what is preferrable in my use case) does not allow for the client to load.

Here the user need to set a Username if not already done before (that is saved on localStorage), then click JOIN button to join the room (2), It's different then Direct Join (3) where you can change the src any time with the room and name desired from your website. You can handle iframes at will from your site's code...(iframe src are not static, the 3 mentioned above are examples of use). So if you need something different, adapt it for your needs.

@pragmatech
Copy link
Author

if not already done before (that is saved on localStorage), then click JOIN button to join the room (2)

Indeed, I may need to get clear on my end, dev wise.
Not to belabor the issue (well to belabor it actually), the click JOIN, under (2) yields:
{"data":"404 not found"}

@miroslavpejic85
Copy link
Owner

Make sure you entered the SRC correctly in the iframe.

join

Please, for future questions, discussions and so on, join with us on Discord and not open issues here, which are usually for reporting bugs.

Thank you for understanding.

@miroslavpejic85 miroslavpejic85 added the question Further information is requested label Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants