[New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and MP (3 Viewers)

Status
Not open for further replies.

Mr.Montesa

Portal Pro
August 9, 2006
91
7
Hessen
Home Country
Germany Germany
Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

main purpose of his plugin was to provide an interface for other developers.

This point has been worked out clearly, but I cant find the docu for other devs. As other developers should write Plugins/modules for this environment, I don't see the modularity.
Where can I register my self written plugins?
Where is the entry point for my plugin?
Everything is centralized to the "show case". It would be better if the index page welcomes you with: Welcome to webservice. The following plugins/modules are installed. And then link to each of them.

Where can I rewrite the url that accesses my self written plugin? Or define a sub domain?
I've written that some posts before.
BR
 

gemx

Retired Team Member
  • Premium Supporter
  • October 31, 2006
    1,972
    539
    Home Country
    Germany Germany
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    I think you missed the whole principle.
    The web app is the demo.

    The webservices are just hosted by the plugin, so the central point are the webservices.
    There are no plugins or such - just SOAP webservices every dev can use.
    If you know about webservices then you shouldn't any questions about using them (e.g in Visual Studio: just select "Add web reference - enter the url to the asmx file and you get a ready to use wrapper class)

    If you ask: "Ok, then i can use the webservices but what about the params?"

    That's exactly what the web app is for.
    It gives examples how to use the webservices
     

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    41
    Austria
    Home Country
    Austria Austria
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    main purpose of his plugin was to provide an interface for other developers.

    This point has been worked out clearly, but I cant find the docu for other devs. As other developers should write Plugins/modules for this environment, I don't see the modularity.
    Where can I register my self written plugins?
    Where is the entry point for my plugin?
    Everything is centralized to the "show case". It would be better if the index page welcomes you with: Welcome to webservice. The following plugins/modules are installed. And then link to each of them.

    Where can I rewrite the url that accesses my self written plugin? Or define a sub domain?
    I've written that some posts before.
    BR

    I'm not really familiar with webservices, but as gemx said it's pretty easy with Visual Studio and ASP .net.

    1. Open Visual Studio (2008 in my case)
    2. File -> New -> Website
    3. ASP .NET Web Site
    4. Right-click on project in Solution Explorer -> Add Web Reference
    5. In the url field enter "http://your-server:8080/TvServiceWebServices.asmx
    6. Click "Go" (You should see a bunch of methods (AddSchedule, DeleteRecording, etc.)
    7. Enter a name and click "Add Reference"

    You can then use the webreference in your project.

    Code:
    protected void Page_Load(object sender, EventArgs e)
        {
          ServiceInterface server = new ServiceInterface();
          SupportedMPFunctions f = server.GetSupportedMPFunctions();
    
          ...
        }

    @gemx:
    Is it possible to get the actual series objects (not episodes)? Also would it be possible to also send image objects with your webservice (banners/fanart/etc. -> not sure this is even possible, just asking ;))

    For WebChannel object, is there a way to get the status of the channel (recording, timeshifting, available, unavailable)?


    :D
     

    fredflintstone

    Portal Pro
    November 30, 2004
    241
    2
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    Fine, but e.g. dreamweaver has no feature to adding a reference under projects :( a description for the class and methods would be better to handle a soap request e.g. within php.
     

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    41
    Austria
    Home Country
    Austria Austria
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    If you need the web service description you can check:

    Code:
    http://your-server:8080/TvServiceWebServices.asmx?wsdl

    I have no idea though how to use webservices with dreamweaver.
     

    fredflintstone

    Portal Pro
    November 30, 2004
    241
    2
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    okay, forget it ;) I'll use..

    $client = new SoapClient("http://xxxxxx:8080/TvServiceWebServices.asmx?WSDL");
    sprintf(var_dump($client -> __getFunctions()));

    ...in php, that delivers all methods of the class. Now I'll only missing a list of the attributes for the methods :(

    E.g. for GetChannelsInTvGroup($params) at first I thougt I need only the channel id as param, but there must be an array like

    "idGroup"=> 2, "name" => "TVallgemein"

    A list of the possible params for the methods would be very helpfull!
     

    perfectbatz

    Portal Member
    December 30, 2009
    11
    1
    Home Country
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    Hey Guys I'm still here, I know this is probably beneath you all but can anyone help, I have removed all firewalls completely and still not able to login from outside lan? Should I be looking elswhere for an answer to this problem - My isp does not block ports?

    Cheers



    Gday Gemx - Great Plugin mate - well done -

    I have the service up and running and able to hook in from within my network. Unfortunately unable to log in from internet.

    I have set up dyndns to have a internet address directed to my IP. I have opened the required ports and have assigned them in MPTV server plugin options.

    path is coprrect - green light for port but for some reason can't get access from outside my network.

    Any ideas?

    Cheers

    Gday guys just an update on what I've done so far and a bit more info on my setup.

    I have Windows XP SP3, Zonealarm - ports opened (disabled when trying to access from internet) Dlink DSL-G604T (sertup vitrual server and added filters - configured TCP/UDP ports and checked firewall not preventing access (used PFPortchecker to verify that port 8080 is open.) - mediaportal-svn-12-24-2009-16-14-Rev24553, MPWEBSERVICES RC1.

    Checked - no other application is using port 8080. I have followed all steps from portforward.com to configure my router for port 8080. MP TV server ports setup.

    I have created dyndns account for bla bla....is-a-geek.org forwarded to bla bla....isa-geek.net with ip address 6.........:8080 as the recievingg host (but have also tested by directly using ipaddress:8080 as well. I have also adjusted localhosts file to accomodate both dns webhops. But still no luck - Am I missing something here?

    Cheers
     

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    41
    Austria
    Home Country
    Austria Austria
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    Hey Guys I'm still here, I know this is probably beneath you all but can anyone help, I have removed all firewalls completely and still not able to login from outside lan? Should I be looking elswhere for an answer to this problem - My isp does not block ports?

    Cheers

    Hi perfectbatz, can you verify a few things:
    • Your dyndns account is set to your external ip -> Show IP - What is my IP address (gotta ask ;))
    • Are the webservices working from inside the network
    • Can you turn on the remote administration of your router and try to access it over the internet (via bla....is-a-geek.org), see documentation of your router for remote access.
    • Can you access other services on this pc over the internet (ftp, web server, ...)

    Please post back if all the above things are working and if not which one is making problems.
     

    shh26_83

    MP Donator
  • Premium Supporter
  • November 19, 2009
    40
    1
    Home Country
    Germany Germany
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    This was never designed to be a productive web app. As i often stated out - this is just a demo to show the possibilities of the webservices i created to control tv service and interface the other databases

    The problem with an embedded flash player is that no one (including me) ever came up with a streaming profile that reliably transcoded .ts files to swf on the fly

    In your opinion :p but as you see many users like this plugin and would like to use it and see more features of it ;). I'll think it's to usefull to show it only as "demo version".

    Embedding a flash player should also not be a problem. You're using htlm code ;) so you can use a flv object like this:

    <object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="640" height="360">
    <param name="movie" value="player/player.swf" />
    <param name="allowfullscreen" value="true" />
    <param name="allowscriptaccess" value="always" />
    <param name="flashvars" value="file=mms://192.168.2.101:1234&image=preview.jpg" />
    <embed
    type="application/x-shockwave-flash"
    id="player2"
    name="player2"
    src="player-viral.swf"
    width="640"
    height="360"
    allowscriptaccess="always"
    allowfullscreen="true"
    flashvars="file=mms://192.168.2.101:1234&image=preview.jpg"
    />
    </object>

    The only thing what you have to do is replacing the streaming url in...

    <param name="flashvars" value="file=mms://192.168.2.101:1234&image=preview.jpg" /> and
    flashvars="file=mms://192.168.2.101:1234&image=preview.jpg"

    ...with the streaming url of vlc.

    The a.m. flv-player can play mp4 and mp3 formats ;) I've tested it with vlc ;) and it worked well! :)

    ...und mal auf deutsch ;) also, was das css oder html angeht helf ich Dir gern.

    Pleas make a example of the replacing.
    I have tested it, but nothing to see!

    thangs
     

    fredflintstone

    Portal Pro
    November 30, 2004
    241
    2
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    Pleas make a example of the replacing.
    I have tested it, but nothing to see!

    thangs

    Sorry, I forget that you have to download the viral-player (http://www.longtailvideo.com/players/jw-flv-player/) at first :D and put it in your htdocs directory. Here's an example with an mp4 file:

    http://mediaserver.dyndns.info/player.htm

    @shh26_83: If you have seen the example, please let me know, because if someone use the link tonight my pc wakes up :D
     
    Status
    Not open for further replies.

    Users who are viewing this thread

    Top Bottom