Giter Site home page Giter Site logo

Comments (4)

mpisat avatar mpisat commented on August 16, 2024

I tested with TURN only, it said add STUN servers, so I added STUN servers to config and it still doesn't work. Is firefox incapable of receiving WebRTC streams from OME and other Media servers?

    <div id="player_id"></div>

    <script>

    let webrtcSources = [{type : "webrtc", file : "wss://domain.com:3334/app/stream_o", label : "1080"}];
    let player = OvenPlayer.create("player_id", {
        sources: webrtcSources, 
    loop : false,
    autoStart : true,
    mute : true,
    controls : true,
webrtcConfig: {
    iceServers: [
        {
            "urls": [
                "stun:stun.l.google.com:19302"
            ]
        },
        {
            "urls": [
                "turn:165.22.50.93:3478?transport=tcp",
                "turn:165.22.50.93:3478?transport=udp"
            ],
            "username": "myuser",
            "credential": "mypass"
        }
    ]
}
    });
      player.on("error", function(error){
        console.log(error);
      });
    </script>

from ovenplayer.

SangwonOh avatar SangwonOh commented on August 16, 2024

No. Firefox should have to work fine too. Basic playback with OME via firefox works fine on my enviroment. Can I get your WebRTC signaling adress for testing?

from ovenplayer.

mpisat avatar mpisat commented on August 16, 2024

No. Firefox should have to work fine too. Basic playback with OME via firefox works fine on my enviroment. Can I get your WebRTC signaling adress for testing?

I suspected from double nat under Dockerproxy.

My previous docker run command was this:
docker run -d --restart always --env OME_ICE_CANDIDATES=*:10000-10005/udp -p 1935:1935 -p 3333:3333 -p 8080:8080 -p 9000:9000/udp -p 10000-10005:10000-10005/udp airensoft/ovenmediaengine:latest

I added external IP and now it's working on Firefox

docker run -d --restart always --env OME_ICE_CANDIDATES=165.x.x.x:10000-10005/udp -p 1935:1935 -p 3333:3333 -p 8080:8080 -p 9000:9000/udp -p 10000-10005:10000-10005/udp airensoft/ovenmediaengine:latest

if I don't add --env OME_ICE_CANDIDATES=165.x.x.x:10000-10005/udp and expect it to use internal values, it doesn't work on Firefox (double nat issue due to docker?)

from ovenplayer.

SangwonOh avatar SangwonOh commented on August 16, 2024

@mpisat Hi. We just strengthen the connectivity with OME running on private network like a docker proxy.

updated #133 commit.

from ovenplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.