Dear Charles
thanks for your input, but still that is not exact solution.
Perhaps i have figured it out, here is solution details
Might save some one's time
1. Make server side playlist and play at serverside
2. Once the video is playing at server level, publish that playing stream to livepkgr
3. Once the stream is published to livepkgr, FMS automatic creats HLS as LIVE stream
4. This is how you can publish RTMP to HLS
Code:-
///First make server side playlist
application.cleintStream = Stream.get("streamName");
application.cleintStream.play("mp4:folder/video1.mp4" , 0 , -1 , true);
application.cleintStream.play("mp4:folder/video2.mp4", 0 , -1, false);
application.cleintStream.play("mp4:folder/video3.mp4", 0 , -1, false);
/// now connect to LIVEPKGR than attached n publish that stream to LIVEPKGR
application.nc = new NetConnection();
application.nc.connect( "rtmp://localhost:1935/livepkgr" );
application.nc.onStatus = function(info) {
trace(info.code+" livepkgr");
if(info.code == "NetConnection.Connect.Success"){
application.ns = new NetStream(application.nc);
application.ns.setBufferTime(3);
application.ns.attach(application.cleintStream);
application.ns.publish(application.cleintStream.name,"live");
}
}
/// once you are done with this, its pretty easy and simple to make HLS output(m3u8)
Few key points to note:-
need to edit [Event.xml] under fms-installed-folder\applications\livepkgr\events\_definst_\streamName
<EventID>streamName</EventID>
Validate IF stream is getting published
streamName folder should be created under fms-installed-folder\applications\livepkgr\streams\_definst_\
So final out put of HLS stream should look like this [ http://localhost/hls-live/livepkgr/_definst_/streamName/streamName.m3u8 ]
Hope this will save some one else time.
Note I have done this with AMS-5
Cheers 