Command line switch to instruct mediaportal to open a video file (1 Viewer)

kiwijunglist

Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,743
    1,754
    New Zealand
    Home Country
    New Zealand New Zealand
    Hi

    I love mediaportal, it is such a great program.

    I have used a solution provided by someone else to make mediaportal load a custom player based on the type of video file you select.

    movileplayer.vbs said:
    Set oArgs = WScript.Arguments
    sFilePath = oArgs(0)
    Set oShell = CreateObject("WScript.Shell")

    iRC = oShell.Run("""" & sFilePath & """")

    Wscript.Quit iRC

    You set movieplayer.vbs as the external video player under mediaportal configuration. The script automatically loads the default player associated with the file. eg for .avi it could load pdvd and for .mkv it could load mpc-hc.

    I would like to be able to play .ts files within mediaportal itself using the internal movie player. I tried associating the files in explorer with mediaportal, but that did not work.

    My question:

    Is there a way to make explorer open and play a .ts file within mediaportal?

    Is there a work around for my problem? - Basically i intend to make an external player (MPC-HC) open all video files with the exception of .ts files which i want to still be opened by mediaportal itself.

    Thanks
    Mike
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Is there a way to make explorer open and play a .ts file within mediaportal?

    No. MP is designed to be a HTPC application, so that kind of functionality doesnt exist.

    Is there a work around for my problem? - Basically i intend to make an external player (MPC-HC) open all video files with the exception of .ts files which i want to still be opened by mediaportal itself.

    Not that I know of as MP doesnt allow mapping of the different file extensions to different players.
     

    Users who are viewing this thread

    Top Bottom