Topic: Windows Media Player plugin  (Read 10486 times)

Windows Media Player plugin
« on: August 21, 2015, 04:50:12 PM »

0scar

  • Code Baker
  • Chef
  • ***
  • Date Registered: Jan 2013
  • Posts: 309
This is a Wmplayer plugin for win10pe and win8.1SE
Tested for x86 only.
Also included Dvobsub filter (for mp4 and avi movies subtitles) and CoolSoft VirtualMidiSynth.
Win10PE own MS MIDI is not working, I dont know why.
Download:
http://www.adrive.com/public/9dcYTQ/Wmplayer_plugin.7z




Re: Windows Media Player plugin
« Reply #1 on: August 22, 2015, 05:09:48 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Thanks Oscar,

I don't test SE much, and not interested in media player,
 Besides I feel to give you some plugin writing tips.

*
[Variables]
%ProgramFolder%=WIndows#$sMedia#$sPlayer
-->
[Variables]
%ProgramFolder%=WIndows Media Player


*

[Variables]
%Target_ProgDir%="%TargetDir%\Program Files"


no need %Target_ProgDir%, when you use RunFrom,RAM ,
 there already exists %Target_Prog% which becomes %TargetDir%\Program Files

Test:
Code: [Select]
[Process]
RunFrom,RAM
Echo,%Target_Prog%

shortly, for such Program Files plugins, use RunFrom,RAM at top of process ;)


*
This to me is better:

[SourceDisksFolders]
If,Not,ExistDir,%Target_ProgDir%\%ProgramFolder%,DirMake,%Target_ProgDir%\%ProgramFolder%
FileCopy,%Source_ProgDir%\%ProgramFolder%\*,%Target_ProgDir%\%ProgramFolder%
--->
[SourceDisksFolders]
If,ExistDir,%Target_Prog%\%ProgramFolder%,Call,DirDelete,%Target_Prog%\%ProgramFolder%
DirCopy,%Source_ProgDir%\%ProgramFolder%,%Target_Prog%

==> it makes a clean start of target folder ;) without additional things from previous if happens...


*
for Shortcuts:
On [Variables] section add ProgramTitle ProgramEXE values

[Variables]
%ProgramTitle%=WMPlayer
%ProgramEXE%=wmplayer.exe

Than this will work:

[ShortCuts]
Add_Shortcut,Desktop
Add_Shortcut,StartMenu,Accessories

(side by side with RunFrom,RAM at top as mentioned before)


*
Avoid spaces after Require_FileQ,
ex:
Require_FileQ, cewmdm.dll
-->
Require_FileQ,cewmdm.dll





*****
VirtualMidiSynth Dvosub

is it 32bit or 64bit, being at section Win10PESE I guess 64bit,

If 64 bit, put one line to top of Process

[Process]
If,Not,%SourceArch%,Equal,x64,Exit,"%ScriptTitle% only for x64"

Reason behind:
you are extracting to system32, which may be trouble with x86 builds since .dll I guess all x64  :wink:



+
Dvosub
[Process]
%ProgramFolder%=
-->
[Process]
%ProgramFolder%=VSFilter


Avoid using unpack, it is slow and may cause trouble in future since on log it doesn't give warning and info about files !!
 which is headache when there is trouble on builds.......

use something like this:

Code: [Select]
[Process]
If,Not,ExistDir,%Target_Prog%\%ProgramFolder%,DirMake,%Target_Prog%\%ProgramFolder%
//-
If,ExistDir,%ProjectTemp%\Extract_Plugin,Call,DirDelete,%ProjectTemp%\Extract_Plugin
DirMake,%ProjectTemp%\Extract_Plugin
ExtractFile,%ScriptFile%,Folder,VSFilter.dll,%ProjectTemp%\Extract_Plugin
ExtractFile,%ScriptFile%,Folder,DVobSub.ax,%ProjectTemp%\Extract_Plugin
ExtractFile,%ScriptFile%,Folder,vobsub.dll,%ProjectTemp%\Extract_Plugin
//-
FileCopy,%ProjectTemp%\Extract_Plugin\VSFilter.dll,%Target_Prog%\%ProgramFolder%
FileCopy,%ProjectTemp%\Extract_Plugin\DVobSub.ax,%Target_Sys%
FileCopy,%ProjectTemp%\Extract_Plugin\vobsub.dll,%Target_Sys%
//-
Call,DirDelete,%ProjectTemp%\Extract_Plugin
//-
Require,File,Regsvr32.exe
Add_Shortcut,AutoRun,,#$pSystemRoot#$p\system32\regsvr32.exe,%ProgramTitle%,#$q%PE_Programs%\%ProgramFolder%#$q,"/s #$q%PE_Programs%\%ProgramFolder%\vsfilter.dll#$q"

