如何在VB.NET中显示视频前的字幕 [英] How to show subtitle in front of a video in VB.NET

查看:186
本文介绍了如何在VB.NET中显示视频前的字幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用WPF中的mediaelement在vb.net中制作视频播放器但它无法加载字幕,所以我想在媒体元素前面显示字幕。但我不知道如何在VB.NET中读取.srt文件的格式。你能帮我吗?



我尝试过的事情:



我试图在mediaelement下放置一个文本框,但我不知道如何根据时间更改文本以及如何在视频的当前时间显示文本。对不起,我的英文不好。

I am making a video player in vb.net using mediaelement in WPF But it can't load subtitle so I want to show subtitle in front of the media element. But i dont know how to read the format of a .srt file in VB.NET. So could you help me.

What I have tried:

I tried to place a textbox under mediaelement but i dont know how to change the text according to the time and how to show the text at the current time of the video. Sorry for my bad english.

推荐答案

谷歌是你的朋友:好好经常拜访他。他可以比在这里发布问题更快地回答问题...



非常快速的搜索提供超过300,000次点击: Google:.SRT文件格式 [ ^ ]

我跟随的前两个链接给出了简单的解释:

如何创建SRT文件 - 3Play媒体 [ ^ ]

SRT字幕| Matroska [ ^ ]



将来,请尝试自己做至少基础研究,不要浪费你的时间或我们的时间。
Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...

A very quick search gave over 300,000 hits: Google: .SRT file format[^]
And the first two links I followed gave simple explanations:
How to Create a SRT File – 3Play Media[^]
SRT Subtitles | Matroska[^]

In future, please try to do at least basic research yourself, and not waste your time or ours.


这篇关于如何在VB.NET中显示视频前的字幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