Skip to main content
Inspiring
April 6, 2014
Question

Time shifting and record live stream

  • April 6, 2014
  • 1 reply
  • 442 views

Hellow everyone,

I would like to stream videos for my viewers and them have a abiliti to timeshifting live stream.

Can I use live application for timeshifting? Or I should use livepkgr to do that.

For archive and play on the VOD mode I like to stream live and record at same time. in the livepkgr I see in the stream folder create a stream file with the f4f extention automaticaly whoever in the live application I should call application.record on the FMS to save live stream on the server.

Please advise me the better solution to archive and time shifting.

Many Thanks.

    This topic has been closed for replies.

    1 reply

    Adobe Employee
    April 7, 2014

    livepkgr application for for HTTP streaming...

    f youjust want to stream over rtmp use live application and code to record the stream...recording is pretty simple in AMS just call Stream.get() s.record(...) s.play() where s is the stream which you are recording...

    application.onPublish = function(clientObj, streamObj) {      trace("recording started...");       var strName = "recorded_" + streamObj.name;      var s = Stream.get(strName);      if (s == undefined )           return;         s.onStatus = function(info)      {           trace(info.code);      }           if (!s.record("record"))      {           s.trace("record failed.");      }            s.play(streamObj.name, -1, -1, true); }