-
when using Regsvr32.exe, use Require,File,Regsvr32.exe to fit the requirement

-
I guess you can avoid unpack same way on VirtualMidiSynth
;)



****
Small small things, I am sure following one by one you will get them and get better picture on your mind  :cool:



:turtle:

Re: Windows Media Player plugin
« Reply #2 on: August 22, 2015, 05:10:53 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
And an additional thing:

****
There is a new command Call,CreatePlugin on latest Macro Library, to create empty plugins
(you can download new ML with small "a" button and "Download Latest ML" button)


ex on CodeBox:
Code: [Select]
AddVariables,%API%,ApiVar,GLOBAL
Call,CreatePlugin,"%BaseDir%\Projects\MyPlugins\AppsMy\1Prepare\My New Simple Plugin.script"
Call,CreateLink,"%BaseDir%\Projects\MyPlugins\AppsMy\1Prepare\My New Simple Plugin.script",%ProjectDir%\AppsMy\1Prepare
System,ReScanScripts

ps: I believe you already know using builder codebox ??

Above will create new plugin out of project folder,
 than create a link to project folder,
  than rescans to get new plugin visible on builder gui  :wink:

http://theoven.org/index.php?topic=45.0

Quote
Since ChrisR on holiday, When you update ML, at zz_Drivers.script
Change
Call,CompareVersions,%HostOSVersion%,9600
-->
Call,CompareVersions,%HostOSVersion3%,9600


:turtle:

Re: Windows Media Player plugin
« Reply #3 on: August 22, 2015, 09:02:08 PM »

0scar

  • Code Baker
  • Chef
  • ***
  • Date Registered: Jan 2013
  • Posts: 309
Thanks Lancelot.

Thanks Oscar,

VirtualMidiSynth Dvosub

is it 32bit or 64bit?, being at section Win10PESE I guess 64bit,



It is for 32bit. It is working fine.
BTW, this is the app home page http://coolsoft.altervista.org/en/virtualmidisynth.
If someone knows what is needed for win10pe own midi synthetizer to work please let me know.



Re: Windows Media Player plugin
« Reply #4 on: September 03, 2015, 02:05:26 PM »

0scar

  • Code Baker
  • Chef
  • ***
  • Date Registered: Jan 2013
  • Posts: 309
Solved the MIDI issue!
The following registry entries are necessary for Mpc-hc or Wmplayer to play midi files with the bundled MS GS Wavetable Synth (win10pe 32b):

Code: [Select]
[Process]
RegHiveLoad,Tmp_Software,%RegSoftware%
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows NT\CurrentVersion\Drivers32",wave,wdmaud.drv
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows NT\CurrentVersion\Drivers32",midi,wdmaud.drv
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows NT\CurrentVersion\Drivers32",mixer,wdmaud.drv
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows NT\CurrentVersion\Drivers32",aux,wdmaud.drv
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows NT\CurrentVersion\Drivers32",wave1,wdmaud.drv
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows NT\CurrentVersion\Drivers32",midi1,wdmaud.drv
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows NT\CurrentVersion\Drivers32",mixer1,wdmaud.drv
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows NT\CurrentVersion\Drivers32",aux1,wdmaud.drv
RegHiveUnLoad,Tmp_Software

Re: Windows Media Player plugin
« Reply #5 on: January 30, 2019, 04:16:43 AM »

WIEBENOR

  • Jr. Chef
  • **
  • Date Registered: Apr 2015
  • Posts: 53
Does anyone have the plugin listed here??? The link is dead... also, can someone rework it so it has the midi fix included???

