Skip to main content
May 11, 2012
Question

SSAS app publish live streaming to iOS device

  • May 11, 2012
  • 1 reply
  • 2654 views

Hi,

I'm writing a SSAS application, publish live streaming to clients by RTMP protocols (eg. rtmp://localhost/toPublish/myvodfile,  myvodfile is Stream name).  And  I'm using some flash player as Jwplayer or OSFM connect my rtmp link, it good.

How do iOS device can view this live streaming ?

    This topic has been closed for replies.

    1 reply

    Adobe Employee
    May 12, 2012

    So if i get you right what you are doing is publishing a VOD asset as live stream - am i right and now you want the same "live publishing" to be available for iOS - right?

    I am not sure how are you doing the publish of VOD asset whether you are using Stream.play or using NetStream and publishing it to different application. Basically you can use both of the option but with some changes

    If you are using Stream.play method of doing things - you need to create Stream object with f4f prefix and also record the stream.

    If you are using second method of Multi-point publish of using Server-side NetStreams - just go ahead and publish to "livepkgr" application.

    Now coming to second part once recording part is done (recording part achived in above step would give on the disk f4f and other releated files). Now you need to have bundled Apache installed with you and you can "hls-live" module of Apache to get iOS Streaming done. Once you confirm your recording is working fine and i am assuming for simplicity sake you are using second option and publishing to "livepkgr"  - just use this URL "http://<server-ip>/hls-live/livepkgr/_definst_/<eventname>/<streamname>.m3u8 (since you would not be giving event name while publishing your <eventname> would be same as <eventname>

    Sorry i have written bit in hurry - plesae try out as you understand and feel free to put follow up queries.

    May 21, 2012

    Hi SE_0208,

    Thanks your reply. You right, I have an application "MP4PublishonLoad"

    In MP4PublishonLoad, I using stream.play and publish to client over RTMP. But it not support iOS device.

    I was try multi-point publish from MP4PublishonLoad to livepkgr. It seem to be working fine.

        myStream = Stream.get("myvodfile");

        myStream.play("mp4:sample.mp4", 0, -1, true);

        nc = new NetConnection();

        nc.connect("rtmp://localhost/livepkgr");

        ns = new NetStream(nc);

        ns.attach(myStream);

        ns.publish("livestream?adbe-live-event=liveevent", "live");

    But when MP4PublishonLoad has event stream.play("mp4:sample.mp4", 0, -1, true), I want play other video immedialty, then livepkgr crash, show NetStream.Record.NoAccess and Stop in logs, can't received data transfer from MP4PublishonLoad.


    How do I fix it ?


    Adobe Employee
    May 21, 2012

    Are all your files same - i mean do they have same codec combination?