-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathshared.js
41 lines (39 loc) · 936 Bytes
/
shared.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
if(typeof process === 'undefined')
{
/* When importing to GJS */
var exports = {};
var module = {exports};
}
var tempDir = '/tmp/.cast-to-tv';
module.exports = {
tempDir: tempDir,
hlsDir: tempDir + '/stream',
vttSubsPath: tempDir + '/webplayer_subs.vtt',
coverDefault: tempDir + '/cover',
escapeChars: [' ', '[', ']', '"', "'"],
coverNames: ['cover', 'cover_01', 'cover 01', 'cover1'],
coverExtensions: ['.jpg', '.png'],
subsFormats: ['srt', 'ass', 'vtt'],
chromecast: {
videoBuffer: 2500,
visualizerBuffer: 6500,
subsStyle: {
backgroundColor: '#00000000',
foregroundColor: '#FFFFFFFF',
edgeType: 'OUTLINE',
edgeColor: '#000000FF',
fontScale: '1.0',
fontStyle: 'NORMAL',
fontFamily: 'Droid Sans',
fontGenericFamily: 'SANS_SERIF',
windowType: 'NONE'
},
tracks: [{
trackId: 1,
type: 'TEXT',
trackContentType: 'text/vtt',
name: 'Subtitles',
subtype: 'SUBTITLES'
}]
}
};