作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试在 Android 应用程序内的 mp4 视频之上添加叠加图像/文本。
大多数解决方案都指向 FFmpeg(或 appunits AndroidFFmpeg),但不稳定且维护起来非常复杂。
是否有使用 Android SDK 的本地方法来执行此操作? (MediaCodec?MediaMuxer?)
谢谢,
奥里
最佳答案
有两种方法可以理解您的问题:
<VideoView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/videoView"
android:background="#00000000"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center_horizontal"
android:orientation="horizontal">
<TextView
android:id="@+id/txt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Text"/>
</LinearLayout>
关于android - 如何在 Android 中的视频上添加叠加图像或文本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29914448/
我是一名优秀的程序员,十分优秀!