Bug 134297 - Drag and drop of media files always links/never embeds
Summary: Drag and drop of media files always links/never embeds
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
6.1.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Media-Insert
  Show dependency treegraph
 
Reported: 2020-06-25 12:57 UTC by Tycho Kirchner
Modified: 2024-04-13 17:14 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tycho Kirchner 2020-06-25 12:57:16 UTC
Description:
When dragging-dropping media, like an mp3-audio or a video onto a slide, it is *always* linked and never embedded into the presentation, regardless of whether shift or ctrl (or both) is held down (see also https://help.libreoffice.org/6.1/en-US/text/shared/guide/dragdrop.html ).
However, even if explicitly inserted as link, it does not show up in Edit->Links to external file.
One way to see that it's not working is to save the presentation and look at the file-size afterwards. When moving the presentation to another computer or reanming/deleting the referenced file, the media is thus not available.
If the media is inserted via Insert->Audio or Video it is correctly embedded.
Side note: if inserted via Insert->Audio or Video with the "Insert as Link"-option checked, it does also *not* appear in Edit->Links to external file.


Steps to Reproduce:
1. Drag-Drop a media file from a file-manager onto a slide (holding ctrl-button so the + appears)
2. Save the odp -> note already that the file size stays (too) small
2. Close libreoffice (so the media-file is for sure *not kept open*)
3. Rename the previously inserted media-file
4. Reopen the presentation - the media cannot be played (but there is also no useful message that the file cannot be found...)


Actual Results:
No media is playing

Expected Results:
If dragged-dropped with the +-sympol the media file should be embedded.
Media files should also appear in Edit->Links to external files
Not found linked media should provide an error message that file x at place y cannot be found.
When an image is added via Insert/Image with the "Insert as Link"-option checked it is asked wheter it shall be embedded. Such a question should also be asked when using Insert->Audio or Video.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.1.5.2
Build ID: 1:6.1.5-3+deb10u6
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3; 
Locale: de-DE (de_DE.utf8); Calc: group threaded
Comment 1 Buovjaga 2020-11-09 06:33:03 UTC
I confirm this, but it seems more of a UX thing, like how to better express the default or match user expectations. Let's add UX team.
Comment 2 Heiko Tietze 2020-11-09 11:54:14 UTC
According to this page [1] it should be possible to insert audio or video files not only as link. Tried with mp3 and wav but no success (not sure it ever worked). Given that not even Insert > Audio/Video works as expected I would start there digging into the issue. Eventually, I share the expectation of using a modifier key.

[1] https://help.libreoffice.org/6.1/en-US/text/shared/01/moviesound.html?&DbPAR=WRITER&System=UNIX
Comment 3 Xisco Faulí 2020-11-12 15:15:18 UTC
(In reply to Heiko Tietze from comment #2)
> According to this page [1] it should be possible to insert audio or video
> files not only as link. Tried with mp3 and wav but no success (not sure it
> ever worked). Given that not even Insert > Audio/Video works as expected I
> would start there digging into the issue. Eventually, I share the
> expectation of using a modifier key.
> 
> [1]
> https://help.libreoffice.org/6.1/en-US/text/shared/01/moviesound.
> html?&DbPAR=WRITER&System=UNIX

please, provide info from About dialog. if it's broken, it might be os independent
Comment 4 Xisco Faulí 2020-11-12 15:18:18 UTC
OTOH, would it be possible to attach the media you are trying to embed ?
Comment 5 Heiko Tietze 2020-11-12 18:48:43 UTC
(In reply to Xisco Faulí from comment #3)
> please, provide info from About dialog. if it's broken, it might be os
> independent

Version: 6.4.7.2
Build ID: 6.4.7-2
CPU threads: 8; OS: Linux 5.9; UI render: default; VCL: kf5; 
Locale: de-DE (en_US.UTF-8); UI-Language: en-US
Calc: threaded

(In reply to Xisco Faulí from comment #4)
> OTOH, would it be possible to attach the media you are trying to embed ?

Pick one from https://freewavesamples.com/

Insert > Audio or Video... Without "Insert as Link" I get <draw:plugin xlink:href="" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:mime-type="application/vnd.sun.star.media"> (and the sample is not loaded later) having this checkbox enabled it is <draw:plugin xlink:href="Ensoniq.wav".../>
Comment 6 Xisco Faulí 2022-05-02 12:02:01 UTC
Thanks for reporting this issue.
Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Comment 7 QA Administrators 2022-10-30 03:47:59 UTC Comment hidden (obsolete)
Comment 8 Tycho Kirchner 2022-11-10 22:13:15 UTC
Yes, the bug is still present in Libreoffice 7.4.2. Confirmed on Debian Bullseye, if that matters.
Comment 9 Armondo Lopez 2024-04-07 17:39:38 UTC
Hi, I can confirm that this bug is present in

Version: 24.2.1.2 (X86_64) / LibreOffice Community
Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 10 BogdanB 2024-04-13 17:14:19 UTC
Seems similar to bug 131414.