I am running the simple screen sharing demo described here:
In screen-sharing-min.js I pass an rtmpUrl to the session.CreateStream() function:
function startStreaming() {
var constraints = {
video: {},
};
constraints.video.type = "screen";
constraints.video.withoutExtension = true;
session.createStream({
name: "mystream",
display: document.getElementById("screen-sharing"),
constraints: constraints,
rtmpUrl: "rtmp://myserver.com/my-stream-key"
}).publish();
}
However, when I start streaming, it runs for a second then stops. If I remove the rtmpUrl it streams to flashphoner's server.
Is this the correct method to specify the target RTMP server?
Is it not possible to use this parameter in demo?
In screen-sharing-min.js I pass an rtmpUrl to the session.CreateStream() function:
function startStreaming() {
var constraints = {
video: {},
};
constraints.video.type = "screen";
constraints.video.withoutExtension = true;
session.createStream({
name: "mystream",
display: document.getElementById("screen-sharing"),
constraints: constraints,
rtmpUrl: "rtmp://myserver.com/my-stream-key"
}).publish();
}
However, when I start streaming, it runs for a second then stops. If I remove the rtmpUrl it streams to flashphoner's server.
Is this the correct method to specify the target RTMP server?
Is it not possible to use this parameter in demo?