Jump to content

Question for emby team


jachin99

Recommended Posts

jachin99

Does the core emby development team have anyone that knows MCML currently working on the project, and if so, which version of .net do you typically work from.  The latest version of .net I have seen work with WMC has been .net 3.5 but if newer versions are compatible then I would like to know how you accomplished this.

Link to comment
Share on other sites

Yep.  MCML was never supported beyond 3.5.  You also need a fairly old version of Visual Studio (2008 maybe?).

Link to comment
Share on other sites

jachin99

MCML itself can't go past .net 3.5 but can C# in a WMC program that uses MCML use a newer version of .net?  You seem to be the last WMC developers left on earth so that's why I come here.  I'm still getting my feet wet with development, and I'm trying really grasp what I might be getting myself into.  Somehow every emby server feature is usable in WMC, and I'm not sure how you do it.  

Link to comment
Share on other sites

MCML itself can't go past .net 3.5 but can C# in a WMC program that uses MCML use a newer version of .net?  

 

No.

 

If you don't mind my asking, why in the world are you looking to develop for WMC...? ;)

Link to comment
Share on other sites

jachin99

I still use WMC, and there are actually quite a few other people who still use it.  I've tried things like Kodi, etc. and even emby theater but WMC can play protected content, it works perfectly with my remotes, it has a netflix plugin, and its really stable and reliable.  I believe that there are ways to add new content, etc. to it but I'm trying to figure out just how.  Even if others don't use whatever I might be able to create, it would solve my problems and suit my own personal useage.  A few more questions.  If you do still have someone that knows MCML, and still works on the plugin from time to time do you do this on a WIn 10 machine?  I have MSVS 2008, and the WMC sdk but right now I have both of those on a WIn 10 machine and I can't get MSVS to see any of my reference assemblies.  They will show in my toolbar but I get build errors, and a broken link logo.  I am toying around with what's already included in the SDK

  • Like 1
Link to comment
Share on other sites

jachin99

Perfect example of why I still like WMC.  I installed a dead plugin that lets me view video podcasts from channels like TWIT TV, and the videos have played perfectly every time in WMC.  In Emby and Emby for WMC the interface looks great but when I go into the Twit TV plugin for example, all of the links are gone for all about andriod. I tried playing a video from the juniper plugin, and it crashed emby for WMC.  This is isn't a criticsm of emby as a whole but its just a comparison of my experience with WMC vs. Emby.  WIth emby everything looks nicer, and plugins are redily available but with Emby I've had to troubleshoot, etc. 

Link to comment
Share on other sites

I still use WMC, and there are actually quite a few other people who still use it.  I've tried things like Kodi, etc. and even emby theater but WMC can play protected content, it works perfectly with my remotes, it has a netflix plugin, and its really stable and reliable.  I believe that there are ways to add new content, etc. to it but I'm trying to figure out just how.  Even if others don't use whatever I might be able to create, it would solve my problems and suit my own personal useage.  A few more questions.  If you do still have someone that knows MCML, and still works on the plugin from time to time do you do this on a WIn 10 machine?  I have MSVS 2008, and the WMC sdk but right now I have both of those on a WIn 10 machine and I can't get MSVS to see any of my reference assemblies.  They will show in my toolbar but I get build errors, and a broken link logo.  I am toying around with what's already included in the SDK

 

We have a dedicated Windows 7 machine with all the old tools we have to keep around just for WMC development.

Link to comment
Share on other sites

jachin99

Do you have a wix plugin for MSVS 2008? I remember seeing something about using votive but I never figured it all out.

Link to comment
Share on other sites

throgmorton

Just my two cents, I've been able to maintain my WMC themes written in C#/MCML and all under Visual Studio 2013 and wasn't limited to going back to 2008.  I'm seem to remember there was some small issues to get it to run but no real show stoppers.

Link to comment
Share on other sites

FYI Throg is probably more active in mcml development currently than we are so he is a good resource if he has time to help.

Link to comment
Share on other sites

jachin99

@@throgmorton Do you remember exactly what kind of trouble you did have converting them. I don't seem to be having a problem with Visual studio itself but I think the fact that WMC was never a part of WIndows ten makes it hard to reference any WMC dlls. I already got past converting the WMC SDK samples to newer versions of visual studio. Maybe I can confirm one more time that when I convert projects to be opened in MSVS 2015, they aren't trying to move to .net 4.0 or greater.

Link to comment
Share on other sites

throgmorton

I kept a copy of the WMC dll's don't remember if I pulled them out of the GAC at the time or not, but the version I have in the references is 6.1.0.0 for both Microsoft.MediaCenter and Microsoft.MediaCenter.UI.  The MediaBrowser.Model version seems to be 3.0.5890.20199 and all the System DLLs are from C:\Windows\Microsoft.NET\Framework\v2.0.50727\ version 2.0.0.0

Link to comment
Share on other sites

jachin99

I copied Microsoft.mediacenter.dll & MS.MC.UI.dll into the folder you suggested. I was still getting a warning next to those assemblies in MSVS 2015 on Win 10 so I opened a MSVS command prompt as admin, and used the gacutil to register MS.MC.DLL. After all of that I'm not getting warning message next to my assemblies BUT now I'm getting 36 errors for ehrecobj. Here is an example error message

 

 

Warning The primary reference "ehRecObj, Version=6.0.6000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=x86" could not be resolved because it has an indirect dependency on the .NET Framework assembly "Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which has a higher version "4.0.0.0" than the version "3.5.0.0" in the current target framework. Z

 

Any help would be appriciated

Link to comment
Share on other sites

jachin99

I got around my problems with ehRecobj by using a different version of the assembly. Now my when I try to build I get this error

1> Unhandled Exception: System.BadImageFormatException: Could not load file or assembly 'Microsoft.MediaCenter.UI, Version=6.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. and when I try to add it to the GAC, I get an error telling me I can't load an assembly with delayed signing.

Link to comment
Share on other sites

throgmorton

Its possible one the dependencies of the MediaCenter.UI is missing or wrong so maybe look at the DLLs required for it to work.  The error does sound vaguely familiar (BadImageFormatException), but if I did resolve it I cannot remember what other DLL was needed.  I took a look through my DLLs directory related to MediaCenter and the only ones I have in their related to the windows\ehome directory are ehiProxy.dll (6.39600.16384) and ehui.dll (6.3.9600.16384) but from memory I thought these were related to a dependency around McmlVerifier.exe.

Link to comment
Share on other sites

jachin99

In the Windows 8 version of WMC most of the DLLs were converted to .net 4.0.  I had one in there from 3.5 I think and that was throwing it off.  The errors i get now don't have anything to do with having the wrong assemblies.  Thanks for your help. 

Link to comment
Share on other sites

throgmorton

I'm not sure this has any bearing on your problem, but I was upgrading my MediaCenter machine to Win10 x64 from Win7 x86 (completely fresh install of windows) and for some reason my themes were not loading properly after I installed emby.  When I checked the log file I noticed this error, which struck a chord as you were also receiving BadImageFormatException:

2017-11-06 01:08:36.7903,Error,,Failed to init sqlite! ( Exception.  Type=System.BadImageFormatException Msg=Could not load file or assembly 'system.data.sqlite.dll' or one of its dependencies.  is not a valid Win32 application. (Exception from HRESULT: 0x800700C1) Src=mscorlib Method=nLoadFile Line=0 Col=0 [n] StackTrace= [n]    at System.Reflection.RuntimeAssembly.nLoadFile(String path,, Evidence evidence) [n]    at System.Reflection.Assembly.LoadFile(String path) [n]    at MediaBrowser.Library.Persistance.SqliteItemRepository.GetRepository(String dbPath,, String sqlitePath) [n]    at MediaBrowser.Library.Kernel.GetLocalRepository() ),1,Application

So I took a look at the System.Data.SQLite.dll and although the version seems to be correct (1.0.88.0), the DLL on my Win10 x64 development machine has a significantly different size (1,197KB) vs 891KB on my Win7 machine.

 

When I copied over this larger DLL from my development machine to my newly updated MediaCenter PC the problem is gone and my themes load without issue.

 

Now also when I checked what DLL I'm compiling against in the references of my visual studio the System.Data.SQLite is actually v 1.0.74.0 (727KB).

 

Not sure if this will help resolve your problem but may be of interest. 

 

I also should mention this error could entirely have been my fault. As I basically wanted to keep all my play states and display preferences from my Win7 machine so I basically just copied the entire C:\ProgramData\MediaBrowser-Classic\ directory over crushing whatever default stuff Emby installer put in.  So it could be that Emby installer installed the correct System.Data.SQLite.dll for Win10 x64 but since this OS is not really supported it possibly could not have the correct one which is why I mentioning it.

Edited by throgmorton
Link to comment
Share on other sites

jachin99

That's good to know, and I'm glad to get some kind of cooperation from somebody. I have more problems that I would like to ask you about. When I try to load an MCML page using the preview tool I'm getting an error saying it either failed to acquire the markup, or a permissions error. The only MCML pages the sample too is letting me load from within WMC are the sample pages included in the SDK version 6. To be clear, I'm using the preview tool within WMC.

Link to comment
Share on other sites

throgmorton

To be honest I have never actually used the preview tool in WMC. I have looked at some of the sample codes that came with the SDK when I was learning how to write in MCML but that's about it. For my themes and plugins I basically use the skeleton template @@ebr wrote many years ago to load my plugins into MB, and would use WMC itself to preview the code. I also use the MCMLverifier.exe as part of my post processing in visual studio to ensure the MCML pages were good.

 

 

Sent from my iPhone using Tapatalk

Edited by throgmorton
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...