• Resolved dmelha

    (@dmelha)


    To my surprise, this plugin do not work with mp4 files.

    Outside ‘private’-folder i can play my video
    Inside ‘private’-folder not
    File access using parameters also do not play: ?pucd-folder=private&pucd-file=xyz.mp4

    HEADER within private (not working):

    HTTP/1.1 200 Connection established
    Server: nginx
    Date: Mon, 25 Feb 2019 13:00:06 GMT
    Content-Type: video/mp4
    Transfer-Encoding: chunked
    Connection: keep-alive
    Vary: Accept-Encoding,Cookie
    Expires: Mon, 25 Feb 2019 14:00:06 GMT
    Last-Modified: Mon, 25 Feb 2019 12:55:28 GMT
    ETag: "c984ad2e8a54ce9270403fc66fe953cc"

    HEADER outside private (working)

    HTTP/1.1 200 Connection established
    Server: nginx
    Date: Mon, 25 Feb 2019 13:00:40 GMT
    Content-Type: video/mp4
    Content-Length: 383631
    Connection: keep-alive
    Last-Modified: Mon, 25 Feb 2019 12:55:35 GMT
    ETag: "5da8f-582b774dfbfc0"
    Accept-Ranges: bytes

    I added 2 lines after
    header(‘Content-type: ‘ . $mimetype); // always send this

    header('Content-Length: ' . filesize($path)); //NEW
    header('Accept-Ranges: bytes'); //NEW

    this do not help

    Firefox Error in private-folder:
    Error Code: NS_ERROR_DOM_MEDIA_METADATA_ERR (0x806e0006) Details: static MP4Metadata::ResultAndByteBuffer __cdecl mozilla::MP4Metadata::Metadata(mozilla::ByteStream *): Cannot parse metadata

    TEST-VIDEO MP4:
    https://techslides.com/sample-webm-ogg-and-mp4-video-files-for-html5

    PS: I use .htaccess – do not know why nginx is shown in header…
    ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dmelha

    (@dmelha)

    I found the problem. You should add this important notice to readme.

    I had a single theme file that was saved as UTF-8 WITH BOM.
    This UTF8-FILE add 3 extra bytes: EF BB BF
    So my file MP4-file was destroyed.
    Same happen to other files like JPG.
    But not to PDF

    Plugin Author Chris Dennis

    (@chrisdennis)

    I don’t have any problems with MP4 files in the private folder, so I think your issue must be related to the theme that you mentioned.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘mp4 file not working’ is closed to new replies.