Coder Social home page Coder Social logo

cdowdy / bolt-html5-video Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 5.0 4.12 MB

Bolt Extension that adds a field for local HTML5 video

License: MIT License

PHP 45.73% HTML 30.45% JavaScript 23.82%
html5-video video-files bolt-extension video-attributes upload-videos bolt-cms bolt-html5-videos

bolt-html5-video's People

Contributors

cdowdy avatar rixbeck avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

bolt-html5-video's Issues

Bolt strips attributes not found in config

For some reason bolt updated and will now strip attributes not found in the "allowed_attributes" config settings when you use this extension in a contenttypes field (html etc) .

This worked for the entirety of the Bolt 3.x until recently (3.2.14 I noticed it first).

tags removed are:

  • video
  • source
  • type
  • controls
  • preload
  • poster
  • muted
  • loop
  • playsinline
  • tracks
  • srclang
  • default
  • kind
  • label

Essentially they pushed an update, didn't tell anyone what it was doing and broke this haha.. but it's an easy fix. You have to add these to your bolt config htmlcleaner -> allowedtags and allowed_attributes

Make video preview use ajax

would be nice to have the video you chose show immediately and not have to rely on a save and page reload.

but...

bolt has no documented way to do back-end extensions. No way to easily tie into bolt's back-end javascript. I've been bitten more than once with how they change things in template usage in minor version changes that break this extension and others I've built.

I also don't have time to go foraging through their JS and build a jquery UI widget that ties into theirs (which would change in undocumented ways by bolt core members again in minor version changes and I'd be back at square one)

So this is here so I don't forget to eventually do it

No Longer Maintained

see bolt/bolt#7483

that gets fixed/updated or bolt developers decide that hey people wanting to fix your undocumented usage of something is something they'll like I'll return to maintaining this.

As of right now if you're not a core developer of bolt good luck having any input.

invalid column video

bolt3.5.5
video:
type: h5video
After setting contenttypes, the warning is always displayed:
The database needs to be updated/repaired. Go to 'Configuration' > 'Check Database' to do this now.
Table entries is not the correct schema: invalid column video

config isn't created on install

from bolt's extend screen and installing the version you want the config button isn't show and the config isn't created in app/config/extensions.

The extension isn't used until the twig callback function is used. So you have to call this->getConfig in the callback function.

file path problem

Hi,

i cannot get the extension to work. Whatever i do,

  • uploading through the records upload function and using "filelist" in datatype
  • uploading through bolts file upload and using "file" in datatype

the extension ends up adding a video block with a path like this:
<source src="//files.mp4" type="video/mp4">
(and webm respectively).

this is unrelated to the way the file is uploaded, the extension simply does not seem to reference the filename correctly. or - very probably - i am doing something wrong.

in any case, help would be appreciated.

Video Poster Preview no longer working

an update to how bolt handles the file system paths changed. The preview post of the default 404 image no longer shows...

this is for 3.4.6+ I assume since I have tested is before 3.4.6

Save Data Javascript file is not served to the browser

with save_data as true and using the chrome save data extension the save data file isn't served to the browser.

The check for save data isn't picking up the merged options and isnt there in the check for addAssets

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.