jgh- / VideoCore-Inactive

*No longer in development* Please see https://github.com/unpause-live/SwiftVideo
MIT License
1.48k stars 538 forks source link

Wowza publish stream with VideoCore #319

Closed MurphyHBrantley closed 8 years ago

MurphyHBrantley commented 8 years ago

I am trying to publish a video stream to my Wowza Streaming Engine, but I receive the message: NetStream.Publish.Denied

These are two of the ways I have attempted to publish this stream, but I always get the same error (NetStream.Publish.Denied).

1) [_session startRtmpSessionWithURL: @"rtmp://username:password@ec2-xx-xxx-xxx-xx.compute-1.amaz‌​onaws.com/MyStreamName" andStreamKey:@"myStream"];

2) [_session startRtmpSessionWithURL: @"rtmp://ec2-xx-xxx-xxx-xx.compute-1.amazonaws.com/MyStr‌​eamName" andStreamKey:@"myStream"];

Has anyone successfully published a video stream to Wowza using this library? If so, could you please share the correct way to format the url or what else needs to be done to successfully publish the stream to your Wowza Streaming Engine?

*Note: I am using Wowza Streaming Engine with AWS Cloudfront for video streaming.

MurphyHBrantley commented 8 years ago

I solved my problem by turning the password off on the wowza server settings and using this:

[_session startRtmpSessionWithURL: @"rtmp://ec2-xx-xxx-xxx-xx.compute-1.amazonaws.com/MyStr‌​eamName" andStreamKey:@"myStream"];

But I have yet to figure out how to add username/password to the url to be able to stream.