Skip to main content
pleqtron
Inspiring
May 20, 2015
Answered

How to change main.far for Livepkgr application

  • May 20, 2015
  • 2 replies
  • 1530 views

Hej, we are currently trying to realize mobile webstreams for our customers. So far I realized a scenario, where my custom cam application connects to the livepkgr application as well, which starts recording the stream and publish HLS video files. What we are doing in our main application (flash based player), are some billing intervals, checkins against database and so on. So in my understanding, we have to implement some of these needed functions in the livepkgr application as well, because the client will directly call the mobile stream url, without any flash. So there will be no communication to our custom application at all, am I right? So I´ve tried to simply replace the main.far with a customized main.asc (unpacked the archive before to get the original main.asc). But now, when I want to test the scenario again, the connection is rejected by the livepkgr application. It say´s that the main.asc ist not signed. Is there any way to archive this? Or would it be enough to extend my existing application (main.asc) in the way the livepkgr Application records the streams to not use two applications for desktop / mobile outputs? Any help would be really appreciated! Thanks in advance, Patrick

This topic has been closed for replies.
Correct answer pleqtron

For anybody who will have the same issue (info: you dont find any information on that).

The by default deployed livepkgr ist signed by Adobe. You have to copy the sample/livepkgr as you new application where you can edit the main.asc as everytime.

Adobe: Please provide some of these information in your documentations!

2 replies

pleqtron
pleqtronAuthorCorrect answer
Inspiring
May 27, 2015

For anybody who will have the same issue (info: you dont find any information on that).

The by default deployed livepkgr ist signed by Adobe. You have to copy the sample/livepkgr as you new application where you can edit the main.asc as everytime.

Adobe: Please provide some of these information in your documentations!

Participating Frequently
May 21, 2015

It is a zip file. Rename to zip, extract main.asc file and use it by removing main.far.

You can also extend your custom app with HLS feature from livepkgr app.

pleqtron
pleqtronAuthor
Inspiring
May 21, 2015

Hej Stan, thanks for your reply. Actually thats what I tried. But it does not work. Always says that it has to be signed. However when we copy the Sample/Livepkgr Application, a main.asc automatically is provided. So this works!

What are the steps to provide HLS Feature to my custom application? Am I right that I only have to do the recording? I tested it like this:

  1.      var s = Stream.get("f4f:" + streamObj.name);
  2.      s.liveEvent = "paddelive1";
  3.      var recordMode = "record"; // nicht appenden! damit immer das aktuelle bild nur übertragen wird
  4.     if(!s.record(recordMode))
  5.     {
  6.         s.trace("record failed.");
  7.     }
  8.   
  9.     s.play("live"+client.amateurid,-1,-1);


Actually a event is raised on the server, but there a no meta data provided in the streams folder (compared to my livepkgr tests). Any tips?


Thanks in advance

Participating Frequently
May 21, 2015

1. You can put metadata by yourself {appName}\events\_definst_\paddelive1\Event.xml. Copy from livepckgr. No need to put Metadata.xml. But I think that's optional.

2. As HLS stream will show your rtmp stream, then need to write s.play(streamObj.name,-1,-1); If you want to change HLS stream name - change it in Stream.get("f4f:" + "some-hls-stream-name");

3. I found FMS live HLS packaging very frustrating . Or HLS very frustrating... Also audio not supported. RTMP passes Speex and HLS requires AAC.