Giter Site home page Giter Site logo

player's People

Contributors

c10342 avatar dogeongithub avatar liangzhifa avatar vanniamor avatar xiaojian2333 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  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

player's Issues

wmv格式的视频无法播放

无论是远程给url还是本地视频,wmv格式视频都无法播放。
具体表现为:播放器无响应,控制台
[Error: net::ERR_CONNECTION_TIMED_OUT]

Ubuntu下面build错误,Module not found: Error: Can't resolve 'DPlayer' in

  1. 报错详细信息
  • 因为速度问题,直接用yarn install,然后yarn run build
    相关版本信息如下
$ uname -a 
Linux ninger-MS-7A15 5.3.0-51-generic #44~18.04.2-Ubuntu SMP Thu Apr 23 14:27:18 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$ yarn -v
1.22.4
$ dplayer@^1.25.1
  • 报错内容:
    ERROR in ./src/renderer/components/Video.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/renderer/components/Video.vue?vue&type=script&lang=js&)
    Module not found: Error: Can't resolve 'DPlayer' in '/home/ninger/workspace/electron-player/src/renderer/components'
     @ ./src/renderer/components/Video.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/renderer/components/Video.vue?vue&type=script&lang=js&) 11:0-30 185:20-27
     @ ./src/renderer/components/Video.vue?vue&type=script&lang=js&
     @ ./src/renderer/components/Video.vue
     @ ./src/renderer/main.js
    
    ERROR in ./src/renderer/components/Video.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/renderer/components/Video.vue?vue&type=script&lang=js&)
    Module not found: Error: Can't resolve 'DPlayer/dist/DPlayer.min.css' in '/home/ninger/workspace/electron-player/src/renderer/components'
     @ ./src/renderer/components/Video.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/renderer/components/Video.vue?vue&type=script&lang=js&) 10:0-38
     @ ./src/renderer/components/Video.vue?vue&type=script&lang=js&
     @ ./src/renderer/components/Video.vue
     @ ./src/renderer/main.js
    
    ERROR in chunk renderer [entry]
    renderer.js
    /home/ninger/workspace/electron-player/node_modules/babel-loader/lib/index.js!/home/ninger/workspace/electron-player/src/renderer/main.js bfdb04eba3e6001afe02fb620e204b1e
    Unexpected token (187:20)
    |     },
    |     initDplayer: function initDplayer() {
    |       this.dp = new !(function webpackMissingModule() { var e = new Error("Cannot find module 'DPlayer'"); e.code = 'MODULE_NOT_FOUND'; throw e; }())({
    |         container: document.getElementById("dplayer"),
    |         hotkey: false
  1. 猜测
  • 初步猜测是大小写和dplayer包问题
// 文件位置 src/renderer/components/Video.vue
// import "dplayer/dist/dplayer.min.css"; # 注释该行
import DPlayer from "dplayer"; # 将DPlayer改成dplayer

Ubuntu下yarn run dev, 报错 Cannot read property 'setAlwaysOnTop' of null

  1. 环境信息如下
$ uname -a 
Linux ninger-MS-7A15 5.3.0-51-generic #44~18.04.2-Ubuntu SMP Thu Apr 23 14:27:18 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$ yarn -v
1.22.4
  1. 报错如下
Еггоr
A JavaScript error occurred in the main process
Uncaught Exception:
TypeError: Cannot read property 'setAlwaysOnTop' of null
at EventEmitter.eval (webpack:/.src/main/api/window.js?:60:32)at EventEmitter.emit (events.js:182:13)
at WebContents.<anonymous> (/home/ninger/workspace/electron-player/node_ modules/electron/dist/resources/electron.asar/browser/api/web-contents.js:346:13)
at WebContents.emit (events.js:182:13)

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.