Third Light Developer Exchange

Code and templating community forum for developers and software integrators

You are not logged in.

Announcement

If you wish to join the Developer Exchange, please contact your account manager - this is to avoid unnecessary spam in the forums. Many thanks for your understanding.

#1 2017-05-23 09:29:35

MadeDev
Member
Registered: 2017-05-19
Posts: 4

CMS Integration

We have had an issue with our CMS integration where the video being returned from the API have reduced in quality with no changes to the parameters being passed.

We make the following call
```json

  "apiVersion":"1.0",
  "sessionId":"********************************",
  "inParams":{ 
    "assets":"31083482409"
  },
  "action":"Files.GetStreamDetails"
}
```
and get the following response
```json

  "result":{ 
    "api":"OK",
    "action":"OK",
    "timings":{ 
      "initTime":55,
      "setupTime":11,
      "methodTime":102,
      "totalTime":168
    }
  },
  "outParams":{ 
    "31083482409":{ 
      "snapshot":"https:\/\/s2-rah.thirdlight.com\/t.tlx?AJDy9rmAPpdkTvA.A1f.A2..ABA5YHlq",
      "mp4":"https:\/\/s2-rah.thirdlight.com\/s.tlx?AJDy9rmAPpdkTvA90zABAqZcZY",
      "width":"400",
      "height":"224",
      "ogv":"https:\/\/s2-rah.thirdlight.com\/s.tlx?AJDy9rmAPpdkTvA9HzABAwFCjw",
      "flv":"https:\/\/s2-rah.thirdlight.com\/s.tlx?AJDy9rmAPpdkTvAJCzABALeNqK"
    }
  }
}
```

of this result we use the `outParams.31083482409.mp4` value as the source for the video has this been changed to something else?

Offline

#2 2017-05-31 17:39:28

steve
Third Light Staff
Registered: 2013-06-06
Posts: 105

Re: CMS Integration

Hi MadeDev,

The File.GetStreamDetails() method will return a link whose stream can potentially change properties as it will expire after a period and will be subject to changes made to the Configuration > Site Options > Video Settings page.

You may want to consider published file links instead to gain a permanent unchanging resource as you can choose a resolution for the stream that won't be affected by the values on the settings page mentioned above.

Best Regards,
Steve

Offline

#3 2017-06-16 10:56:33

MadeDev
Member
Registered: 2017-05-19
Posts: 4

Re: CMS Integration

Hi Steve,

I've tried using the "Downloads.PublishAssetByDownloadSize" call to get a download URL which I'm using for an mpeg video but this is not working in IE and doesn't give the options for resolution as a result the original 16M file is becoming a 30M download as I can only select a pre-configured download size.

This is resulting in a "Media12899: Audio/Video: Unknown MIME type" console error in IE 11 and the video not playing

Offline

#4 2017-06-19 11:25:56

ben
Third Light Staff
From: Third Light
Registered: 2013-06-06
Posts: 79

Re: CMS Integration

@MadeDev, the options for download size can be extended, or you can edit existing ones. You may wish to create one specifically for this purpose.

Re. the mime type problem - please can you screenshot the settings for the download size being used?

Best wishes,
Ben

Offline

#5 2017-06-19 11:41:20

MadeDev
Member
Registered: 2017-05-19
Posts: 4

Re: CMS Integration

Hi Ben

I've taken the screenshot and added it to thirdlight. You can see it 3A3-LQ3Wbqvy

Offline

#6 2017-06-19 14:28:17

MadeDev
Member
Registered: 2017-05-19
Posts: 4

Re: CMS Integration

Hi Ben,

Also a note on this, last week we carried out some testing across browser to confirm the videos were working on Chrome & Safari. Today, we did the same testing and are finding that this is no longer the case, and the videos no longer play as expected.

Has there been any changes in the past week or so that could attribute to this?

EDIT

This seems to be back. Extremely odd. We'll keep an eye on this over the coming days. We're still experience the aforementioned issue with IE. Will provide more information as we have it.

Last edited by MadeDev (2017-06-19 14:47:48)

Offline

Board footer