Re: Windows Media Player plugin
« Reply #6 on: January 30, 2019, 04:42:11 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppsGS\Supplementary\MultiMedia\mpc-hc.script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppsGS\Supplementary\MultiMedia\mpc-hc_file.script"

See:
Downloading Plugins with a CodeBox:
http://TheOven.org/index.php?topic=2672.0

Re: Windows Media Player plugin
« Reply #7 on: January 30, 2019, 05:26:33 AM »

WIEBENOR

  • Jr. Chef
  • **
  • Date Registered: Apr 2015
  • Posts: 53
I do appreciate you pointing me there, but unless it installs windows media player, NOT Media Player Classic (i like built in player better for music) then it's not what I'm looking for... also, I have that plugin already, in the project. unless you guys stopped shipping it or black edition with the project??? I do thank you for the suggestion though...

Re: Windows Media Player plugin
« Reply #8 on: January 30, 2019, 05:37:43 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Sorry, I mixed plugins.

Oscar is an active member, I guess Oscar will be around to provide an updated plugin.

+
we do not have a "black edition".

+
While waiting Oscar, here are rest of multimedia plugins that you maybe interested, or not.
-
Codec packs will also work with Oscar plugin.
VLCPlayer_vlc2x (+VLCPlayer_vlc2x_207_x64_File + VLCPlayer_vlc2x_207_x86_File ) is a VLC version for midi....

Code: [Select]
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\Combined-Community-Codec-Pack_Setup.Script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\Combined-Community-Codec-Pack_Setup_File.Script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\Combined-Community-Codec-Pack_Setup_x64_File.Script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\K-Lite_Codec_Pack_Setup.Script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\K-Lite_Codec_Pack_Setup_1_Basic_File.Script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\K-Lite_Codec_Pack_Setup_2_Standard_File.Script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\K-Lite_Codec_Pack_Setup_3_Full_File.Script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\K-Lite_Codec_Pack_Setup_4_Mega_File.Script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\Test MultiMedia.Script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\VLCPlayer_Portable_paf.script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\VLCPlayer_Portable_paf_File.Script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\VLCPlayer_vlc.Script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\VLCPlayer_vlc2x.Script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\VLCPlayer_vlc2x_207_x64_File.Script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\VLCPlayer_vlc2x_207_x86_File.Script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\VLCPlayer_vlc2x_208_x64_File.Script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\VLCPlayer_vlc2x_208_x86_File.Script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\VLCPlayer_vlc_x64_File.Script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\VLCPlayer_vlc_x86_File.Script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\VLC_Player.Script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\Winamp2.script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\Winamp5.script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\Winamp5_Lite.Script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\Winamp_Full.Script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\WinX_DVD_Ripper_Platinum.Script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\WinX_DVD_Ripper_Platinum_File.Script"

:turtle:

Re: Windows Media Player plugin
« Reply #9 on: January 30, 2019, 05:51:05 AM »

WIEBENOR

  • Jr. Chef
  • **
  • Date Registered: Apr 2015
  • Posts: 53
Sorry... black edition might have been in the windows 8 PE... dont see it in win10pe, but i did see the option to use MPC-BE, in one of my projects I downloaded before... ill have to see which it was...

PS. I did send him a PM asking if he still had a copy, so we'll see...

**Edit**  I looked and can't find the MPC-BE option so either it was removed, or was a script I downloaded separately for it... its supposedly better in some ways to the home cinema fork...
« Last Edit: January 30, 2019, 06:08:05 AM by WIEBENOR »

Re: Windows Media Player plugin
« Reply #10 on: January 30, 2019, 06:17:18 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
You mean mpc be

maybe ?
https://sourceforge.net/projects/mpcbe/

I guess, If you enable mpc plugin on your builds, "mpc be" should work fine too... ?

If that is the case, It will be quite easy to update the Plugin with "be" support.
I will follow your feedback, Let us know your results.

:turtle:

Re: Windows Media Player plugin
« Reply #11 on: January 30, 2019, 09:25:05 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Hi WIEBENOR,

I quickly create mpc-be plugin based on mpc classical plugin
not tested on real env, let us know if it works there:

Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\mpc-be.Script"
Call,DownloadX,"%BaseDir%\Projects\Yomi\AppY\Supplementary\MultiMedia\mpc-be_File.Script"

