Insert and Playback of Online Media

Gone are the days when users were limited to embedding local media and clip art bundled with an office suite, as we now live at a time where there is a plethora of online media at a user’s fingertips, so an office suite should make it easy for its users to add them to their documents.

LibreOffice is able to embed local images, audios and videos into documents, but does not have an easy means of embedding or playing online media. Some tickets have been filed in the bug tracker regarding the issue, including the ability to add an online image (tdf#90126), embed online videos (tdf#42246) and detect embedded videos links (tdf#87718).

Current Status

Online Image

It is possible to insert an online image into LibreOffice by copying and pasting its URL into LibreOffice’s insert image dialog. But unfortunately there isn’t any indication in the dialog that this is possible and is reliant on a user to guess that it’s possible.

LibreOffice’s insert image dialog in Windows.

Figure 1: LibreOffice’s insert image dialog in Windows.

Online Video

In order to insert online videos, a user can insert the thumbnail image of the video into the document and then add a hyperlink to the image with the url of the video. Though this is possible to do for people who know how to do it, it still isn’t a simple process, and it is out of the reach of people who don’t know how to do it.

Thumbnail of the online video with associated hyperlink as indicated by the tooltip.

Figure 2: Thumbnail of the online video with associated hyperlink as indicated by the tooltip.

Proposed Solution

Paste URL

Section to just enter an URL."

Figure 3: Section to just enter an URL.

The average user grabs the URL wants to insert an online image or video will only once in a while are likely using their browser to copy the link to the media and expect to paste it at some UI. Consequently, the first part of the dialog contains one textbox for a user to paste the image or video URL, a ‘Link’ checkbox, for whether the online image should be embedded (downloaded and saved within the file) or referenced (linked to from its online source), and a preview area to display the image or video preview image as a means of confirming that the pasted URL is correct and accessible.

Search for media

Expanding on the URL section, the dialog would have the ability to search through image and video resources like Google Images, OpenClipart.org, Flickr, Youtube and Vimeo. These resources should be programmed in a modular way, so that it is easy to add new resources into the dialog. It would be useful to allow users to extend the resource list by having a framework that worked with a search query URL which return xml or json results that would have the necessary fields that populate the results area (e.g. OpenClipart.org’s json API).

Search for online media; on the left with icon grid view is Google Images and on the right with details view right is Youtube.

Figure 4: Search for online media; on the left with icon grid view is
Google Images and on the right with details view right is Youtube.

Online Storage

Integration of self-managed online storage.

Figure 5: Integration of self-managed online storage.

Additional to the search of public resources, the dialog would allow a user to access media from private online and network storage locations that are accessible through LibreOffice’s CMIS interface like Google Drive, Alfresco and WebDav.

A user would navigate through the storage’s folders and select a file that will be embedded into the file. This approach is useful for enterprise users who have restrict the available media to what has been certified, for example.

Access to features from the Sidebar

Alternatively, the functionality may also be present in the sidebar. The input would accept either a URL, showing only one search result, or a query that list results from a selection of public and private services. The number of results is limited but has means to expand and show more. The information below the result list gives details on the selected item.

Service provided from the sidebar.

Figure 6: Service provided from the sidebar.

Conclusion

The proposal aims to support the insertion of online media for different workflows such as just pasting an URL, searching in public spaces, and browsing private storages. It will also aims to make playback of linked online audio and video possible within LibreOffice rather than sending a user to their browser for playback.

In order to assist users who have already pasted online media text links into their documents, an entry can be added to the hyperlink context menu to provide an easy means to convert them into an embedded or linked media. Similarly, it would also be possible to convert an embedded online media preview image back into text link form by adding an entry in the image context menu.

Would you benefit from this enhancement?

Comments
  1. 10 months ago
  2. 10 months ago
    • 9 months ago
  3. 10 months ago
    • 9 months ago
  4. 10 months ago
  5. 10 months ago
  6. 7 months ago
  7. 7 months ago
  8. 4 months ago

Leave a Reply

Your email address will not be published. Required fields are marked *