FMS에서 DVR을 기록 할 수있는 서버 측 DVR 애플리케이션을 작성하십시오.
-
03-07-2019 - |
문제
FMS3에서 DVR 계산 성을 사용할 수 있기를 원합니다. 그러나 그렇게하려면 서버 측 DVR 응용 프로그램을 구현해야합니다. 문제는 이것에 대한 예제를 찾을 수 없다는 것입니다.
"레코딩과 올바른 클라이언트 측 액션 스크립트를 미디어 플레이어에게 처리하려면 서버 측 액션 스크립트를 추가해야합니다."
http://help.adobe.com/en_us/flashmedialiveencoder/3.0/using/ws0c4f8d5e-0388-4d1e-a60-d5b3fbc682.html
이 서버 측 스크립트에 대한 도움을 주시면 감사하겠습니다!
Niclas를 고려합니다
해결책 2
이제 작동합니다. 언젠가 필요한 사람들을위한 서버 측 코드가 있습니다.
application.onAppStart = function()
{}
application.onConnect = function(p_c)
{
this.acceptConnection(p_c);
}
application.onPublish = function (p_c, p_stream)
{
p_stream.record();
}
application.onUnpublish = function(p_c, p_stream)
{
p_stream.record(false);
}
Client.prototype.FCPublish = function(streamname)
{
this.call("onFCPublish", null, { code:"NetStream.Publish.Start", description:streamname } );
}
Client.prototype.FCUnpublish = function(streamname)
{
this.call("onFCUnpublish", null, { code:"NetStream.Unpublish.Success", description:streamname } );
}
Client.prototype.releaseStream = function(streamname)
{}
Client.prototype.DVRSetStreamInfo = function(info)
{
s = Stream.get("mp4:" + info.streamName + ".f4v");
if (s)
{
if (info.append)
s.record("append");
else
s.record();
s.play(info.streamName);
}
}
다른 팁
나는 이것이 서버 측 스크립트를 상당히 잘 설명한다고 생각합니다.
제휴하지 않습니다 StackOverflow