Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4138

ZK Audio component use source URL for content type recognition instead of Content-Type HTTP header.

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 8.6.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      ZK 8.6.0, WIndows 10, 64 bit, Opera browser

      Description

      ZK Audio component use source URL for content type recognition instead of Content-Type HTTP header.

      Steps to reproduce:
      1. Set audio tag src="http://localhost/rest/stream/"
      2. Create web service returning for REST GET /rest/stream:

      HTTP/1.1 206
      Accept-Ranges: bytes
      Content-Range: bytes 0-8044543/10266064
      Last-Modified: Sat, 17 Nov 2018 21:29:04 GMT
      Content-Type: audio/mpeg
      Content-Length: 8044544
      Date: Sat, 17 Nov 2018 21:29:06 GMT
      

      3. Open zul with such video tag in browser.

      Actual result:
      video tag set type="audio/wav". audio is not playing

      Expected result:
      video tag should set type="audio/mpeg"

        Activity

        Hide
        vadymvikulin vadymvikulin added a comment -

        Workaround: add to src URL #any.mp3. This part of URL makes audio component to recognize the content type correctly.

        Show
        vadymvikulin vadymvikulin added a comment - Workaround : add to src URL #any.mp3. This part of URL makes audio component to recognize the content type correctly.

          People

          • Assignee:
            Unassigned
            Reporter:
            vadymvikulin vadymvikulin
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: