Code Monkey home page Code Monkey logo

Comments (11)

AmpletecGo avatar AmpletecGo commented on June 4, 2024

能正常播放就是有个报错

from flvplayer.

zhw2590582 avatar zhw2590582 commented on June 4, 2024

一个容错问题,我修复下

from flvplayer.

AmpletecGo avatar AmpletecGo commented on June 4, 2024

image
现场是报这个

from flvplayer.

zhw2590582 avatar zhw2590582 commented on June 4, 2024

应该flv流不是规范格式,你可以在/src/demuxer/demuxer.worker,找到删掉这个错误警告,再试试。

from flvplayer.

AmpletecGo avatar AmpletecGo commented on June 4, 2024

好的,谢谢。那如何知道 flv 流是否规范格式呢?

from flvplayer.

zhw2590582 avatar zhw2590582 commented on June 4, 2024

这个有点难判断,所以我尽量按照文档来对flv解封装,但就算有的地方不规范也可以播放。

from flvplayer.

sunjun avatar sunjun commented on June 4, 2024

你好,我也遇到这个问题,但是不能正常播放,视频流用vlc是可以正常播放的,不知道用flvplayer怎么修改能成功播放

image
现场是报这个

from flvplayer.

sunjun avatar sunjun commented on June 4, 2024

你好,我也遇到这个问题,但是不能正常播放,视频流用vlc是可以正常播放的,不知道用flvplayer怎么修改能成功播放

image
现场是报这个

经过修改可以了原来是设置的fps不对导致的

from flvplayer.

AmpletecGo avatar AmpletecGo commented on June 4, 2024

你好,我也遇到这个问题,但是不能正常播放,视频流用vlc是可以正常播放的,不知道用flvplayer怎么修改能成功播放

image
现场是报这个

经过修改可以了原来是设置的fps不对导致的

请问你是如何设置 fps 的?

from flvplayer.

sunjun avatar sunjun commented on June 4, 2024

你好,我也遇到这个问题,但是不能正常播放,视频流用vlc是可以正常播放的,不知道用flvplayer怎么修改能成功播放

image
现场是报这个

经过修改可以了原来是设置的fps不对导致的

请问你是如何设置 fps 的?

var flv = new FlvPlayer({
container: '.flvplayer-app', // A div dom element
url: 'path/to/video.flv', // Url of flv video file or url of websocket
decoder: './flvplayer-decoder-baseline.js', // Path to video decoder, flvplayer-decoder-baseline.js or flvplayer-decoder-multiple.js
poster: 'path/to/poster.png', // Url of video poster, the first frame of the video is taken as the poster by default
autoPlay: false, // Whether auto play
debug: false, // Show debug information on developer tools
live: false, // Whether live video
loop: false, // Whether to automatically loop play
hotkey: true, // Whether to use hotkeys
hasAudio: true, // Whether to include audio
volume: 7, // Default volume, ranging from 0 to 10
frameRate: 30, // Video frame rate, which will be extracted from the flv file by default
width: 400, // Video default width, which will be extracted from the flv file by default
height: 300, // Video default height, which will be extracted from the flv file by default
});

就是这个 frameRate: 30, // Video frame rate, which will be extracted from the flv file by default
参数

from flvplayer.

zhw2590582 avatar zhw2590582 commented on June 4, 2024

已经把这个错误改成警告形.

from flvplayer.

Related Issues (20)

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.