Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: How to get Client User Agent

  1. #1

    Default How to get Client User Agent

    There is IClient.getPageUrl() method and I wonder if there is something like IClient.getPageUserAgent() to get user agent of client that loaded the player. Is someone has answerfor this?

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

    Default

    Use IClient.getFlashVer()

    Richard

  3. #3

    Default

    I think it returns Flash version and I want user-agent of the page th player is embed in.

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

    Default

    I'm not sure if that is possible server-side in a Wowza module. You can get the URL like this:

    String pageUrl = client.getProperties().getPropertyStr("connectpageUrl")
    You should be able to get the HTML container's user agent client-side in Flash

    Richard

  5. #5

    Default

    I'm not sure too, but Wowza has IClient.getPageUrl() method, so they think that it is possible.

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

    Default

    This came to the top of search:

    http://www.apl.jhu.edu/~hall/java/Se...t-Headers.html

    Richard

  7. #7

    Default

    I know about HTTP headers, but in wowza you sometimes stream http, sometimes rtmp and other protocols. I don't know, whether flash players send to server user agent of the page they are embedded in and how to get it from wowza API.

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

    Default

    I've showed you how to get the HTML container of the Flash application, you should be able to get the userAgent of that page. I have also showed you how to get the user agent of the Flash application, the swf. I'm not sure what else to suggest.

    Richard

  9. #9

    Default

    Sory, I missed the end of your message and thought that getProperties() just returns client configuration. Thank you for help.

  10. #10

    Default

    I made a test with client.getProperties().getAllAsStrings() and I see that is dosen't had something like 'connectPageUserAgent'. Is it normal, or I should see something?

Page 1 of 2 12 LastLast

Similar Threads

  1. FMLE client user-agent?
    By astudios in forum GoCoder iOS app
    Replies: 14
    Last Post: 08-25-2014, 11:27 AM

Posting Permissions

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