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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 7.2.0, 8.0.0
    • 8.0.0-M1, 7.4.0
    • wicket, wicket-examples
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: