Disable more telemtry
This commit is contained in:
parent
60a06e6132
commit
00f8c30894
@ -1,5 +1,5 @@
|
|||||||
const { ipcRenderer } = require('electron')
|
const { ipcRenderer } = require('electron')
|
||||||
const telemetry = require('../lib/telemetry')
|
//const telemetry = require('../lib/telemetry')
|
||||||
const Playlist = require('../lib/playlist')
|
const Playlist = require('../lib/playlist')
|
||||||
|
|
||||||
// Controls local play back: the <video>/<audio> tag and VLC
|
// Controls local play back: the <video>/<audio> tag and VLC
|
||||||
@ -10,7 +10,7 @@ module.exports = class MediaController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mediaSuccess () {
|
mediaSuccess () {
|
||||||
telemetry.logPlayAttempt('success')
|
//telemetry.logPlayAttempt('success')
|
||||||
}
|
}
|
||||||
|
|
||||||
mediaStalled () {
|
mediaStalled () {
|
||||||
@ -20,7 +20,7 @@ module.exports = class MediaController {
|
|||||||
mediaError (error) {
|
mediaError (error) {
|
||||||
const state = this.state
|
const state = this.state
|
||||||
if (state.location.url() === 'player') {
|
if (state.location.url() === 'player') {
|
||||||
telemetry.logPlayAttempt('error')
|
//telemetry.logPlayAttempt('error')
|
||||||
state.playing.location = 'error'
|
state.playing.location = 'error'
|
||||||
ipcRenderer.send('checkForExternalPlayer', state.saved.prefs.externalPlayerPath)
|
ipcRenderer.send('checkForExternalPlayer', state.saved.prefs.externalPlayerPath)
|
||||||
ipcRenderer.once('checkForExternalPlayer', (e, isInstalled) => {
|
ipcRenderer.once('checkForExternalPlayer', (e, isInstalled) => {
|
||||||
@ -58,7 +58,7 @@ module.exports = class MediaController {
|
|||||||
|
|
||||||
const onServerRunning = () => {
|
const onServerRunning = () => {
|
||||||
state.playing.isReady = true
|
state.playing.isReady = true
|
||||||
telemetry.logPlayAttempt('external')
|
//telemetry.logPlayAttempt('external')
|
||||||
|
|
||||||
const mediaURL = Playlist.getCurrentLocalURL(state)
|
const mediaURL = Playlist.getCurrentLocalURL(state)
|
||||||
ipcRenderer.send('openExternalPlayer',
|
ipcRenderer.send('openExternalPlayer',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user