Welcome Guest, Not a member yet? Register   Sign In
MP4 Formatter
#1

I am trying to playback HTML5 video using very basic HTML5 <video> tag via controller, but C4 seems to be blocking playback.  Appears to be looking for an MP4Formatter.  Started out using video.js and thought the player was at fault but since then I've tried others and resorted to plain html5.  Nothing plays.  Not sure how to overcome this one. Been driving me crazy. 

Also tried placing the basic html code at the top of the FCPATH/index.php before C4 actually initiates, but same result.  So, I suspected Apache and added mime type to .htaccess as follows:


<IfModule mod_mime.c>
    AddCharset utf-8 .atom .css .js .json .rss .vtt .xml .mp4
    AddType video/mp4 .mp4
</IfModule>

No joy.


Here is html:

<video width="320" height="240" controls>
  <source src="video/video.mp4" type="video/mp4">
</video>

Here's the error log:

CRITICAL - 2018-08-07 16:51:41 --> Uncaught InvalidArgumentException: No Formatter defined for mime type:  in D:\devserver\sites\www\web\app_my.domain.org\Config\Format.php:60
Stack trace:
#0 D:\devserver\sites\www\web\system\API\ResponseTrait.php(357): Config\Format->getFormatter('')
#1 D:\devserver\sites\www\web\system\API\ResponseTrait.php(120): CodeIgniter\Debug\Exceptions->format(Array)
#2 D:\devserver\sites\www\web\system\Debug\Exceptions.php(148): CodeIgniter\Debug\Exceptions->respond(Array, 404)
#3 [internal function]: CodeIgniter\Debug\Exceptions->exceptionHandler(Object(CodeIgniter\Exceptions\PageNotFoundException))
#4 {main}
  thrown
#0 [internal function]: CodeIgniter\Debug\Exceptions->shutdownHandler()
#1 {main}

Anyone have any suggestions?  Thanks.
Reply


Messages In This Thread
MP4 Formatter - by Msobomvu - 08-07-2018, 09:34 AM
RE: MP4 Formatter - by kilishan - 08-07-2018, 09:46 AM
RE: MP4 Formatter - by InsiteFX - 08-07-2018, 03:47 PM
RE: MP4 Formatter - by Msobomvu - 08-08-2018, 02:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB