如何在android中打开从网站获取的html音频和视频标签

如何在android中打开从网站获取的html音频和视频标签,android,html,wordpress,audio,video,Android,Html,Wordpress,Audio,Video,我有一个wordpress网站,我正在尝试为它编写一个android应用程序。我从我的网站从以下url获取帖子的json: 然后我使用GSON获取帖子内容。这是我在应用程序中显示帖子的方式: <io.github.meness.Library.HtmlTextView.HtmlTextView android:id="@+id/txtAuthorComment" android:layout_width="wrap_content" an

我有一个wordpress网站,我正在尝试为它编写一个android应用程序。我从我的网站从以下url获取帖子的json: 然后我使用GSON获取帖子内容。这是我在应用程序中显示帖子的方式:

  <io.github.meness.Library.HtmlTextView.HtmlTextView
        android:id="@+id/txtAuthorComment"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@+id/txtAuthorName"
        android:layout_marginLeft="8dp"
        android:layout_marginRight="8dp"
        android:layout_marginTop="3dp"
        android:layout_toLeftOf="@+id/imgAuthorAvatarPic"
        android:lineSpacingExtra="2dp"
        android:text="@string/text1"
        android:textSize="12sp"/>

这很有效,但我真正的问题是当文章包含音频文件或视频文件时,在这种情况下,这个库不起作用。不幸的是,我找不到任何支持html音频标记的html查看器库。例如,我使用了webview,但是我的字体有很多问题,并且没有太多的控制。有什么方法可以解决这个问题吗? 下面是一个示例标记:

<audio src="http://theartofliving.ir/wp-content/uploads/2018/12/Inspiring.mp3" controls="controls"> </audio>



谢谢

展示一个tag@VladyslavMatviienko添加到问题解析
src
,并使用MediaPlayer播放,例如example@VladyslavMatviienko首先,你能解释一下我该怎么做吗?其次,音频或视频文件可能不在帖子的正确位置,因为我必须在帖子的版面中手动添加它。如果你能解释更多,那就太好了。非常感谢
我如何做到这一点
首先尝试搜索你自己。很容易找到解析HTML的方法文件将不会位于帖子的正确位置“是的,因为正如您所说-
HtmlTextView
不支持它们。作为替代方案,您可以自己向
HtmlTextView
添加对它们的支持,或者要求所有者这样做。