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

        Migration made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Ted Goddard made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.1 Beta [ 10320 ]
        Resolution Fixed [ 1 ]
        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.
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #26710 Fri Dec 02 09:47:08 MST 2011 ted.goddard ensure tablets are detected after sniffAndroid change (MOBI-124)
        Files Changed
        Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/component/utils/Utils.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #26705 Fri Dec 02 09:22:24 MST 2011 ted.goddard detecting android phones and tablets in sniffAndroid (MOBI-124)
        Files Changed
        Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/component/utils/UserAgentInfo.java
        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(); } }
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #26693 Thu Dec 01 14:41:14 MST 2011 ted.goddard removed unused context parameter on isIOS5 (MOBI-124)
        Files Changed
        Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/component/timespinner/TimeSpinnerRenderer.java
        Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/component/datespinner/DateSpinnerRenderer.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #26692 Thu Dec 01 14:34:18 MST 2011 ted.goddard append jsessionid for Android dynamic resource URLs (MOBI-124)
        Files Changed
        Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/component/utils/Utils.java
        Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/renderkit/BaseResourceRenderer.java
        Steve Maryka made changes -
        Field Original Value New Value
        Assignee Steve Maryka [ steve.maryka ] Patrick Corless [ patrick.corless ]
        Steve Maryka created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved: