windows-media-player

best way to build graph for MPEG2 transport stream

浪子不回头ぞ 提交于 2019-12-09 01:39:12
问题 on windows 7 the windows media player supports .ts files very well, in the sense that windows media player knows how to handle such files without any additional codec packs. however if I try to use graphedit to "render" a .ts file, it complains it doesnt know how to build a graph for it. what method does windows media player use to demux/decode these files? is it directshow? windows media foundation? BDA? Microsoft TV Technologies? unified tuning model? whatever the method they use, is

iPhone compressed audio formats that will play on Windows Media player

戏子无情 提交于 2019-12-08 11:08:27
问题 I have to record audio on an iPhone that will play back on Windows Media Player, using no non-standard codecs; that is, using no codecs that don't already ship with WMP. (Corporate requirement.) The audio has to go base-64 to a server, so I need to get the audio size as small as possible. Even at 8Kb recording frequency, AIFF files take ginormous amounts of space. I can't seem to find a compressed AIFF format that WMP will swallow. 回答1: Best bet is to write WAV files with ulaw or alaw

install dependencies automatically when user install software (.Net)

隐身守侯 提交于 2019-12-08 06:32:41
问题 I'm building a software using .Net 3.5 (c#, WPF), My software need to user install .Net 3.5 and Media Player 11. I want to build an installer that automatically install this two component while user install main software. How i can fix that? this components: 1- .Net 3.5 2- Media Player 11 回答1: Create a setup package using visual studios instructions (Updated Link) . for vs2010: On the File menu, point to Add, then click New Project. In the resulting Add New Project dialog box, in the Project

Programmatically Controlling Windows Media Player, Preferably From Java

核能气质少年 提交于 2019-12-08 03:39:51
问题 I'm adding functionality to an existing Java application that's already been deployed extensively. (So there are some design decisions that I can't touch unless I have a seriously compelling reason.) The app controls a PC broadcasting audio and visual to a small local TV network. Right now, it mostly broadcasts static slides, but it can also do background music at the client's discretion. The background music (CD, local music files, internet radio, whatever) is handled by Windows Media Player

How to control the system volume using javascript

馋奶兔 提交于 2019-12-07 05:02:20
问题 I am using media player to play audio and video. I am creating own button to increase and decrease the volume of the media player. working fine too. Problem: Even after reaches 0% volume its audible. If the player volume increase the system volume also be increased. Is it possible. How to achieve this task. Control: <object id="mediaPlayer" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"

Programmatically Controlling Windows Media Player, Preferably From Java

匆匆过客 提交于 2019-12-06 13:19:01
I'm adding functionality to an existing Java application that's already been deployed extensively. (So there are some design decisions that I can't touch unless I have a seriously compelling reason.) The app controls a PC broadcasting audio and visual to a small local TV network. Right now, it mostly broadcasts static slides, but it can also do background music at the client's discretion. The background music (CD, local music files, internet radio, whatever) is handled by Windows Media Player. My current project is adding narration to the static slides. When the narration plays, I need to send

How to turn off Video Acceleration programmatically

陌路散爱 提交于 2019-12-06 07:31:45
问题 I'm using the Windows Media Player OCX in a program runned on hundreds of computers (dedicated). I have found out that when video acceleration is turned on to "full", on some computers it will cause the video to fail to play correct, with green squares between movies and so on. Turn the acceleration to "None" and everything is fine. This program is runned on ~800 computers that will autoupdate my program. So I want to add to the startup to my program that it turns off the video acceleration.

Get Song Currently Playing In Windows Media Player

寵の児 提交于 2019-12-06 07:23:33
问题 Using C# how can I get the name of the song, artists etc that is currently playing in Windows Media Player? Applications like MSN Messenger / Google Talk do this. Thanks 回答1: For C# I spent hours trying to get it to work for my program. Finally I figured it out. This solution is assuming you have either the windows media player control ON a form in your project or have created the object through code.. create a new Windows Media Player Song object and point it to a file create a string to

How to use WebResponse to Download .wmv file

不羁岁月 提交于 2019-12-06 03:38:51
问题 I'm using the following code to grab a wmv file through a WebResponse. I'm using a thread to call this function: static void GetPage(object data) { // Cast the object to a ThreadInfo ThreadInfo ti = (ThreadInfo)data; // Request the URL WebResponse wr = WebRequest.Create(ti.url).GetResponse(); // Display the value for the Content-Length header Console.WriteLine(ti.url + ": " + wr.Headers["Content-Length"]); string toBeSaved = @"C:\Users\Kevin\Downloads\TempFiles" + wr.ResponseUri.PathAndQuery;

AccessViolation exception when form with AxWindowsMediaPlayer closed

纵饮孤独 提交于 2019-12-05 23:59:32
I have a AxWMPLib.AxWindowsMediaPlayer on a form. When I close the form, I get "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." exception. It is OK with hiding the form but not with closing. Everything's fine when the component is removed from the form. This is Winforms .Net3.5. Any help appreciated. This was happening to me, and it was when closing the form during a key press. Seems the WMP control will cause problems if it has a key event to process. Example with Form.KeyPreview = True Sub Form_KeyDown(e As KeyEventArgs)