Results 1 to 7 of 7

Thread: Connecting to application using RTMPT

  1. #1
    Join Date
    Jun 2012
    Posts
    19

    Default Connecting to application using RTMPT

    Hello,

    I'm facing some problems while trying to use RTMPT to connect to an application module. I've also noted that all requests to server was receiving the following response:

    <html><head><title>Wowza Media Server 3 Monthly Edition 3.1.1 build1479</title></head><body>Wowza Media Server 3 Monthly Edition 3.1.1 build1479</body></html>

    Due to this behavior I tried to disable the HTTPServerVersion provider from vhost without any success, but then with a zero length response. I'm getting not even a message in console output or log files.

    Do I need to do something else to connect to an application using RTMPT in the same way as it was working with RTMP? To try this I've just added the ",80" to Port tag on VHost.xml and switched the URL from "rtmp://192.168.0.176:1935/Audiocasting" to "rtmpt://192.168.0.176:80/Audiocasting".

    Thanks!

    Renato A. Ferreira
    Last edited by Renato@Voitel; 07-27-2012 at 02:40 PM.

  2. #2
    Join Date
    Jun 2012
    Posts
    19

    Default

    I will try to add some information.

    Debug information:
    DEBUG server comment - HTTPStreamerAdapterCupertinoStreamer.canHandle[fcs/ident2]: false
    INFO server comment - HTTPStreamerAdapterSanJoseStreamer.canHandle[fcs/ident2]: false
    INFO server comment - HTTPStreamerAdapterDvrChunkStreamer.canHandle[fcs/ident2]: false
    DEBUG server comment - HTTPStreamerAdapterCupertinoStreamer.canHandle[open/1]: false
    INFO server comment - HTTPStreamerAdapterSanJoseStreamer.canHandle[open/1]: false
    INFO server comment - HTTPStreamerAdapterDvrChunkStreamer.canHandle[open/1]: false
    DEBUG server comment - ServerHandler.handleSessionIdle: idleTimeout: 32
    (cupertino is a DEBUG, but the others are not)

    Network dump:
    00000000  50 4f 53 54 20 2f 66 63  73 2f 69 64 65 6e 74 32 POST /fc s/ident2
    00000010  20 48 54 54 50 2f 31 2e  31 0d 0a 43 6f 6e 74 65  HTTP/1. 1..Conte
    00000020  6e 74 2d 54 79 70 65 3a  20 61 70 70 6c 69 63 61 nt-Type:  applica
    00000030  74 69 6f 6e 2f 78 2d 66  63 73 0d 0a 55 73 65 72 tion/x-f cs..User
    00000040  2d 41 67 65 6e 74 3a 20  41 64 6f 62 65 20 46 6c -Agent:  Adobe Fl
    00000050  61 73 68 20 50 6c 61 79  65 72 20 31 31 2e 30 0d ash Play er 11.0.
    00000060  0a 48 6f 73 74 3a 20 31  39 32 2e 31 36 38 2e 30 .Host: 1 92.168.0
    00000070  2e 31 37 36 3a 31 39 33  35 0d 0a 43 6f 6e 74 65 .176:193 5..Conte
    00000080  6e 74 2d 4c 65 6e 67 74  68 3a 20 31 0d 0a 43 6f nt-Lengt h: 1..Co
    00000090  6e 6e 65 63 74 69 6f 6e  3a 20 4b 65 65 70 2d 41 nnection : Keep-A
    000000A0  6c 69 76 65 0d 0a 43 61  63 68 65 2d 43 6f 6e 74 live..Ca che-Cont
    000000B0  72 6f 6c 3a 20 6e 6f 2d  63 61 63 68 65 0d 0a 0d rol: no- cache...
    000000C0  0a 00                                            ..
        00000000  48 54 54 50 2f 31 2e 31  20 32 30 30 20 4f 4b 0d HTTP/1.1  200 OK.
        00000010  0a 43 6f 6e 74 65 6e 74  2d 54 79 70 65 3a 20 74 .Content -Type: t
        00000020  65 78 74 2f 68 74 6d 6c  0d 0a 43 6f 6e 6e 65 63 ext/html ..Connec
        00000030  74 69 6f 6e 3a 20 4b 65  65 70 2d 41 6c 69 76 65 tion: Ke ep-Alive
        00000040  0d 0a 53 65 72 76 65 72  3a 20 46 6c 61 73 68 43 ..Server : FlashC
        00000050  6f 6d 2f 33 2e 35 2e 37  0d 0a 43 61 63 68 65 2d om/3.5.7 ..Cache-
        00000060  43 6f 6e 74 72 6f 6c 3a  20 6e 6f 2d 63 61 63 68 Control:  no-cach
        00000070  65 0d 0a 43 6f 6e 74 65  6e 74 2d 4c 65 6e 67 74 e..Conte nt-Lengt
        00000080  68 3a 20 31 35 38 0d 0a  0d 0a                   h: 158.. ..
        0000008A  3c 68 74 6d 6c 3e 3c 68  65 61 64 3e 3c 74 69 74 <html><h ead><tit
        0000009A  6c 65 3e 57 6f 77 7a 61  20 4d 65 64 69 61 20 53 le>Wowza  Media S
        000000AA  65 72 76 65 72 20 33 20  4d 6f 6e 74 68 6c 79 20 erver 3  Monthly 
        000000BA  45 64 69 74 69 6f 6e 20  33 2e 31 2e 31 20 62 75 Edition  3.1.1 bu
        000000CA  69 6c 64 31 34 37 39 3c  2f 74 69 74 6c 65 3e 3c ild1479< /title><
        000000DA  2f 68 65 61 64 3e 3c 62  6f 64 79 3e 57 6f 77 7a /head><b ody>Wowz
        000000EA  61 20 4d 65 64 69 61 20  53 65 72 76 65 72 20 33 a Media  Server 3
        000000FA  20 4d 6f 6e 74 68 6c 79  20 45 64 69 74 69 6f 6e  Monthly  Edition
        0000010A  20 33 2e 31 2e 31 20 62  75 69 6c 64 31 34 37 39  3.1.1 b uild1479
        0000011A  3c 2f 62 6f 64 79 3e 3c  2f 68 74 6d 6c 3e       </body>< /html>
    000000C2  50 4f 53 54 20 2f 6f 70  65 6e 2f 31 20 48 54 54 POST /op en/1 HTT
    000000D2  50 2f 31 2e 31 0d 0a 43  6f 6e 74 65 6e 74 2d 54 P/1.1..C ontent-T
    000000E2  79 70 65 3a 20 61 70 70  6c 69 63 61 74 69 6f 6e ype: app lication
    000000F2  2f 78 2d 66 63 73 0d 0a  55 73 65 72 2d 41 67 65 /x-fcs.. User-Age
    00000102  6e 74 3a 20 41 64 6f 62  65 20 46 6c 61 73 68 20 nt: Adob e Flash 
    00000112  50 6c 61 79 65 72 20 31  31 2e 30 0d 0a 48 6f 73 Player 1 1.0..Hos
    00000122  74 3a 20 31 39 32 2e 31  36 38 2e 30 2e 31 37 36 t: 192.1 68.0.176
    00000132  3a 31 39 33 35 0d 0a 43  6f 6e 74 65 6e 74 2d 4c :1935..C ontent-L
    00000142  65 6e 67 74 68 3a 20 31  0d 0a 43 6f 6e 6e 65 63 ength: 1 ..Connec
    00000152  74 69 6f 6e 3a 20 4b 65  65 70 2d 41 6c 69 76 65 tion: Ke ep-Alive
    00000162  0d 0a 43 61 63 68 65 2d  43 6f 6e 74 72 6f 6c 3a ..Cache- Control:
    00000172  20 6e 6f 2d 63 61 63 68  65 0d 0a 0d 0a 00        no-cach e.....
        00000128  48 54 54 50 2f 31 2e 31  20 32 30 30 20 4f 4b 0d HTTP/1.1  200 OK.
        00000138  0a 43 6f 6e 74 65 6e 74  2d 54 79 70 65 3a 20 74 .Content -Type: t
        00000148  65 78 74 2f 68 74 6d 6c  0d 0a 43 6f 6e 6e 65 63 ext/html ..Connec
        00000158  74 69 6f 6e 3a 20 4b 65  65 70 2d 41 6c 69 76 65 tion: Ke ep-Alive
        00000168  0d 0a 53 65 72 76 65 72  3a 20 46 6c 61 73 68 43 ..Server : FlashC
        00000178  6f 6d 2f 33 2e 35 2e 37  0d 0a 43 61 63 68 65 2d om/3.5.7 ..Cache-
        00000188  43 6f 6e 74 72 6f 6c 3a  20 6e 6f 2d 63 61 63 68 Control:  no-cach
        00000198  65 0d 0a 43 6f 6e 74 65  6e 74 2d 4c 65 6e 67 74 e..Conte nt-Lengt
        000001A8  68 3a 20 31 35 38 0d 0a  0d 0a                   h: 158.. ..
        000001B2  3c 68 74 6d 6c 3e 3c 68  65 61 64 3e 3c 74 69 74 <html><h ead><tit
        000001C2  6c 65 3e 57 6f 77 7a 61  20 4d 65 64 69 61 20 53 le>Wowza  Media S
        000001D2  65 72 76 65 72 20 33 20  4d 6f 6e 74 68 6c 79 20 erver 3  Monthly 
        000001E2  45 64 69 74 69 6f 6e 20  33 2e 31 2e 31 20 62 75 Edition  3.1.1 bu
        000001F2  69 6c 64 31 34 37 39 3c  2f 74 69 74 6c 65 3e 3c ild1479< /title><
        00000202  2f 68 65 61 64 3e 3c 62  6f 64 79 3e 57 6f 77 7a /head><b ody>Wowz
        00000212  61 20 4d 65 64 69 61 20  53 65 72 76 65 72 20 33 a Media  Server 3
        00000222  20 4d 6f 6e 74 68 6c 79  20 45 64 69 74 69 6f 6e  Monthly  Edition
        00000232  20 33 2e 31 2e 31 20 62  75 69 6c 64 31 34 37 39  3.1.1 b uild1479
        00000242  3c 2f 62 6f 64 79 3e 3c  2f 68 74 6d 6c 3e       </body>< /html>

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

    Default

    Connecting with RTMPT requires a Flash client, and does not involve the HTTPProviders that are loaded by VHost.xml like the one that returns Wowza version. You can use the Wowza examples to test.

    What you do have to do in VHOst.xml for the url you are using, is add port 80 to the top /HostPort /Port. Change <Port>1935</Port> to <Port>1935, 80</Port>, then restart Wowza. You cannot have a web server using the same IpAddress:Port. Check the startup lines in the access log to be sure that Wowza was able to bind to port 80.

    Is a live audio stream? Is it RTMP or Shoutcast?

    For live stream, use this example:
    /examples/LiveVideoStreaming/client/simplevideostreaming.html

    Server: rtmpt://192.168.0.176:80/Audiocasting
    Stream: yourAudioStream

    Richard

  4. #4
    Join Date
    Jun 2012
    Posts
    19

    Default

    Richard, it's not a live stream (at least not only it), but a conference room application that controls a set of client components and multiple audio streams. I had already got everything done and working well with RTMP, but a proxy bypass ability is very important to this project. I'm trying Wowza as an option for migrating from Adobe LCCS.

    I tried to simulate this behavior with the TextChat application from Wowza's examples and I confirmed that it really happens. I noted that when I'm using flash player 11.0 the Wowza Media Server replies to me with the HTTPServerVersion provider, but when I'm using earlier versions (tested with 11.1, 11.2 and 11.3) everything works very well. I had done some analysis to find differences between these versions and the only one I found is the User-Agent in HTTP header. While the 11.0 sends 'Adobe Flash Player 11.0', the other ones send 'Shockwave Flash'.

    Does Wowza use the User-Agent to decide how to process the request? Do you know any way to change this behavior?

    Thanks!

    Renato A. Ferreira

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

    Default

    Renato,

    I'm not sure what you mean. How does the Wowza textchat example show the Wowza version and build number? You can always see Wowza version and build in a browser like this:
    http://[wowza-address]:1935

    What do you mean by proxy bypass? You cannot proxy an rtmp stream, I don't think rtmpt either.

    Richard

  6. #6
    Join Date
    Jun 2012
    Posts
    19

    Default

    Richard, RTMPT is a HTTP encapsulation, then it does work through HTTP proxies. While RPMT requires NAT, what is a problem due to comporate users usually does not have a NAT connection.

    I noted that Wowza tries to determine how to process a HTTP request by its given User-Agent from HTTP headers. Once the User-Agent information points to a flash client, Wowza process the request as a RTMPT one, otherwise a HTTP provider is used.

    But OK, once I understood this behavior I was able to understand how to use the UserAgents tag in Server.xml. Everything is working now.

    Thanks!

    Renato A. Ferreira

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

    Default

    Renato,

    Yes, I think that's right: rtmpt can be proxied. Sorry.

    Glad you got it working. Thanks for the update

    Richard

Similar Threads

  1. Iphone not connecting as first player
    By w.pope in forum Live Streaming and Encoder Discussion
    Replies: 2
    Last Post: 10-25-2011, 05:11 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
  •