https://bugs.documentfoundation.org/show_bug.cgi?id=157997

            Bug ID: 157997
           Summary: LibreOffice Impress can't play media files on Linux
           Product: LibreOffice
           Version: 7.5.7.1 release
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Impress
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: drm...@appliedcomputing.io

Description:
The LibreOffice Impress application fails to play any media files (at least) on
Linux.  I've tried to play OGG, MP3, and WAV files.  I have confirmed as best
as I can that I have all the correct plugins and the like installed.  The
application fails both when there is embedded audio in the slide, as well as
when trying to load a file from the Media Viewer.  In both cases, the audio
file is displayed as 00:00:00/00:00:00, which seems to indicate that something
is not loading and parsing the file (see the attached screenshots).

When running the nightly build and looking at the logs with the following
invocation:

`SAL_LOG="+INFO-INFO.vcl-INFO.sal-INFO.drawinglayer" ./simpress &> log`

we see the following log entries:

```
create player, URL: file:///path/to/wav/file.wav
<snip>
No implementation for com.sun.star.uri.UriSchemeParser_file
No implementation for com.sun.star.uri.UriSchemeParser_file
No implementation for com.sun.star.uri.UriSchemeParser_file
No implementation for com.sun.star.uri.UriSchemeParser_file
No implementation for com.sun.star.uri.UriSchemeParser_file
...
```

As far as I can tell, UriSchemeParser_file is not actually a real thing that
exists based on Google searching.  From a cursory look through the code, it
seems like what is happening is that something in the
[preparePlaybin](https://github.com/LibreOffice/core/blob/63a44ac83f0dbc792f71881e862c57e8037c84ae/avmedia/source/gstreamer/gstplayer.cxx#L592)
function is deciding that the file:/// prefix is a URL and then dynamically
loading a plugin to handle that particular scheme -- which, since it doesn't
exist, fails, resulting in no audio being played.

I couldn't trace through the code enough to figure out a fix, though :(

Steps to Reproduce:
1. Open a new document
2. Insert -> Audio or Video -> pick a random audio file of your choosing
3. Try to play the audio file

Alternately,

1. Tools -> Media Player
2. Open button -> pick an audio file of your choosing
3. Try to play the audio file

Actual Results:
Nothing happens

Expected Results:
I should hear sound


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.5.7.1 (X86_64) / LibreOffice Community
Build ID: 50(Build:1)
CPU threads: 16; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
7.5.7-3
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to