Git Product home page Git Product logo

Comments (2)

surmon-china avatar surmon-china commented on August 15, 2024

I test

data () {
      return {
        videoOptions: {
          "source": [
            {
              "type": "video/mp4",
              "src": "http://7xkwa7.media1.z0.glb.cloauddn.com/sample_video_H",
              "label": "原画",
              "res": 1
            },
            {
              "type": "video/mp4",
              "src": "http://221.11.100.42/7xkwa7.masdedia1.z0.glb.clouddn.com/sample_video_M?wsiphost=local",
              "label": "高清",
              "res": 2
            },
            {
              "type": "video/mp4",
              "src": "http://7xkwa7.media1.z0.glb.cloudasdasddn.com/sample_video_L",
              "label": "流畅",
              "res": 3
            }
          ],
          "language": "zh-TW",
          "playbackRates": [
            0.7,
            1,
            1.3,
            1.5,
            1.7
          ],
          "poster": "http://www.freemake.com/blog/wp-content/uploads/2015/06/videojs-logo.jpg",
          "defaultSrcReId": 2,
          "height": 360,
          "autoplay": true
        }
      }
    },
    methods: {
      playerStateChanged(playerCurrentState) {
        console.log(playerCurrentState)
      }
    }

It's worked , not error

version: https://github.com/surmon-china/vue-video-player/tree/v2.2.1

from videojs-player.

jcc2303 avatar jcc2303 commented on August 15, 2024

Hi thanks,

your component work nice,

I haved to install json-loader
and add config webpack

loaders: [
   { test: /\.json$/, loader: 'json' },
   // other loaders 
]

I will follow playing with the component.
thanks!

from videojs-player.

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.