windows-media-player

Start/Stop methods for embeded Windows Media Player via VBScript

微笑、不失礼 提交于 2020-01-25 12:46:41
问题 I have following code working fine. <object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="WindowsMediaPlayer" width="242" height="202" style="position:absolute; left:1;top:1;"> <param name="URL" value="C:\HTML\Sounds\oos.wav"> <param name="autoStart" value="0"> </object> I would like to crearte Start/Stop methods in VBScript for this object. So I am doing like Sub Start Dim oElm Set oElm = document.getElementById("WindowsMediaPlayer") if oElm Is Nothing then MsgBox("element does

How to jump X second with axWindowsMediaPlayer in C#

梦想的初衷 提交于 2020-01-11 03:58:06
问题 I am using axWindowsMediaPlayer, and I have a video loaded, but I want to jump X seconds. So, for example, if the current time is 1 minute into the video, I want to jump to 1 minute 10 seconds. 回答1: Okay, I found my solution. I was actually running it correctly, but I was not accounting for the time it takes to load the video. Specifically, the needed code is like axWindowsMediaPlayer1.Ctlcontrols.currentPosition += 10; However I wrote a function to check to see if the video had finished

Stop video at specific position using windows media player SDK

大兔子大兔子 提交于 2019-12-24 21:50:21
问题 Is there a way to stop a video at a particular position using Windows Media Player SDK? I am using C# for embedding the player and trying to see if the IWMPControls3 Interface has any stopping capability at a particular point in terms of position or time. If it can be done, then how to do it? 回答1: It certainly can be done, though I no longer remember the techniques. There are ways that you can access the data in the stream well enough to reconstruct the audio and individual frames of video.

decode MPEG1/2 video with Media Foundation

前提是你 提交于 2019-12-21 22:09:51
问题 I am using Media Foundation to play videos. On windows 7 some videos encoded with Mpeg1/Mpeg2 PS and Windows Media Player can play them, but Media Foundation does not(I tried to register a stub MPEG1Source but it still does not work). I noticed some of these files could be played with directshow but not Media foundation(can not be open at all). I guess "media player" does not use Media Foundation only? Is it possible to use Media Foundation to play these file? If it is not, how does Media

Custom File Format And Codec?

给你一囗甜甜゛ 提交于 2019-12-21 20:15:18
问题 I'm messed up with codec issue for days, and still couldn't see the big picture yet. It is my first time to deal with audio/video formats and codecs. So I really need some help about that. Here is the work. I'm writing several components that is responsible for encoding and decoding customized mpeg files. On top of standart de/compression process (for both audio and video) i will implement some custom de/encryption. Writing both codec and software libraries for this. Things i can't figure out

How to store a video file in exe file in c# and play it

二次信任 提交于 2019-12-20 06:15:27
问题 I am working with winForms in c#. I want to access video file from resources without using any dialog box for load or select. That means I want directly store video file in EXE file. private void startBtn_Click(object sender, EventArgs e) { axWindowsMediaPlayer1.URL=(videoForms.Properties.Resources.Airtel.wmv).ToString(); axWindowsMediaPlayer1.Ctlcontrols.play(); } I get warning while I execute this code. the warning is " byte[] that does not matches the file format" please help me to run

Window Media Player issues two requests for the audio on web page

瘦欲@ 提交于 2019-12-20 02:55:15
问题 I'm using Windows Media Player in a web page. I have version 11 installed so that is the version I'm testing with right now. The player is embedded on the page with this HTML: <OBJECT id='MS_mediaPlayer' width="400" height="45" classid='CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'> <param name=

How to play encrypted video file using WindowsMediaPlayer?

≯℡__Kan透↙ 提交于 2019-12-19 12:49:16
问题 I encrypt my .mp4 into a custom format ( .opu ). Now I should decrypt my file and save them into temp folder at the start of my application. and play them using WindowsMediaPlayer control in C#. So I have the risk of stealing my files from temp folder. What is the best way to prevent stealing my files? How to play encrypted video file using WindowsMediaPlayer? 回答1: The best way would be to perform the decrypt to a stream in memory and play the video from there. That way there is never an on

Is there a documented JavaScript API for Windows Media Player?

主宰稳场 提交于 2019-12-18 10:58:08
问题 I want to use JavaScript to control an embedded Windows Media Player, as well as access any properties that the player exposes. I've found a few hacky examples online, but nothing concrete. I really need access to play, pause, stop, seek, fullscreen, etc. I'd also like to have access to any events the player happens to broadcast. Help would be wonderful (I already have a Flash equiv, just so you know), thanks! 回答1: The API requires ActiveX connectivity native to Internet Explorer, or can use

Windows Media Player on top other DIV

佐手、 提交于 2019-12-18 07:09:07
问题 I have an embed window media player which is always on top of other DIV tags. I used wmode = opaque; WindowlessVideo = -1 but it does not help. Does anyone know how to make it appear below a certain element of the page. <object type="application/x-oleobject" classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" codebase= "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" width="345" height="45"><param name="URL" value= "http://nhacso.net/Music/nghe_song