Forum Discussion

chaklasiyanikun's avatar
6 years ago

With HTTPS URL image not load with Poster Grid

I created one RSG Component and stored content using content-meta-data like below.  Inside a content-meta-data field is hdgridposterurl here, I put Both URL HTTP and HTTPS and Checked Roku side, It's working or not. Http is Working. But, Https is not Working. I also checked both URLs on a different platform. Both URLs Working well for other platforms like Android, IOS, Google Chrome, Amazon Fire Stick.

I also add SetCertificatesFile("common:/root/www_mysite_com.csr"). It's not working. This is the same problem with all RSG components and simple Poster node. Does anyone know any solution for this? 

 

PosterGrid Example :

<component name = "PosterGridExample" extends = "Scene" initialFocus = "examplePosterGrid" > 
  <script type = "text/brightscript" >
    <![CDATA[
    sub init()
      m.top.backgroundURI = "pkg:/images/rsgde_bg_hd.jpg"
      m.top.setFocus(true)
      m.postergrid = m.top.findNode("examplePosterGrid")
      m.postergrid.translation = [ 130, 160 ]
      m.readPosterGridTask = createObject("roSGNode", "ContentReader")
      m.readPosterGridTask.contenturi = "http://www.sdktestinglab.com/Tutorial/content/rendergridps.xml"
      m.readPosterGridTask.observeField("content", "showpostergrid")
      m.readPosterGridTask.control = "RUN"
    end sub
    sub showpostergrid()
      m.postergrid.content = m.readPosterGridTask.content
    end sub
    ]]>
  </script>
  <children>
    <PosterGrid
      id = "examplePosterGrid"
      basePosterSize = "[ 512, 288 ]"
      caption1NumLines = "1"
      numColumns = "2"
      numRows = "2"
      itemSpacing = "[ 20, 20 ]" />
  </children> 
</component>

 

Content-Meta-Data : 

<Content >
  <item hdgridposterurl = "http://www.sdktestinglab.com/Tutorial/images/rectanglepg.jpg"
    shortdescriptionline1 = "Rectangle Node"
    x = "0" y = "0" />
  ...
</Content>

 

9 Replies

  • I haven't had any issues with https images... In the particular example you posted there's an issue with the cert being expired on www.sdktestinglab.com (my browser warns me about it), which seems likely to be the cause. Can you load images from other sites over https?
    • chaklasiyanikun's avatar
      chaklasiyanikun
      Roku Guru

      sanity-check wrote:
      I haven't had any issues with https images... In the particular example you posted there's an issue with the cert being expired on www.sdktestinglab.com (my browser warns me about it), which seems likely to be the cause. Can you load images from other sites over https?

      I'm sorry, I forgot to change the URL in Content-Meta-Data. So, I Put Roku Example URL as It is. It's working with HTTP. http://www.sdktestinglab.com/Tutorial/images/rectanglepg.jpg 

      • chaklasiyanikun's avatar
        chaklasiyanikun
        Roku Guru

        I added a certificate like below and display loadStatus and FailedBitmapUri. here, loadStatus = "failed" display. But, the FailedBitmapUri image is not displaying. In Google Chrome successfully Loading But, Roku not loaded. I think Roku does not decode the image. But, I don't know why? I'm Still not Found any solution for this.

        sub init()
        m.poster = m.top.findNode("testPoster")
        m.poster.SetCertificatesFile("pkg:/certificates/cacert.crt")
        m.poster.InitClientCertificates()http://www.sdktestinglab.com/Tutorial/images/rectanglepg.jpg
        m.poster.uri="https://myURL:1400/Image.jpg"
        m.poster.failedBitmapUri="pkg:/images/splash_hd.jpg"http://www.sdktestinglab.com/Tutorial/images/rectanglepg.jpg
        m.poster.observeField("loadStatus","OnLoadStatusChanged")
        m.top.SetFocus(true)
        End sub
        function OnLoadStatusChanged()
        ?"m.poster.loadStatus : "m.poster.loadStatus
        end function