Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.11 KB

File metadata and controls

27 lines (19 loc) · 1.11 KB

clappr-based-turboplayer

Clumsy implementation of Clappr video player for turbostream or awesome theater night.

embed to wordpress

  1. Follow instructions in html file.
  2. Remove the body{...} from css file.
  3. Fill in elements for 'vsrc' in js file.

To Do:

  1. Somehow obscure sources, at the moment they are in plain view.
  2. Ping feature to select best video source on load. Simple Promise Implementation by Doug Turnbull is promising.
  3. Stuff...

regex explanation:

(?:^|\s) # match the start of the string, or any single whitespace character

MyClass  # the literal text for the classname to remove

(?!\S)   # negative lookahead to verify the above is the whole classname
         # ensures there is no non-space character following
         # (i.e. must be end of string or a space)

Solution by Peter Boughton at Change an element's class with JavaScript