Foren

WebContentDisplay Screenlet not rendering image and video

thumbnail
Harish Kumar, geändert vor 8 Jahren.

WebContentDisplay Screenlet not rendering image and video

Expert Beiträge: 483 Beitrittsdatum: 31.07.10 Neueste Beiträge
Hi

Liferay Portal : - 6.2 EE
Android Emulator : -Nexus _ 4_API_23
Liferay Screens:-1.3.0

I am using web content display screenlet and trying to display a web content that has text content,image from document and media portlet and one video link. Issue is web content screenlet is not rendering the content as expected. It only loads text content . Image rendered as broken link and upon clicking video play button ,nothing happens.

Attached is the LAR file of web content that I am trying to display in screenlet.
Do anybody faced any such issue ?

Regards,
Harish
thumbnail
Javier Gamarra, geändert vor 8 Jahren.

RE: WebContentDisplay Screenlet not rendering image and video (Antwort)

Expert Beiträge: 348 Beitrittsdatum: 12.02.15 Neueste Beiträge
I think it could be this issue.

Basically that Liferay Portal is replacing the full url of the resources and can be solved by setting the listener emoticon
thumbnail
Harish Kumar, geändert vor 8 Jahren.

RE: WebContentDisplay Screenlet not rendering image and video

Expert Beiträge: 483 Beitrittsdatum: 31.07.10 Neueste Beiträge
Hi Javier,

Although it was in Spanish but we got the idea and images are being rendered now. But we have to assign VIEW permission to guest. Images was not rendering even for admin user on android app without VIEW permission to guest.

Regards,
Harish
thumbnail
Jose M. Navarro, geändert vor 8 Jahren.

RE: WebContentDisplay Screenlet not rendering image and video (Antwort)

Regular Member Beiträge: 138 Beitrittsdatum: 24.01.14 Neueste Beiträge
Yes, what is happening under the hood is the WebView (used by the screenlet) retrieves the images from the portal using a plain HTTP request (as any other browser). This HTTP request isn't authenticated, so that's why you need to make the image accesible by the guest user.
thumbnail
Harish Kumar, geändert vor 8 Jahren.

RE: WebContentDisplay Screenlet not rendering image and video

Expert Beiträge: 483 Beitrittsdatum: 31.07.10 Neueste Beiträge
Hi Jose,

Thanks for your prompt response.

Regards,
Harish