-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
63 lines (45 loc) · 1.48 KB
/
README
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
NAME
RT-Extension-PlayAttachmentMedia - Allow playback of audio/video ticket
attachments
DESCRIPTION
This extension allows RT to play audio or video ticket attachments
directly in the browser without having to download them.
The following media format file extensions are allowed by default:
flac: 'audio/flac'
mp3 : 'audio/mp3'
mp4 : 'video/mp4'
ogg : 'video/ogg'
oga : 'video/ogg'
ogv : 'video/ogg'
ogx : 'video/ogg'
spx : 'video/ogg'
opus: 'video/ogg'
wav : 'audio/wav'
wave: 'audio/wav'
webm: 'video/webm'
If you want to allow only some of these formats see the
$PlayAttachmentMediaAllowed config option below.
RT VERSION
Works with RT 5
INSTALLATION
perl Makefile.PL
make
make install
May need root permissions
Edit your /opt/rt5/etc/RT_SiteConfig.pm
Add this line:
Plugin('RT::Extension::PlayAttachmentMedia');
Clear your mason cache
rm -rf /opt/rt5/var/mason_data/obj
Restart your webserver
CONFIGURATION
@PlayAttachmentMediaAllowed
Control what media formats are allowed:
Set( @PlayAttachmentMediaAllowed, ( qw( mp3 mp4 ) ) );
include only the file extensions for formats you want to allow.
AUTHOR
Best Practical Solutions, LLC <[email protected]>
LICENSE AND COPYRIGHT
This software is Copyright (c) 2024 by BPS
This is free software, licensed under:
The GNU General Public License, Version 2, June 1991