WPF媒体播放器问题 [英] WPF Media Player Problem
问题描述
我制作了使用MediaElement类处理媒体文件的WPF Media Player.但是在播放视频文件时,我遇到一个问题,即视频不适合MediaElement布局,因此视频文件的某些部分无法在屏幕上看到.我已经尝试了所有选项(包括搜索问题),但没有找到任何合适的解决方案.
另一种情况是,我不知道如何使视频文件全屏播放.这意味着我想通过单击选项或菜单来使媒体元素以全屏模式播放视频文件.
I have made WPF Media Player that uses MediaElement class to handle media files. But when playing video files, I have a problem that video does not fit in MediaElement layout, so some portion of video file can not be seen on the screen. I have tried all options (including googling the problem) but didn''t find any proper solution.
Another case is, I do not know how to make video file playing full screen. that means i want to media element to play video file in full screen mode upon clicking on option or menu
推荐答案
这些可能会帮助您:
带有媒体项目列表的简单WPF媒体播放器 [ WPF中的自定义媒体播放器(第1部分) [ WPF中的自定义媒体播放器(第2部分-歌词查找器) [ ^ ]
希望对您有所帮助:)
these might help you:
A simple WPF media player with media item list[^]
Custom Media Player in WPF (Part 1)[^]
Custom Media Player in WPF (Part 2 - Lyrics Finder)[^]
hope it helps :)
这篇关于WPF媒体播放器问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!