wmp | Web modeling project | Topic Modeling library
kandi X-RAY | wmp Summary
kandi X-RAY | wmp Summary
Web modeling project
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of wmp
wmp Key Features
wmp Examples and Code Snippets
Community Discussions
Trending Discussions on wmp
QUESTION
So I have been against a wall for this one for a while now.
My requirement is to play .mp4
video file in a wpf application. Sounds simple enough, right?
At first, I used built-in MediaElement
class and everything worked.
But it turns out, MediaElement
is based on Windows Media Player
, and for people (myself included) who are using Windows 10 Pro N (or KN)
versions, which are basically stripped-down versions of Windows 10, videos are not playing, because Windows Media Player
is not included.
That is also reported by attaching an error callback to MediaElement
, resulting in message:
"Windows Media Player version 10 or later is required"
Of course, one option is to show user a message and a link to download the feature pack (https://www.microsoft.com/en-us/software-download/mediafeaturepack), which includes Windows Media Player
, but in all my years using Windows apps, I have NEVER seen any app do/ask that. It is also wrong - the feature pack comes with alot more than just WMP and user might not want to bloat their system with unnecessary apps. That's why user chose Windows 10 Pro N (or KN)
in the first place.
But then - how do other apps do it? How are videos on Slack, Discord apps played on my Windows 10 Pro N
?
A bit of googling and general solution is to use VideoLAN.LibVLC.Windows
framework, because it is open-sourced, well maintained and has proven itself over the years on multiple platforms.
Ok, I get it's nuget package, and since it is native code, I also download a wrapper libraries to use it in WPF - LibVLCSharp
and LibVLCSharp.WPF
.
I have successfully integrated video playback, everything works in Debug version.
Now it's time to test it in Release version. I create a new Setup project
, build it, install it.
So here's the problem:
My app runs just fine, but when I get to the section where video is supposed to play, I get an exception error:
...ANSWER
Answered 2021-Feb-25 at 15:50So a few things:
Ok, I get it's nuget package, and since it is native code, I also download a wrapper libraries to use it in WPF - LibVLCSharp and LibVLCSharp.WPF.
You only need to reference LibVLCSharp.WPF
and VideoLAN.LibVLC.Windows
, LibVLCSharp
is a dependency of the .WPF
project
I check the Debug version's folder (because it was working just fine there) and I see that I also have a libvlc folder being generater there, with contents:
You should also have that in the Release folder too. If not, something might be wrong with VideoLAN.LibVLC.Windows or the way you're using it.
I understand, that I can create two seperate installations - one for x64 and one for x86 systems.
Yes, that would avoid embedding libvlc twice, that's what I'd recommend
If I delete anything from plugins folder, app crashes.
That's the way you should customize it, but you would need to figure out by yourself what you really need (you'll likely only need the "file" access plugin, no gui plugin, no mux...). I'd recommend taking a look at this documentation : https://code.videolan.org/videolan/libvlc-nuget/-/blob/master/cherry-picking.md
If that's not slim enough for you (for example, codec/libavcodec_plugin.dll is still too heavy for you), I'm afraid you'll have to build libvlc by yourself. Warning : it's not a nice walk in the park.
Perhaps there is another, more lightweight framework that can play .mp4 files?
I only know about FFMediaElement and other ffmpeg-based projects, but I'm unsure about the ffmpeg licensing, and I did not test them myself.
QUESTION
I am trying to embed WMP in a newly created MFC dialog based application using Visual Studio 2019. These are the steps I'm following:
- Create new project
- Go to resource view and click Insert ActiveX Control
- Select Windows Media Player and click OK
- Change the newly created WMP element's ID to something less general, like
WMP_Player
- Right click the WMP element and select Add Variable
- I set the variable name something like
m_wmp
- The new variable is created and
CWMP_Player.h
andCWMP_Player.cpp
are added to the project.
I try to build the project and it fails.
Inside CWMP_Player.h
there are 354 errors like:
Severity Code Description Project File Line Suppression State
Error C2535
BOOL CWMP_Player::get_isAvailable(LPCTSTR)
: member function already defined or declared WinMediaPlError C2377
BOOL
: redefinition; typedef cannot be overloaded with any other symbol WinMediaPlError C2660
CWMP_Player::InvokeHelper
: function does not take 5 arguments WinMediaPl
While the CWMP_Player.cpp
is almost empty, with only a couple of includes (one which is the pch.h
) and just this line:
IMPLEMENT_DYNCREATE(CWMP_Player, CWnd)
Did I forget a step? Should I include something in this file or another?
...ANSWER
Answered 2021-Jan-18 at 05:34In my opinion, the code automatically added in the class file added by VS2019 conflicts with the definition in WinMediaPl
. After comparing the code automatically added by VS2017 and VS2019, I find that the automatically added code below is redundant in CWMP_Player.h
or other .h
.
QUESTION
I am working on a code that would play MP3 files from a specific directory based on a list of the file names of these mp3 files in column A. The code works fine for about five or six files then excel hangs for some time then resume from another unexpected point. How can I fix the code so as to make it play all the mp3 files in column A?
...ANSWER
Answered 2020-Sep-02 at 10:14You can use the loop to build your playlist, then play it
QUESTION
I am am using the AxWindowsMediaPlayer control to build a small Windows web radio developed in C#
.
This works out well. My StatusChange
event handler extracts the name of the current radio station:
ANSWER
Answered 2020-Aug-06 at 06:28There seems to be no easy way to extract SHOUTCast/Icecast meta-data from AxWindowsMediaPlayer.
My solution is to replace AxWindowsMediaPlayer by BASS.NET.
BASS is an audio library wrapped by BASS.NET for .Net usage.
It provides a TAG_INFO
class which covers more than enough tags.
Code snippet from a BASS C#
sample NetRadio.cs
QUESTION
I called the AttachmentWidget(snapshot.data)
the method inside the column widget, So dynamically get the data from the API. After receiving this data, According to the ext
i stored into the path List, for example, that is an image extension, I will store as an image path In this case if I get 5 images, I want to path 5 path lists into the Photogrid imageUrls: imgpathList,
For this, I got an error as
...error message
ANSWER
Answered 2020-Mar-20 at 13:10This is happening because of you are not providing specific type of list.t.
Try following why to declare list.
QUESTION
I Have a Windows Media Player ActiveX control. I want it to be aligned to its parent TPanel
.
The problem is that no matter what I try the WMP control is always set to its initial size without the possibility to resize it.
...ANSWER
Answered 2019-Dec-17 at 05:54This is a bug in Delphi 7 TOleControl.SetBounds
in OleCtrls. it was fixed in newer versions.
QUESTION
I need to set the tooltip of a control that is inside a user control. I cannot modify the user control since it is compiled. The reason for changing the tooltip is because of its language.
...ANSWER
Answered 2020-Jan-15 at 19:39Now it works correctly. I have no idea how to mark your answers. Thank you
QUESTION
it's me and my projects for school again. This time I wanted to insert a video into PowerPoint using file path via WMP ActiveX, so I drew one as follows: (uiMode
set to "none"
)
When the slide show starts, I transfer all data from an Excel file to the presentation, including the paths to the video. Then I hide the WMP with Slide85.WMP.uiMode = "invisible"
.
When the time comes, I want the WMP to appear at the original size that i drawn and the linked video to play, so I used these codes:
...ANSWER
Answered 2019-Dec-30 at 14:54As mentioned on this Microsoft help page, you have to set height and width parameters in code for the player to reserve the space when triggering uiMode="invisible": Player.uiMode
As an alternative, you can draw the size as you have done, then use VBA to hide or show it on the slide with code like this:
QUESTION
I'd like to figure out why my H.264 encoded stream in a MP4 container does not play back correctly in Window Media Player 12 in Windows 7. The file plays well in VLC and other players including WMP from Windows 10 but I'm just wondering why WMP12 from Win 7 does not play it.
It seems that only I-type frames are displayed and blank black frames are shown instead of all P-type frames in between. If I force my device encoder to produce only I-type frames then the file plays back ok in WMP12 (Win 7) but the size of the file increases too much. What are the limits of H.264 decoder in Windows 7?
I'm adding below ffprobe -show_frames video.mp4
(just a few frames but there are no reported errors by ffprobe):
ANSWER
Answered 2019-Dec-13 at 12:49I figured out that if I add:
QUESTION
I have this Skin Programming Reference for Windows Media Player: https://docs.microsoft.com/en-us/windows/win32/wmp/skin-programming-reference
According to that reference BUTTON.image
is the image attribute that specifies or retrieves the default image of the BUTTON
, I wanna change the color or skin of a BUTTONELEMENT
such as play, pause, stop, next, prev, etc., how do I set those properties through an AxWMPLib.AxWindowsMediaPlayer
object? Is it even possible or does it need something else? I'd appreciate both C# or C++ examples.
ANSWER
Answered 2019-Jul-05 at 21:38Everything about skins is explained in the old WMP 9 SDK (Windows Media Player 9 Series Software Development Kit
There is a basic sample, RemoteSkin, which implements the IWMPRemoteMediaServices as explained at Using Skins with the Windows Media Player Control
Skins have the .wms or .wmz extension and are just zip files with all necessary files inside
You can find many examples of more advanced skins on the Web, like World Of Warcraft Skin for Windows Media Player (you can extract the files from WoW.wmz)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install wmp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page