Results 1 to 6 of 6

Thread: Trying to authenticate, only onStreamCreate is fired?

  1. #1

    Question Trying to authenticate, only onStreamCreate is fired?

    I'm looking at the examples to require authentication per stream, and I can't find one that fits. Using the most basic module example with all events added, this is what I see when I request a stream:

    onConnectAccept: 1
    onStreamCreate: 283224380
    onStreamDestroy: 1
    onDisconnect: 283224380

    No onHTTP* or onRTPSessionCreate. As players I've tried the SimpleVideoStreaming example and a custom osmf-based one. Am I missing something? Should one of the HTTP events fire? Or can I do authentication in onStreamCreate?

    Here's the guides I've found, with what even is fired, type of player and url. None matches my log above:

    onHTTPCupertinoStreamingSessionCreate, iOS, http://www.wowza.com/forums/content....-an-iOS-stream
    onHTTPSessionCreate, iOS/Silverlight/Flash HTTP, http://www.wowza.com/forums/content....-and-San-Jose)
    onHTTPSanJoseStreamingSessionCreate, Flash HTTP, http://www.wowza.com/forums/content....h-HTTP)-stream
    onHTTPSmoothStreamingSessionCreate, Silverlight, http://www.wowza.com/forums/content....reaming-stream
    onRTPSessionCreate, RTSP/RTP, http://www.wowza.com/forums/content....TSP-RTP-stream

    Cheers,
    Magnus

  2. #2
    Join Date
    Sep 2011
    Posts
    1,933

    Default

    Hi
    The onHTTPSessionCreate should work for all of the HLS connections.

    Can you publish the code so that we can take a look at it, see if we can spot any issues or typo's etc..
    If you feel that you don't want to post the code publicly on the forum I'm afraid you will have to get a consultant to take a look at it.

    You can get the independent consultants list by email, send your request to support@wowza.com

    Jason

  3. #3

    Default

    Hi Jason,

    I haven't written any code yet. I've followed the basic guide in the IDE User Guide, ticket all boxes for creating the methods, added the module to the Application.xml and fired up a stream. I then connect to it with two different flash players and see the 4 mentioned events.

    I'm just trying to figure out what events are fired when at this point, before starting to code.

    Magnus

  4. #4

    Default

    OK, after testing more players it's quite clear that it's only the rtmp-streams that do not fire a onHTTPSessionCreate, should have figured that one out...

    But question then becomes, is there an event fired for this that can be used for authentication? Can I get the equivalent of queryStr, useragent and IP in onStreamCreate?

    Magnus

  5. #5
    Join Date
    Sep 2011
    Posts
    1,933

    Default

    Hi
    You can do this through "onConnect" or "play" for the rtmp connections.
    You may not be logging them yet looking at the 4 that you have, onConnect is called before onConnectAccept.

    Jason

  6. #6
    Join Date
    Dec 2007
    Posts
    21,962

Similar Threads

  1. call onStreamCreate only once
    By karelboek in forum Live Streaming and Encoder Discussion
    Replies: 2
    Last Post: 07-19-2013, 05:38 AM
  2. Replies: 8
    Last Post: 08-01-2012, 02:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •