1.1.4 • Published 3 years ago

gps-player v1.1.4

Weekly downloads
-
License
-
Repository
-
Last release
3 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

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.1

3 years ago