How do you watch and record a live h.264 stream at the same time using fmis and FMLE?
I've read all the similar post but could not find a solution that actually works, and please no "just use the dvr or record on the FMLE suggestions" as neither will work for me.
Some posts I've read suggest naming the stream in the FMLE to something like mp4:mystream.mp4 or mp4:mystream.f4v but then you can no longer view the stream, and according my the admin console the stream will not even publish using this syntax.
I can view the published stream if I name the FMLE stream to something like mystream.mp4 or just mystream, but then it doesn't record at all or records as a FLV file depending on how I code the main.asc file.
Here's one version of my main.asc, this one correctly publishes the live stream after the client triggers the joinStreams function but will not record it.
application.onConnect = function (client, userType)
{
trace("userType is " + userType);
this.acceptConnection(client);
//this.clientCount++;
client.joinStreams = function (channel)
{
trace("joinStreams on channel " + channel);
liveVid = Stream.get("livevideo/" + channel + ".mp4");
liveVid.play("hdvideo/" + channel, -1, -1);
liveVid.record("append");
}
client.clearStream = function (channel)
{
trace("clearStream on channel " + channel);
liveVid = Stream.get("livevideo/" + channel + ".mp4");
liveVid.play(false);
delete liveVid;
}
I've been working on this for 48 hours straight, please advise.
