Click here to Skip to main content
15,891,777 members
Everything / Media

Media

media

Great Reads

by Steve Hoult
Creation of an Audio analysis framework to enable developers with little to no understanding of audio analysis to develop audio-driven games
by Maxim Kartavenkov
This is a guide on how to configure your application, service or driver to handle appearing the new devices or device removal avoiding reboot request.
by Rion Williams
Common approaches to responsive design
by Mukit, Ataul
Why sometimes AVI files captured through video camera recording cannot be opened when the camera loses power (similar case for downloaded AVI when internet goes off) and how to solve it

Latest Articles

by Maxim Kartavenkov
This is a guide on how to configure your application, service or driver to handle appearing the new devices or device removal avoiding reboot request.
by Steve Hoult
Creation of an Audio analysis framework to enable developers with little to no understanding of audio analysis to develop audio-driven games
by Anthony Fountaine
A quick and easy way to extract multiple video clips from GoPro video footage
by Ravimal Bandara
An implementation of Bag-Of-Feature descriptor based on SIFT features using OpenCV and C++ for content based image retrieval applications.

All Articles

Sort by Updated

Media 

13 Oct 2023 by Maxim Kartavenkov
This is a guide on how to configure your application, service or driver to handle appearing the new devices or device removal avoiding reboot request.
28 Jun 2023 by BlueVLC
Screenshot Error:Error:Object reference not set to an instance of an object.Error is on the line: AxVLCPlugin21.playlist.items.clear()When I try to clear the vlc playlist within Visual basic.net I get the above...
28 Jun 2023 by Member 11129220
Lösung zur Option Dim zählervideo As Integer = 0 Private Sub Button9_Click(sender As Object, e As EventArgs) AxVLCPlugin21.playlist.add(New Uri(playerdatei).AbsoluteUri) AxVLCPlugin21.playlist.playItem(zählervideo) zählervideo += 1 End Sub ...
17 Feb 2023 by OriginalGriff
This is not a video repair site: we are here for software development problems and this is not that! To be honest, you are unlikely to find a free repair tool that will work with anything that large: most free tools are trial versions and only...
18 Aug 2021 by Chinedum Ezeozue
I've just finished implementing my app's weather icons, now I'm trying to play weather sounds on the app based on the icons the app is displaying using MediaPlayer. After doing long hours of thorough research, I found out to my shock that no one...
18 Aug 2021 by Maciej Los
I'd suggest to reject set of if's. Use Dictionary (Java Platform SE 8 )[^] instead, where: Key - icon Value - song. More details - here: The Java Dictionary Class: Definition & Example | Study.com[^]
17 Aug 2021 by Richard MacCutchan
if icon || clear_sky That is not valid Java, what are you expecting? MediaPlayer overview �|� Android Developers[^]
15 Aug 2021 by HackerRhino
Hello. I'm trying to handle events of media in my PHP webpage project using Laravel framework and I'm pretty new to it. I have an audio and an video, the audio will automatically play when the webpage is loaded and I want when the video starts,...
15 Aug 2021 by Richard Deeming
Quote: ... the audio will automatically play when the webpage is loaded ... Aside from annoying your users, this behaviour will almost certainly be blocked: Autoplay guide for media and Web Audio APIs - Web media technologies | MDN[^]
15 Jul 2021 by Steve Hoult
Creation of an Audio analysis framework to enable developers with little to no understanding of audio analysis to develop audio-driven games
31 May 2021 by Selim Boz
I made a media player. I want to improve it. I want to show the same media player that I made on the form1 page, on the form2 page. when a video plays I want to show both synchronously. Edit: summary, I want to use one media player to show a...
22 May 2021 by Chinedum Ezeozue
I'm trying to use my sound from the raw file that whenever I click my search button, it will make a little sound. But it returns the following error: cannot resolve method create in MediaPlayer Please how do I fix it? My HomeActivity...
20 May 2021 by Richard MacCutchan
Either one or both of your parameters do not match any of the create method overloads. See MediaPlayer �|� Android Developers[^] for correct usage.
30 Apr 2021 by maicart
I'm creating an app with language learning exercises and would like to measure the users' accuracy. In one of the exercises, the users have to click on several words to rebuild a sentence (like Duolingo). The words "move up" towards the correct...
19 Feb 2021 by Member 3498572
test without item AxVLCPlugin21.playlist.clear
14 Oct 2020 by link1234
Hi. I have WPF Project and use media element. I have Website and I want Stream site video (stream Online) directly on my wpf and media element. How can I do it? What I have tried: I do not know how to do it and When using mediaelement.Source...
14 Oct 2020 by Sandeep Mewara
Sounds like, you have defined source of video. With it, you can play video: 1. WPF app using MediaElement Refer:Playing video - The complete WPF...
3 Jun 2020 by Richard MacCutchan
According to MediaElement.PosterSource Property (Windows.UI.Xaml.Controls) - Windows UWP applications | Microsoft Docs[^] it is present in that version of Windows 10. [edit] That refers to UWP only. Microsoft docs could be a bit easier to...
3 Jun 2020 by Member 12618031
I am using MediaElement in my program. In various articles I see the...
20 Feb 2019 by Gerry Schmitz
You haven't proved that the file is not corrupt. Or the "window" is not "too small". Why don't you get a "working sample" working first (with "that" file)? There is no "quick answer" because you did not do some "quick testing". Embedding the Windows Media Player Control in a C Solution -...
20 Feb 2019 by abdul subhan mohammed
Dear All, I have one windows application where I want to play audio/videos files. First of all, I have added the reference to the WindowsMediaPlay in Com tab in my project solution. I have then added this as the tool by right-clicking in the menu tool and selected the WindowsMediaPlayer. What...
13 Dec 2018 by TheBigBearNow
So far I haven’t had luck with my loading gif image when I am loading/checking my database connection I click my login button and I get no errors in my login I start my gif but I also start it in the dowork and progress section im not sure which section is actually right I know not to mess wih...
13 Dec 2018 by Gerry Schmitz
Yes; you display the (new) .gif in the "ProgressChanged" handler (because it runs on the caller's UI thread versus DoWork which "is" the background worker thread). And you have to call "ReportProgress" (to invoke ProgressChanged) from DoWork; it doesn't run by itself.
28 Nov 2018 by Anthony Fountaine
A quick and easy way to extract multiple video clips from GoPro video footage
28 Sep 2018 by Member 13999828
I am a little bit perplexed by this: I can insert the control fine, but from there on the instructions don't work for me. The following: 6: Right click to control and select Add Variable 7: Enter m_MediaPlayer (or whatever you want) as the control variable without changing any other...
16 Jul 2018 by Dave Kreskowiak
You don't have a simple method to do that. In order to use the built in player, the data has to be unencrypted. Now, that's not to say it's impossible. You just have to write an audio filter driver[^] (in C) that decrypts the stream on-the-fly. The filter driver would sit in the filter graph...
16 Jul 2018 by AminMhmdi
i have some mp3 collection and i want to able play it on CD/DVD i write audio player using c# but i dont know how to protect my audio file is there any way to encrypt audio files ?? what is best way to do it to protect this audio file from illegal use? What I have tried: i play sound using...
11 Jul 2018 by Member 13775524
I have a question related to DirectShow transform filter. I use USB2.0 camera to get the real-time video at 30fps (1920x1080) and I want to process the video image by inserting a transform filter. But after the insertion, the frame rate is decreased. For example, the processing time is about...
19 Dec 2017 by Richard MacCutchan
Quote: Please suggest me some site where I can get knowledge www.google.com[^]
30 Aug 2017 by Ravimal Bandara
An implementation of Bag-Of-Feature descriptor based on SIFT features using OpenCV and C++ for content based image retrieval applications.
18 Aug 2017 by SierraMike
Read multimedia files details and get them as object properties
3 Jul 2017 by zapsolution
Windows 10 multimedia player 64-bit
24 May 2017 by Pratik Prajapati
I'm converting MPMediaItem to NSData using below code, when I'm playing a song using NSData in Bluetooth speakers song not making clear sound. Its like this code may reduce song quality when converting to NSData. So my question is how I maintain high quality song or any other way to get high...
16 Nov 2016 by Member 12833990
Hello,I am use for play sound ; string soundPath = "G:\\altYapiTest\\altYapiTest\\Resources\\ses2.wav";but I want use this string(etc.) soundPath = Properties.Resources.ses2I added to the Resources.What I have tried:string soundPath =...
16 Nov 2016 by Richard Deeming
To load the file from an embedded resource, you're going to need to use the SoundPlayer.Stream[^] property instead of the SoundLocation property.SoundPlayer sesCal = new SoundPlayer();sesCal.Stream = Properties.Resources.ResourceManager.GetStream("ses2.wav");sesCal.Play();NB: The...
27 Oct 2016 by sumith sudesan
hr = MFCreateMediaType(&mediaTypeIn);hr = mediaTypeIn->SetGUID(MF_MT_MAJOR_TYPE, MFMediaType_Video);hr = mediaTypeIn->SetGUID(MF_MT_SUBTYPE, MFVideoFormat_AYUV);hr = mediaTypeIn->SetUINT32(MF_MT_INTERLACE_MODE, MFVideoInterlace_Progressive);hr = MFSetAttributeSize(mediaTypeIn,...
27 Oct 2016 by KarstenK
The error message is clear that there is something not properly in configured in IMFSinkWriter.You better read the Microsoft documentation about encoding H.264. Take a deeper dive into the Video Type GUIDs.Often arent all conversions supported. So try some variations.
12 Sep 2016 by Darren_vms
At api 24 it does MediaRecorder | Android Developers[^] not sure if that helps....You would have to stop and start and merge the files, here is an implementation of just that for android GitHub - lassana/continuous-audiorecorder: Implementation of the missing feature in Android SDK: audio...
12 Sep 2016 by Mansi.Shah27
I am using MediaRecorder to record audio in Xamarin Android. I want to add Pause and Resume functionality to this. MediaRecorder does not have built in methods to Pause and Resume the recording. How can I accomplish this? Do I need to store separate audio files when Paused and merge them in a...
12 Sep 2016 by Member 12503744
I have Print button my page, which is executing window.print() so onclick of print button I want the same output which I am getting on page but while printing the page it is not coming as expected, please click on the below provided links for screenshots of output I am getting. Thanks in...
25 Aug 2016 by Patrice T
If you read carefully the error message, it tells you thatQuote:ReferenceError: FMS_VERSION is not definedShould be pretty obvious what it means.In this code,application.getFmsVersion = function(){return FMS_VERSION;}you use FMS_VERSION, but you didn't say what is FMS_VERSION,...
25 Aug 2016 by Donny Rebecca
This code is from Modenacam FMS....Everything is working except the chat.When the performer from the cam site logged in it gives this message at the server:onConnectUser is ACEPTEDonConnect, performerId: 16, pasword: 645062a5e513f1cd2e1a8d4e64789b4ccd05e795f51a9e3d4f72c4cc61337a87,...
27 Jul 2016 by Member 11512059
I need to cut a part of video clip which is possible by ffmpeg but not want to use ffmpeg and want to strict with Media Foundation approach in asp.net. Can anyone suggest me how could be that possible. Requirement is that want to cut the live stream from end position to 4 minute back and then...
21 Jul 2016 by Victor Campos
Can AxInterop.WMPLib.dll and Interop.WMPLib.dll be used with any Windows Media player version? Are 32 or 64 bits?What I have tried:I'm working on a small media player.
21 Jul 2016 by Richard MacCutchan
Check the documentation at Using the Windows Media Player Control with Microsoft Visual Studio (Windows)[^].
4 May 2016 by Marla Sukesh, Pradeep Shet
This is part 2 day 2 continuation of article Learn HTML5 in 3 days.
16 Apr 2016 by Romanprog
Hi! Can't deal with attributes. I request assistance.Next task: create an application that having some sort of list of files (play list) reproduced in the specified time, the desired file. In some cases, must run multiple files simultaneously (overlap).Application used as the basis...
25 Jan 2016 by yaron gilboa
hi -i run a web application on Azure (Azure Web site, implemented using .net MVC), which among other things shows some videos to our customers. For that end i use streaming from an Azure Media service, and allocate a fixed streaming unit (endpoint).The video option is used sporadically,...
19 Jan 2016 by Jochen Arndt
It seems that the full screen mode requires that the video is actually played. When your code tries to switch to full screen mode, the media player has probably not finished his startup. So you have to wait until the state has changed. This can be done using the IWMPEvents::PlayStateChange...
19 Jan 2016 by Member 11380615
Hello,I have been trying to get the media player to play in full screen. I get a runtime exception for hrFull )below in code) which says E_UNEXPECTED catastrophic failure. I see this when I put a break point other wise the code runs fine though it doesnt go to full screen. By right clicking on...
10 Jan 2016 by KarstenK
"ts" is the file suffix for transport stream in DVB, so it is a pure data stream in mp4 data.Download the code from Live555 and look in it. It is easy debuggable and you can learn from it.
10 Jan 2016 by Serkan Onat
HiHere is the steps to start working with Media Player on a MFC Dialog based application1: Create a new dialog based MFC application2: Open dialog designer and remove default label control that's created by VS template3: Right click in dialog and select insert activex...
6 Jan 2016 by Member 11380615
HelloI have been trying to add media player to my mfc dialog and invoke the same to play URL. I have been unsuccessful.OS - Windows 10VS Studio - VS 2013 professionalMy objective is to embed the media player in my application and pass a file name to to start playing.Steps done to...
26 Dec 2015 by Gregory Morse
Custom Media Sink for use with Media Foundation Topologies and WinRT/WRL MediaCapture
13 Dec 2015 by Member 12203922
ive a video source for media element it automaticaly plays once when i launch exe but how can i get it to wait 2 seconds after it finishes playing then play again?Any help will be great thanks
3 Dec 2015 by joemtz88
I'm having problems trying to show wmv files in a windows media player object on a vb.net web form.The wmv are located in a virtual directory and I simply can't show them on the wmp object. I tested if the paths where well constructed and copied and pasted them in the browser and it started...
15 Nov 2015 by George Jonsson
First of all you could probably get a better answer here https://github.com/filoe/cscore/issues[^]When it comes to your code snippet you can simplify like thisprivate void songProgress_ValueChanged(object sender, ValueChangedEventArgs e){ player.Position =...
15 Nov 2015 by ChrisCreateBoss
I'm working in an audio player based on C#The player component I use is made with the CSCore open-source library.I have a circular slider control which has a ProgressValue property based in an Integer. When I play a song, the slider's max value is set to the song's totalSeconds length,...
29 Oct 2015 by Sergey Alexandrovich Kryukov
We do know it. Load a member's account page, then the lists of all posts in all categories and go back to history to the very first post. It's not the fastest action, but I never heard of anyone asking for this feature, so I would assume it will be really rarely needed, so I think this procedure...
28 Sep 2015 by sreeyush sudhakaran
Please make you of following links which may guide you.1) Extract all images from a video frame by frame.Extracting still pictures from movie files, with C#[^]Extract Frames from Video...
23 Sep 2015 by a.anvesh
I will work on FFMPEG , I want a face replacement by my image in a video. For this subject I searched for something which I am describing below. Please let me know if I am wrong, and suggest a more proper procedure for the task.1) I can extract all images from a video frame by frame.2)...
18 Sep 2015 by Afzaal Ahmad Zeeshan
We do not keep a hold of these costs and subscriptions that hosting providers will support. Since the forums are for programming related questions and not about subscriptions and so on and so forth. But as an idea I can say that it would cost you a lot, a fortune cookie! Unlimited HDD space...
16 Sep 2015 by Krunal Rohit
use Microsoft.Phone.BackgroundAudioSee the example,https://msdn.microsoft.com/en-us/library/windows/apps/hh202978(v=vs.105).aspx[^]-KR
16 Sep 2015 by Member 11138570
How can I play an audio clip in Windows Phone 8, using C#?The code should be in c#, and the audio is to be played when I press a button...
25 Aug 2015 by Afzaal Ahmad Zeeshan
In this article I will explain Windows.Media.Capture namespace's MediaCapture element and how it can be used in Windows Runtime to create applications that make use of camera, for capturing photos and videos. Plus, the article shows how to capture the list of photos or videos that are recorded for p
22 Jul 2015 by webmaster442
The Windows Media Player ActiveX behaves differently than the normal Media Player.Hardware Acceleration means that the video frames are not drawn by the CPU, but instead of the GPU. On newer systems the GPU also helps in decoding the video, but this feature requrires a DirectX 10 GPU and...
19 Jul 2015 by User 11060979
Something like this should do the Job:...WindowsMediaPlayer musicplayer = new WindowsMediaPlayer();// Add Event handlermusicplayer.PlayStateChange += new WMPLib._WMPOCXEvents_PlayStateChangeEventHandler(MusicPlayer_StatusChange);...// The eventhandlerprivate void...
19 Jul 2015 by Mohammed Ibrahim.L
hi,try this code. its working i have testedinclude windows media player library before using the below code {OpenFileDialog dialog = new OpenFileDialog();dialog.Filter = "Audio Files (.mp3)|*.mp3";if(dialog.ShowDialog() == DialogResult.OK){ string path = dialog.FileName; ...
19 Jul 2015 by OriginalGriff
Well, you have been told how to play files one after the other:How can I play mp3 file after mp3 file[^]So all you need is to store the path to the file in a text file, and keep an index to the "currently playing" item, probably at a class level.Then read the paths in:private string[]...
18 Jul 2015 by Coder1999
How can I play an mp3 song straight after the previous mp3 song has finished? I've checked everywhere but they aren't detailed enough. I'm using WMPLib. How can I change this code so that I can play another song straight after the previous song has come to an end. #region Playing...
17 Jul 2015 by JamesHadleyChase
Hi,I have a Windows form on which I have a Windows Media Player control placed on it, developed on a Win 7 64 bit machine targeted to any CPU. I can play video files on it seamlessly on my Win 7 machine. However, when the same application is tested on an Win XP SP3 machine, the video...
11 Jul 2015 by Richard MacCutchan
See, a nice CodeProject member has written an article for you: Custom Button Control with Gradient Colors and Extra Image (VB.NET)[^].
10 Jul 2015 by Đăng Khoa
Excuse me, I'm developing Music player and I want to create thumb button same as Windows media player. How to create it? Thanks
17 Jun 2015 by Sergey Alexandrovich Kryukov
You can start here: https://msdn.microsoft.com/en-us/library/windows/desktop/dd317912%28v=vs.85%29.aspx[^].—SA
25 May 2015 by ambikaksm
Hi,I am beginner for media foundation.I'm using media session topology technique to show preview from USB Camera device.I built the topology to show preview and capture video,both are working successfullyI am facing problem in saving image from image stream(still pin). I'm trying...
18 May 2015 by Member 10438217
My gaming application is required to play countdown video I have ".wmv" video clip. I tried below codexaml code: c# code:videoFile.Source = new...
2 Apr 2015 by anandblitz
Check the below link and see if it helps.https://www.leadtools.com/blog/multimedia-imaging/how-to-combine-video-audio-separate-sources/
2 Apr 2015 by Shreesh Uniyal
I am working on a windows 8 app and I have to merge a video file that can be in .mp4 or any other format and an audio file that is.mp3 file and in output I need a .mp4 video file.How can we Implement it in Windows 8 using c# or is there any dll file we can use.
18 Mar 2015 by Rockstar_
Hi Friends, I've uploaded a video file to media server. Now i want to play the uploaded video. Microsoft.WindowsAzure.MediaServices.Client;Microsoft.WindowsAzure.MediaServices.Client.DynamicEncryption;I'm searching for a video player that should play the uploaded video in web...
11 Mar 2015 by Sujith Karivelil
Am using MediaElement in my program.
24 Feb 2015 by Sergey Alexandrovich Kryukov
It does not have its own volume. You can do one of two things: adjust the system volume level or modify the volume of the waveform you want to play.On the system volume control, please see: http://www.dreamincode.net/forums/topic/45693-controlling-sound-volume-in-c%23[^].You can also...
24 Feb 2015 by Member 11380736
C# visual studio windows form project.Is it possible to adjust the volume of a played wav file with the System.Media namespace ?I'm able to play the file with the code found on microsoft.com, but I can't find a way to set the volume at a given level.private void...
9 Feb 2015 by jfriedman
Walks a developer through the implementation of a standards compliant RtspClient and RtspServer.
18 Jan 2015 by Nikul Patel
here are some general links for playing videos in a website using ASP.NET:http://videoplayer.codeplex.com/[^]http://blogs.ugidotnet.org/kfra/archive/2006/10/04/50003.aspx[^]http://www.c-sharpcorner.com/uploadfile/scottlysle/csharpwebvideo04212007133218pm/csharpwebvideo.aspx[^]
17 Dec 2014 by Afzaal Ahmad Zeeshan
Since the IsFullWindow property has to put all other controls to the background, there is no way for you to do this. But yes, there is a way to do this, because many other Media players such as VLC media player makes a use of such technique, to show the subtitles on screen in the Full Window...
17 Dec 2014 by Ste Moore
Hi,I'm creating a simple movie/music player Windows Store app in Visual Studio 2013 using VB.net and XAML.I am using a MediaElement and when it is set as IsFullWindow = True, all my controls are hidden behind it.Is there a way that I can show a TextBlock in front of the MediaElement...
13 Nov 2014 by Member 11232174
Hi! This is my first question on Code Project.I'm making an Android app. In one of the activities I play videos. When one video ends, the second is supposed to start.At the moment this part of my Java file plays one video:@Override protected void onCreate(Bundle savedInstanceState)...
6 Nov 2014 by Jakub Szymanowski
Article presents the problem of the detection and cancelation of impulse noise in acoustic signals using an Exponentially Weighted Least Squares (EWLS) and next step error prediction analysis.
22 Oct 2014 by BillWoodruff
Using Google to search for C#/.Net error messages really does work: look at the top two results for these searches: [^], [^].Very specific issues with specialized, widely-used, 3rd. party .NET tools/libraries are often best asked/answered on the company/open-source-group's Forum, if they...
22 Oct 2014 by Member 11094074
In my project I'm reading audiostreams from my web service using NAudio MediaFoundationReader, and it works like a charm over http. However, when the web service is set to use https, mediafoundationreader throws an COMException in NAudio.dll. (Exception from HRESULT: 0x80072EFD)I know I can...
26 Sep 2014 by CliffRat
Can anyone show how the check for the value of Microphone Boost in Win 7 using C#? I have been looking at the Core Audio API and a wrapper DLL that was written to cover about half of it (MMDevice and EndpointVolume) and haven't been able to see the setting there. I think I need to figure out...
17 Sep 2014 by CliffRat
I have been searching and scouring the web for help with setting audio properties from code. I have several systems in each of several locations that are regularly used to capture spoken audio through the microphone. To insure that the captured audio is sufficiently clear I need to be able to...