Downloading Plugins with a CodeBox:
http://TheOven.org/index.php?topic=2672.0

:turtle:

Re: Windows Media Player plugin
« Reply #12 on: January 30, 2019, 12:57:45 PM »

bob.omb

  • Moderator, Code Baker
  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 1261
@WIEBENOR,

      :confused:

http://theoven.org/index.php?topic=2493.0

As a remider, look in the "General Plugins" section before posting SE plugin requests... (Or re-posting SE plugin requests, unless your asking for changes, which you did not)


« Last Edit: January 30, 2019, 01:00:27 PM by bob.omb »

Re: Windows Media Player plugin
« Reply #13 on: January 30, 2019, 02:40:35 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
MS Windows Media Player
+ requires
MS NetFramework
___________________
= Very Heavy File Requirement

Re: Windows Media Player plugin
« Reply #14 on: January 31, 2019, 01:35:17 AM »

WIEBENOR

  • Jr. Chef
  • **
  • Date Registered: Apr 2015
  • Posts: 53
Thanks anyways guys... i have both those plugins already, and in fact I started that discussion for black edition you pointed me to,(which i have said I prefer built in WMP over, in PE) but im wondering what everyone seems to have against windows media player??? Yes, there are better ones, but it is my preferred player, as its wmploc DLL is very editable with ResHacker, making my backgrounds custom, and it plays the main audio file versions that I would use in a PE on a daily basis... also, I'm not sure if i have made any errors posting here, as Bob posted above, but if i have i am sorry... thank you all for all you do here...

Re: Windows Media Player plugin
« Reply #15 on: January 31, 2019, 01:50:18 AM »

bob.omb

  • Moderator, Code Baker
  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 1261
@WIEBENOR,

   Your fine  :thumbsup: just a reminder you had another post in an attempt to keep the forum tidy. Just keep an eye out...

Also, if you would like a regular WMP plugin I'll take a look this weekend and see whats involved. It is always better to have something sourced from the install media if possible..   :wink:
« Last Edit: January 31, 2019, 01:52:00 AM by bob.omb »

Re: Windows Media Player plugin
« Reply #16 on: January 31, 2019, 02:14:02 AM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
Bob,
just need to adjust required file process of XPEPlugin
and remove a G or 2 but does also require NetFramework

Re: Windows Media Player plugin
« Reply #17 on: January 31, 2019, 02:42:41 AM »

WIEBENOR

  • Jr. Chef
  • **
  • Date Registered: Apr 2015
  • Posts: 53
Well... thank you very much bob... ive tried integrating Windows Media Player myself,(specifically for Windows 8 or 10) and had a partial script in the past, and failed, but I downloaded a script for it from one of the winpe forums a few years ago,  for Windows7(for a win7pese project I was messing with), and it worked, so im not sure what I've been doing wrong... all I did was created a script that added the registry entries for WMP and i also put the required WMP files in the additional files folder... but other than that, I couldn't figure out how to tell what wasn't right in the end to make it not launch, as im not the most accomplished at that stuff, so after a week or 2 i decided to abandon it, for now... if i had my first script attempts still, id link you a copy, but im still very sloppy, and copy/paste in my plugin building... thanks again, for at least taking a look at it, as i do prefer my stuff to be as source based as possible...
« Last Edit: January 31, 2019, 02:44:10 AM by WIEBENOR »

Re: Windows Media Player plugin
« Reply #18 on: January 31, 2019, 08:45:15 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
for it from one of the winpe forums a few years ago,  for Windows7(for a win7pese project I was messing with), and it worked, so im not sure what I've been doing wrong...

You missed sharing such plugin around, things lost quite easily on local disks if not on topics.  :wink:
And there is not much interest to create a windows media player plugin in passing years.

:turtle:
« Last Edit: January 31, 2019, 08:46:49 PM by Lancelot »

Re: Windows Media Player plugin
« Reply #19 on: February 13, 2019, 08:50:50 PM »

0scar

  • Code Baker
  • Chef
  • ***
  • Date Registered: Jan 2013
  • Posts: 309
Wmplayer   Win10  v.1809  X86/64 plugin

 

Powered by EzPortal