Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-3960

Import URL: unable to import Panopto url

    XMLWordPrintable

    Details

      Description

      The Panopto url is scanned for the host panopto.eu. So it's not possible to add urls from other servers. A better way is to test for the substring "/Panopto/":

       

      diff --git a/src/main/java/org/olat/modules/video/VideoFormat.java b/src/main/java/org/olat/modules/video/VideoFormat.java
      index f46b926..3f2177a 100644
      --- a/src/main/java/org/olat/modules/video/VideoFormat.java
      +++ b/src/main/java/org/olat/modules/video/VideoFormat.java
      @@ -70,7 +70,7 @@
       				return VideoFormat.youtube;
       			} else if(host.endsWith("vimeo.com")) {
       				return VideoFormat.vimeo;
      -			} else if(host.endsWith("panopto.eu")) {
      +			} else if(url.indexOf("/Panopto/") > 0) {
       				return VideoFormat.panopto;
       			} else if(url.endsWith(".mp4")) {
       				return VideoFormat.mp4;
      

        Attachments

          Activity

            People

            • Assignee:
              srosse Stéphane Rossé
              Reporter:
              stephan Stephan Clemenz
              Tester:
              Mandy Menzel
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 20 minutes
                20m