Media player won't play a .mp4?
If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
4 posts
Page 1 of 1
I have the windows media player component. Instead of giving it a path i sign it a website link.
it wont play a .mp4 link ?
Any ideas?
it wont play a .mp4 link ?
Any ideas?
Code: Select all
The code above will work, however if i find a link that is a .mp4 it won't play.AxWindowsMediaPlayer1.URL = "http://www.jpl.nasa.gov/videos/wise/20120608/wise20120608-1280.m4v"
Might be a problem with the codec. Use ffmpeg to inspect the stream and check the codec and then make sure that your component supports that codec; I'm pretty sure Windows Media Player doesn't support that format. It's a m4v: compression, bit-rate, etc. must be different for the component to play.
An alternative is https://github.com/ZeBobo5/Vlc.DotNet. Built on top of VLC, so you can be sure that it'll play almost anything; I've used it in one of my projects and I have to say it's pretty powerful!
Edit: Here's the documentation, pretty straight forward. https://vlcdotnet.codeplex.com/documentation
An alternative is https://github.com/ZeBobo5/Vlc.DotNet. Built on top of VLC, so you can be sure that it'll play almost anything; I've used it in one of my projects and I have to say it's pretty powerful!

Edit: Here's the documentation, pretty straight forward. https://vlcdotnet.codeplex.com/documentation
visualtech wrote:Might be a problem with the codec. Use ffmpeg to inspect the stream and check the codec and then make sure that your component supports that codec; I'm pretty sure Windows Media Player doesn't support that format. It's a m4v: compression, bit-rate, etc. must be different for the component to play.Thanks for the reply, i will take a look at this. cooll;
An alternative is https://github.com/ZeBobo5/Vlc.DotNet. Built on top of VLC, so you can be sure that it'll play almost anything; I've used it in one of my projects and I have to say it's pretty powerful!
Edit: Here's the documentation, pretty straight forward. https://vlcdotnet.codeplex.com/documentation
4 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023