0

I have video links(Vimeo video) and normal texts in my HTML data. I am using Xam.Plugin.HtmlLabel for parsing the HTML data. But it is not effective, the links are not clickable on the iPhone. Also, the video links are missing when coming to UI.

I have added my sample HTML data here. I am using a webview for showing videos. So the video links should open on the app itself using webview or any other property. And show the remaining description as normal text. I need a UI like this. How can I do this? My current UI using Xam.Plugin.HtmlLabel.

Sreejith Sree
  • 3,055
  • 4
  • 36
  • 105
  • Can't you just Keep it the way you have it and just add a video player? then just pass the players source threw a binding that you can parse the same way you are now? if i'm understanding this correctly Using something like Xam.Forms.VideoPlayer/ – Azurry Dec 19 '19 at 07:21
  • @RoyAurele Initially I tried video player, but it needs video extension like .mp4. My videos did not have extensions, that's why I choose webview for playing video. – Sreejith Sree Dec 19 '19 at 07:42
  • Noted, I am a little confused here So when you parse your not getting the Video source's to pull threw to the webview? – Azurry Dec 19 '19 at 07:43
  • @RoyAurele I tried to set the HTML data as a webview source, but that is also not working. – Sreejith Sree Dec 19 '19 at 08:07
  • Did you try this demo? if it could running normally?https://forums.xamarin.com/discussion/175969/xamarin-forms-how-to-parse-html-data-having-video-links – Leon Dec 20 '19 at 03:18
  • @LeonLu-MSFT I have tried that, but getting an exception. I have posted exception details on that thread. – Sreejith Sree Dec 20 '19 at 13:30
  • Now you do not know how to use `Content = web`? it is Xamarin.Forms.View Content like this thread:https://learn.microsoft.com/en-us/dotnet/api/xamarin.forms.contentpage.content?view=xamarin-forms – Leon Dec 24 '19 at 06:58
  • @LeonLu-MSFT I am directly setting it on XAML, like – Sreejith Sree Dec 24 '19 at 07:02
  • Ok, Is that worked as normal? – Leon Dec 25 '19 at 09:24
  • @LeonLu-MSFT When I tried like that the app breaks with an exception, please see the below screenshotrs,https://drive.google.com/open?id=1am5TgnpYGJOUT1OM7-reu_uNJPLOfsQk, https://drive.google.com/open?id=15u59wQeIOZeUk65RhtTTHE01DPiVrWkg – Sreejith Sree Dec 27 '19 at 06:11
  • Did you add the settings like this thread?https://github.com/jsmarcus/Xamarin.Plugins/issues/11#issuecomment-219071491 – Leon Jan 02 '20 at 12:05
  • @LeonLu-MSFT I am using `Fonts provided by application` key for adding font ttf files – Sreejith Sree Jan 02 '20 at 12:22

0 Answers0