Coder Social home page Coder Social logo

ronik-design / react-drive-in Goto Github PK

View Code? Open in Web Editor NEW
60.0 60.0 22.0 50.38 MB

A wicked awesome React component replacement for BigVideo.js that is lighter with fewer dependencies.

License: ISC License

HTML 34.56% JavaScript 34.96% CSS 30.48%

react-drive-in's People

Contributors

dchapman avatar john4 avatar kyleamathews avatar mcat avatar mshick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-drive-in's Issues

Video displaying in front of elements

I'm trying to render the component along with a few others on a page, however, for the life of me I can't figure out how to display the other components in front of the video. Each time I try, the component loads and it blocks the others.

For lack of a better term, is there a way to 'send video to back' (nest components inside so that they appear over the video)?

Cannot read firstChild of undefined

Another console error:
Uncaught TypeError: Cannot read property 'firstChild' of undefined

/**
   * Finds a node with the supplied `targetID` inside of the supplied
   * `ancestorNode`.  Exploits the ID naming scheme to perform the search
   * quickly.
   *
   * @param {DOMEventTarget} ancestorNode Search from this root.
   * @pararm {string} targetID ID of the DOM representation of the component.
   * @return {DOMEventTarget} DOM node with the supplied `targetID`.
   * @internal
   */
  findComponentRoot: function(ancestorNode, targetID) {
    var firstChildren = findComponentRootReusableArray;
    var childIndex = 0;

    var deepestAncestor = findDeepestCachedAncestor(targetID) || ancestorNode;

    firstChildren[0] = deepestAncestor.firstChild; /** --------- here be the error -------- **/
    firstChildren.length = 1;

    while (childIndex < firstChildren.length) {
      var child = firstChildren[childIndex++];
      var targetChild;

Video not playing

For some reason my video isn't playing. I can see my poster and verified the onPlaying method is called but I do not see or hear any video. No errors being reported in the console either.

I'm just testing with the glacier video from the example folder.

I am using React v.0.14 and react-router v1.0

Invalid Prop Warning

Getting this console error:
Warning: Invalid prop duration of type string supplied to DriveIn, expected number.

Add quality options

Would be nice to be able to specify multiple asset qualities for use at different window sizes.

update to React 15.3.2?

I'm running into issues when deploying on a production server (although seems to work locally). Is there anyway you can update this to 15.3.2?

How does one implement this with a Browserify workflow?

Hi there, I'm having issues including this react component using Browserify. Can you point me in the right direction?

let
  React = require('react'),
  DriveIn = require('react-drive-in'),

  FillParentVideo = React.createClass({
    render(){
      return (
        <DriveIn
        show="http://raw.githubusercontent.com/ronik-design/react-drive-in/master/example/glacier.mp4"
        poster="http://raw.githubusercontent.com/ronik-design/react-drive-in/master/example/glacier.jpg"
        />
      );
    }
  });

module.exports = FillParentVideo;

The error I get is:
Uncaught TypeError: Cannot read property 'Component' of undefined which makes sense because I'm missing the $mountNode target, but how do I insert this at the tag level and have $mountNode equal whatever div I just threw this in?

Loading indicator / events

  • The lib should emit some events for loading progress
  • The component should render some DOM for you with default styles

Doesn't work on iOS?

I know mobile browsers don't do autoplay, but even when clicking play/pause there is no background video on iPad.

Is that even possible?

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.