ICEmobile
  1. ICEmobile
  2. MOBI-124

Media conversion needed in mobile showcase

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0 Beta
    • Fix Version/s: 1.1 Beta
    • Component/s: None
    • Labels:
      None
    • Environment:
      ICEmobile

      Description

      Media capture examples in mobile showcase need media conversion so the playback will work.

        Activity

        Hide
        Ted Goddard added a comment -

        Media conversion is not necessary in all cases:

        Essentially, Android (both the stock browser and our container) does not request
        audio files within the session, so application-scope resources must be used. Here
        is a sample GET request:

        GET /mobileshowcase/javax.faces.resource/585e86f1-2de9-4e3e-b284-2d98c171d78c.jsf HTTP/1.1
        Host: tetra.ice
        User-Agent: stagefright/1.1 (Linux;Android 2.3.6)

        (I guess stagefright is the "browser" dedicated to media playback that is fetching
        the audio clip.)

        The most general solution is to include the JSESSIONID in the URL.

        if (Utils.isAndroid()) {
        HttpSession session = (HttpSession) facesContext
        .getExternalContext().getSession(false);
        if (null != session)

        { registeredPath += ";jsessionid=" + session.getId(); }

        }

        Show
        Ted Goddard added a comment - Media conversion is not necessary in all cases: Essentially, Android (both the stock browser and our container) does not request audio files within the session, so application-scope resources must be used. Here is a sample GET request: GET /mobileshowcase/javax.faces.resource/585e86f1-2de9-4e3e-b284-2d98c171d78c.jsf HTTP/1.1 Host: tetra.ice User-Agent: stagefright/1.1 (Linux;Android 2.3.6) (I guess stagefright is the "browser" dedicated to media playback that is fetching the audio clip.) The most general solution is to include the JSESSIONID in the URL. if (Utils.isAndroid()) { HttpSession session = (HttpSession) facesContext .getExternalContext().getSession(false); if (null != session) { registeredPath += ";jsessionid=" + session.getId(); } }
        Hide
        Ted Goddard added a comment -

        Media conversion scripts are now in place.

        Show
        Ted Goddard added a comment - Media conversion scripts are now in place.

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Steve Maryka
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: