0.0.2 • Published 6 years ago

react-genoa-player v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

React Genoa Player

Start

npm i --save react-genoa-player

How to use

import React, {Component} from 'react';
import Genoa from "react-genoa-player";

class App extends Component {
    render() {
        return (
            <div className="App">
                <Genoa
                    host="https://api.vodgc.net"
                    playerId="7A6B981500560434"
                    videoId={148893}
                    options={
                        {
                            vast: "kw_213123",
                            segments: "1245123,5724343,621324313"
                        }
                    }
                />
            </div>
        )
    }
}

Default Options

{
    enableSticky: false,
    stickyClassName: "video-sticky",
    containerVideoClass: "video-container",
    playerContainerClass: "video_player_container",
    host: null,
    playerId: null,
    videoId: null,
    boundaryOffset: 55,
    onPlay: () => null,
    onEnd: () => null,
    options: {}
}

Basic CSS

.video_player {
    height: 100%;
    width: 100%;
}

.video-sticky {
    position: fixed !important;
    bottom: 80px;
    right: 95px;
    width: 400px;
    height: 200px;
    z-index: 500;
    visibility: visible;
}

@media (min-width: 1024px) and (max-width: 1366px) {
    .video-sticky {
        right: 70px;
        bottom: 65px;
    }
}

@media (min-width: 1367px) and (max-width: 1600px) {
    .video-sticky {
        right: 80px;
        bottom: 60px;
    }
}
0.0.2

6 years ago

0.0.1

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago