{{ file.filename }} / {{ file.foldername }}
-
+
+
`,
+ methods: {
+ set_ffmpeg_config(ffmpeg_config) {
+ this.ffmpeg_config = ffmpeg_config
+ },
+ },
computed: {
computed_playing_audio_file_url() {
if (this.file.play_back_type === 'raw') {
return '/api/v1/get_file_direct?id=' + this.file.id
} else if (this.file.play_back_type === 'stream') {
- return '/api/v1/get_file_stream?id=' + this.file.id
+ return '/api/v1/get_file_stream?id=' + this.file.id + '&config=' + this.ffmpeg_config.name
}
},
computed_show() {
@@ -480,6 +501,46 @@ const component_get_random_files = {
},
}
+const component_stream_config = {
+ emits: ['set_ffmpeg_config'],
+ data() {
+ return {
+ ffmpeg_config_list: [],
+ selected_ffmpeg_config: {},
+ }
+ },
+ template: `
+