Uploaded image for project: 'Opencast'
  1. MH-9017

Segment previews not working in Engage player

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed and reviewed
    • Affects versions: 1.4.0
    • Fix versions: 1.4.0
    • Components: Engage User Interface
    • Labels:
      None
    • Severity:
      Non Functioning
    • Steps to reproduce:
      Hide
      Looks like the javascript is parsing the json returned from /search/episode.json incorrectly. Not sure if this should be fixed on the client side or the server side.

      From segments_ui.js:

      imgURLs[i] = data['search-results'].result.segments.segment[i].previews.preview;

      Segments portion of JSON returned from /search/episode.json:

              "segments": {
                      "segment": [{
                          "hit": "false",
                          "relevance": "-1",
                          "duration": "68000",
                          "time": "0",
                          "index": "0",
                          "text": "Purpose changes made services changes Respond changing while value Ensure changes evaluated changes planned tested implemented documented controlled manner business risk minimum work",
                          "previews": {
                              "preview": {
                                  "ref": "attachment-5",
                                  "$": "http:\/\/localhost:8080\/static\/411c301e-bb7c-46fd-8fc6-68d952e4eed9\/attachment-5\/20120611_133232_021.jpg"
                              }
                          }
                      }
              }

      Steps to reproduce:
      1. Upload and process a recording with a workflow that includes segmentation
      2. Click the recording's Play link
       
       Actual Results:
       Segment preview images are not loading in the player's timeline, the Segments tab, or the Segment Text tab.
       
       Expected Results:
       Segment preview images are shown.
       
       Workaround (if any):
       




      Show
      Looks like the javascript is parsing the json returned from /search/episode.json incorrectly. Not sure if this should be fixed on the client side or the server side. From segments_ui.js: imgURLs[i] = data['search-results'].result.segments.segment[i].previews.preview; Segments portion of JSON returned from /search/episode.json:         "segments": {                 "segment": [{                     "hit": "false",                     "relevance": "-1",                     "duration": "68000",                     "time": "0",                     "index": "0",                     "text": "Purpose changes made services changes Respond changing while value Ensure changes evaluated changes planned tested implemented documented controlled manner business risk minimum work",                     "previews": {                         "preview": {                             "ref": "attachment-5",                             "$": "http:\/\/localhost:8080\/static\/411c301e-bb7c-46fd-8fc6-68d952e4eed9\/attachment-5\/20120611_133232_021.jpg"                         }                     }                 }         } Steps to reproduce: 1. Upload and process a recording with a workflow that includes segmentation 2. Click the recording's Play link    Actual Results:  Segment preview images are not loading in the player's timeline, the Segments tab, or the Segment Text tab.    Expected Results:  Segment preview images are shown.    Workaround (if any):  
    • Tags (folksonomy):

      TestRail: Results

        Attachments

        1. segments_chrome.PNG
          12 kB
        2. segments_firefox.PNG
          22 kB
        3. segments_IE9.PNG
          16 kB
        4. segments_safari.PNG
          17 kB

          Issue links

            Activity

              People

              • Assignee:
                lrohner Lukas Rohner
                Reporter:
                douglashall Douglas Hall
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  TestRail: Cases