1.1.4 • Published 2 years ago

gps-player v1.1.4

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

gps-player

Installation

npm install gps-player

Getting Started

<template>
    <div>
        <button @click="play">播放</botton>
        <gps-player :server="server" :user-name="userName" :password="password">
            <gps-video :device-id="device.id" :video-title="device.name" @onStop="stop"></gps-video>
        </gps-player>
    </div>
</template>
<script>
import { GpsPlayer, GpsVideo } from 'gps-player'
export default {
    components: {
        GpsPlayer,
        GpsVideo
    },
    data () {
        return {
            server: '/', // server url
            userName: 'admin',//your username
            password: 'password',// your password
            device: {
                id: '',
                name: ''
            }
        }
    },
    methods: {
        play () {
            this.device.id = 'deviceid'// device id
            this.device.name = 'devicename' // device name
        },
        stop () {
          this.device.id = ''
          this.device.name = ''
        }
    }
}
</script>
1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.1

2 years ago