Skip to main content
Participant
November 28, 2013
Question

HLS stream cannot renew when adobe media encoder restart

  • November 28, 2013
  • 1 reply
  • 1116 views

Hi,

I used adobe media server 5.0 in Red Hat 4.1.2 and adobe meida encoder 3.2 to recording HLS stream(get ts file), there's no problem when first running(use jwplayer to view the steam), but when I disconnect adobe media encoder for some time(about 12 hours) and reconnect the encoder, I found hls stream cannot renew, always stay on the moment I disconnect the encoder.

I know delete adobe media server old data(f4f, f4x) solve the problem, is there a way that adobe media server can renew the stream automatically?

Thanks very much.

This topic has been closed for replies.

1 reply

November 28, 2013

If you are not concerned with your .f4f fragments (storing them), then pass "&adbe-record-mode=record" string along with your rtmp stream ID. This will erase the entire /streams/<streamid> directory and re-publish.  However, jwplayer will receive an error.. For jwplayer to cycle automatically on error, just reload the same .m3u8 below with this error function when you load the jwplayer

jwplayer("hlsPlayer").onError(function(event) {
jwplayer('hlsPlayer').load({file: "http://example.com/hlslive/livepkgr/_definst_/liveevent/liveevent.m3u8",duration: "27"}
);
jwplayer('hlsPlayer').play()

              });

kakaleoAuthor
Participant
November 28, 2013

It works!Thx very much