Results 1 to 6 of 6

Thread: Possible to map top-level requests to an streaming application?

  1. #1

    Question Possible to map top-level requests to an streaming application?

    Howdy folks,

    I am wondering if it is possible to map top-level requests to a vhost to a specific application?

    In particular, I'd like to be able to tell users to access files via a URL like this:

    ${HOSTNAME}:${PORT}/mp4:sample.mp4

    Where ${HOSTNAME} is the address a Wowza vhost is listening on.

    It doesn't look like this is possible, but I am perhaps wrong.

    Thanks!
    --
    Morgan Hamill

  2. #2
    Join Date
    Jun 2012
    Posts
    723

    Default

    Hi,

    It is possible to create an application called "_defapp_" which would be the default application that would be used when no application name is specified.

    In this case, you could then reference the VODs using a streaming URL like you have mentioned in your previous post.
    For example, and Apple HLS stream would looks something like this:
    http://WowzaIP:1935/mp4:sample.mp4/playlist.m3u8
    Zoran

  3. #3

    Default

    I'm not having much luck with this; a few questions.

    Where should the configuration file for _defapp_ go? conf/_defapp_/Application.xml?
    What should the name of the sharedobjects folder be under applications/?

    Help would be appreciated.
    --
    Morgan Hamill

  4. #4
    Join Date
    Jun 2012
    Posts
    723

    Default

    Yes, you will need to create a "_defapp_" folder, containing your Application.xml file, in your conf/ directory and also a "_defapp_" folder in the applications/ directory.
    Don't forget to restart your Wowza server after making the changes.

    Zoran

  5. #5

    Default

    Hmm, this doesn't seem to be working for me.

    I've done as you said, and then tried this url:

    rtmp://wowza_ip:port/mp4:path/to/file.mp4

    And I get this in the logs:

    Application folder ([install-location]/applications/mp4:) is missing

    Not sure what I'm missing.

  6. #6

    Default

    If your trying to access a file in the /content directory you do not need a path to file.

    The URL would be:
    rtmp://WowzaIP:1935/mp4:sample.mp4
    If the file is in a sub folder of content you will need to use _definst_ in the URL:
    rtmp://WowzaIP:1935/_definst_/mp4:sample.mp4
    Hope this helps.

    Salvadore

Posting Permissions

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