Skip to content

Problems with player in a subdirectory #661

Description

@theodortruffer

Describe the bug

Edit: Please read the first comment, this description is not entirely correct
The player does not work when it's installed in a subdirectory, because a lot of resources seem to be loaded with an absolute path instead of a relative one. We are using the player in our ILIAS-Opencast-plugin and therefore cannot install the player at the base directory.

Various files cannot be loaded; resources, localizations, config and, since version 6.5.0, hls.min.js:

not_found
hls_not_found

The paths should be like this:
http://localhost:8081/Customizing/global/plugins/Repository/RepositoryObject/Opencast/node_modules/paella_player/build/resources/[...]
Because the player is installed at:
/Customizing/global/plugins/Repository/RepositoryObject/Opencast/node_modules/paella_player

Steps to Reproduce

Install the paella player in a subdirectory, like '[web_base_dir]/paella_player_test/' and open it in the web browser.

Workaround (if any)

The problem with the resources directory exists for some time now, but we were able to fix it with a symlink. We just symlinked the resources folder (which is in a plugin subdirectory) to the ILIAS base directory.
Now since version 6.5.0, other folders/files seem to be affected as well, so we would need a lot of symlinks to fix it. So it would be nice to have a fix for this.

Environment Information

  • Browser - all Browsers
  • Paella version 6.5.0

Thanks a lot for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions