Windows Media Player问题,加载文件仅在90%的时间内起作用 [英] windows media player issue, loading file only works 90% of the time

查看:107
本文介绍了Windows Media Player问题,加载文件仅在90%的时间内起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我在Windows Media Player中遇到这个奇怪的问题,我有一个播放列表和一个Windows Media Player组件,这是我加载视频文件的代码.

So I have this weird issue with windows media player, i have a playlist and a windows media player component, this is my code to load the video files.

在此之前完成列表的递增

the incrementing of the list is done before this

   Video.MediaPlayer1.BringToFront()
                    'End If
                    Try
                        VideoController.MediaPlayerMain.Ctlcontrols.stop()
                        VideoController.MediaPlayerMain.URL = ""
                    Catch ex As Exception
                        '    MessageBox.Show(ex.ToString())
                    End Try
                    Try
                        Video.MediaPlayer1.Ctlcontrols.stop()
                        Video.MediaPlayer1.URL = ""
                    Catch ex As Exception
                        '  MessageBox.Show(ex.ToString())
                    End Try
                  Try
                        VideoController.MediaPlayerMain.URL = ListViewSlides.SelectedItems(0).SubItems(2).Text
                        VideoController.MediaPlayerMain.Ctlcontrols.play()
                    Catch ex As Exception
                        '  MessageBox.Show(ex.ToString())
                    End Try
                    Try
                        Video.MediaPlayer1.URL = ListViewSlides.SelectedItems(0).SubItems(2).Text
                        Video.MediaPlayer1.Ctlcontrols.play()
                    Catch ex As Exception
                        '  MessageBox.Show(ex.ToString())
                    End Try

                    ListBoxPlaystate.Items.Add("C: " + VideoController.MediaPlayerMain.URL + VideoController.MediaPlayerMain.playState.ToString)
                    ListBoxPlaystate.Items.Add("V: " + Video.MediaPlayer1.URL + Video.MediaPlayer1.playState.ToString)

                    VideoController.TimerVideoCorrection.Start()

现在95%到98%的时间都可以正常工作,但是过了一会儿随机会打开但无法播放,没有开始时间,但是剪辑的结束时间很好,所以持续时间字符串看起来像  "   /02:12" 而不是"00:00/02:12"有一个黑屏,无论您单击播放暂停多少次,右键单击任一媒体播放器的上下文菜单,在我单击另一个文件的播放列表之前,它都无法正常工作,并且可以正常加载 继续播放到错误的位置,然后奇怪地继续播放并循环播放,就像没有发生过任何事一样,播放状态返回文件已转换并正在播放"状态.但还没有开始时间,并且播放和暂停控件出现黑屏 什么都不做.

任何想法的人:/

now 95-98% of the time this works perfectly but then after a while randomly one will appear to open but will not play, there is no start time however the end time of the clip loads fine so the duration string looks like   "   / 02:12" instead of "00:00 / 02:12" there is a black screen and no matter how many times you click play pause, right click on the context menus of either media player, nothing works till i click back onto the playlist on another file and it will load it fine continue through to where it bugged out and strangely continued through and looped like nothing ever happened, the play state returns that the file transitioned and is "playing" but yet no start time and a black screen with the play and pause controls doing nothing.

any ideas guys :/

推荐答案

J.A.G Productions-James Allan Grice,

Hi J.A.G Productions - James Allan Grice,

>>一段时间后,一个人似乎会打开但不会播放

>>after a while randomly one will appear to open but will not play

是否抛出任何异常?视频文件损坏了吗?

Any exceptions throws? Is the video file broken?

最好的问候,
王丽

Best Regards,
Li Wang


这篇关于Windows Media Player问题,加载文件仅在90%的时间内起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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