kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

Hyperlinked video content not playing within HTML5 resource

Open intelliant01 opened this issue 5 years ago • 7 comments

Observed behavior

Embedded video content plays fine as can be seen in slide 8 of this resource.

However, hyperlinked videos are not "clickable" but open fine in new tab with Ctrl+Click or link copy+open in new tab. A hyperlinked video is accessible from the Resources button at top of this resource.

Have tried with target = blank, top, parent, self, the result remains the same.

The workaround works in Firefox and Chrome but not in Edge.

May be it is a security safeguard but am not sure.

Expected behavior

The links should be clickable directly from within the HTML5 resource as it works when we download and interact with the resource.

User-facing consequences

Pedagogical flow slows down with a slightly degraded experience when they have to Ctrl+click or copy-paste link and open in new tab.

Errors and logs

Nothing that I could spot in the browser console.

Steps to reproduce

  1. Import the contents referenced above from the channel with token jafal-zovuk
  2. Check the experience in all browsers.

Context

  • Kolibri version : 0.12.2
  • Operating system : Any
  • Browser : Works with a workaround - Chrome, Firefox ; Doesn't work at all in Edge.

intelliant01 avatar Apr 27 '19 09:04 intelliant01

@intelliant01 Could you provide the name of the resource you linked to? Or Invite me to the channel: [email protected]?

bjester avatar May 13 '19 22:05 bjester

@bjester Sorry, had missed your request. Have invited you now.

intelliant01 avatar Aug 14 '19 12:08 intelliant01

@intelliant01 Thank you for getting back to me. We're able to reproduce this issue with links that have a target attribute defined. Those links' behavior is disabled in the sandboxed HTML5 resource.

bjester avatar Aug 20 '19 21:08 bjester

@bjester Sorry, it is not clear to me if this behaviour related to target attribute in the sandboxed resource will be changed or is this a wontfix case?

intelliant01 avatar Aug 21 '19 03:08 intelliant01

Hi @intelliant01 - we are looking at how to handle links that have a target attribute, so this will be fixed in the future, but not in the scope of 0.12.x.

rtibbles avatar Aug 21 '19 13:08 rtibbles

@rtibbles the clarity is much appreciated. Thanks.

intelliant01 avatar Aug 23 '19 07:08 intelliant01

@radinamatic I can't replicate the original issue as it's no longer which is the resource in question but a similar issue is observed when attempting to open a link from the 'Document with links' resource in the QA Channel...

pcenov avatar Mar 24 '22 15:03 pcenov