Git Product home page Git Product logo

video-editing-timeline's Issues

React 引入了不好使啊

代码如下,页面也出不来 那个时间轴啊

 import React, { memo, useMemo, useEffect } from 'react';

import { Container } from './VideoTimeLineEditor';
import VideoEditingTimeline, { ReactVideoEditingTimelineProps } from 'video-editing-timeline-react';

interface IVideoTimeLineEditorProps {

}

const VideoTimeLineEditor: React.FC<IVideoTimeLineEditorProps> = (props: IVideoTimeLineEditorProps) => {

    const generationConfig: ReactVideoEditingTimelineProps = useMemo(() => {
        return {
            config: {
                el: '#timeline',
                canvasWidth: 5000,
                canvasHeight: 50,
                minimumScale: 10, // 一个小刻度长度(单位px)
                minimumScaleTime: 1, // 一个小刻度代表时间(单位秒)
            },
        };
    }, []);

    useEffect(() => {
        const videoEditingTimeline = new VideoEditingTimeline(generationConfig);
    }, [generationConfig]);

    return (
        <Container>
            <canvas id="timeline"/>
        </Container>
    );
};

export default memo(VideoTimeLineEditor);

页面上是个 空白的区域啊没有 时间轴啊

infinite 24h timeline?

Hello,

For cctv app I need infinite 24h timeline.
Does it posible I achieve something like this with your code?

image

This view screenshot is from mobile app. When you touch the timeline it loop through 24 hours and change to previous or nextion depends of direction. black triangle above / bellow indicate the current position

RPReplay_Final1677879813.2.mov

We can hire todo this job.

Regards

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.