Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6160

Missing type for MediaComponent causing iOS devices not to be able to play videos

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.2.0, 8.0.0
    • Fix Version/s: 8.0.0-M1, 7.4.0
    • Component/s: wicket, wicket-examples
    • Labels:
      None

      Description

      Because of a missing option to set the type for MediaComponents - Video / Audio can't be played on iOS devices.

      If you want to enable it with the Wicket 7.2.0 you have to override the onComponentTag method:

      	@Override
      	protected void onComponentTag(ComponentTag tag)
      	{
      		super.onComponentTag(tag);
                      tag.put("type", "video/mp4");
      	}
      

      See Table 10-1 File name extensions for MIME types:

      https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariWebContent/CreatingVideoforSafarioniPhone/CreatingVideoforSafarioniPhone.html#//apple_ref/doc/uid/TP40006514-SW6

      I used remote debugging of iOS Safari / Mac OS X to check if all videos are playing, now.

      http://moduscreate.com/enable-remote-web-inspector-in-ios-6/ (for iOS 9 very similar)

        Attachments

          Activity

            People

            • Assignee:
              klopfdreh Tobias Soloschenko
              Reporter:
              klopfdreh Tobias Soloschenko
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: