My small contribution I call - StreamTV (3 Viewers)

Funky

Portal Pro
March 8, 2005
70
1
Sweden
Home Country
Sweden Sweden
Maybe I am getting offtopic now but the vod part is special for the NMT browser (if I understand correctly), see here Syabas myiBox HTML Extension.

Still looking for a way to get the channellist.rss to work properly, unfortunately without success. But hey I can watch livetv and switch channel on my NMT from the Mediaportal TV-Server.

Looking forward to the update of this plugin.
 

MoPhat

Retired Team Member
  • Premium Supporter
  • June 17, 2007
    816
    226
    Berg
    Home Country
    Switzerland Switzerland
    Thanks for the great plugin :D

    Is there any solution for automaticly kicking disconnected streaming clients?

    Is it possible to display on the rss feed only the active TvServer Groups and with the "hide All Channels Group" option?
    I have a lot of channels here with my 2 tuners on the ASTRAS and HOTBIRD satelite...IE7 does only display max of 1000 items in the feed :mad:

    P.S:
    Is it possible to receive the stream with the windows media player isntead of the vlc?

    thx
    MoPhat
     

    Gorlist

    Portal Member
    October 10, 2008
    26
    0
    Just to report, the plugin works fine in 1.0.1, however with it enabled the TV server fails to automatically load on system start (you have to turn on the tvserver manually).

    Unknown cause.


    Thanks for the great plugin :D
    Is it possible to receive the stream with the windows media player isntead of the vlc?

    Have ago! enter the url as you would with VLC.
     

    MoPhat

    Retired Team Member
  • Premium Supporter
  • June 17, 2007
    816
    226
    Berg
    Home Country
    Switzerland Switzerland
    Thanks for the great plugin :D
    Is it possible to receive the stream with the windows media player isntead of the vlc?

    Have ago! enter the url as you would with VLC.[/quote]

    Sorry that doesnt work with the Windows Media Player :(
    MoPhat
     

    tlevis

    Portal Pro
    November 23, 2007
    55
    0
    Home Country
    Finland Finland
    Well don`t have an error log, but yeah the screen is all blank, no error in the browser. So it seems it connects but... Any help would be appreciated. So I don`t even get the channels showing up.

    OK, got this working now!! :p The reason that I had tried the mp-webserver which worked and did not work... It had left the webserver service running in windows and that caused mixed up tvstream :) :oops:

    Now, can anyone tell me how to get the streaming to VLC stopped so that it releases the card? :D
     

    Valk

    Portal Pro
    February 25, 2006
    302
    108
    Home Country
    Australia Australia
    That is the big problem i'm working on at the moment, the only thing holding me back is accessing the tvserver live stream buffer (if anyone has any good suggestions on accessing the buffer and seeking through it i'd appreciate the help).
     

    Valk

    Portal Pro
    February 25, 2006
    302
    108
    Home Country
    Australia Australia
    Well i've got close to another release.

    If I can fix this problem with multiple .ts files i'll be set.

    If anyone can help please reply, anyway at the moment i'm reading the .tsBuffer file and getting the files which contain the stream I care about and I can open the first .ts file and read it through.

    Once it has reached the end of the file I try and change over to the next file and the 2nd file is locked.

    For the moment i'm opening the files up as a filestream eg.
    Code:
    private void LoadNextBuffer()
            {
                Refresh();
    
                // Check if the streamBuffer has a file already open.
                if (tsNextStreamBuffer != null)
                {
                    // Close off the buffer first.
                    try
                    {
                        tsNextStreamBuffer.Close();
                    }
                    catch (Exception) { }
                }
    
                // Check if there are any left to load.
                if (tsFileLocation.Count == 0)
                {
                    currentState = State.EndOfFile;
                    canPlay = false;
                    return;
                }
    
                String fileToLoad = tsFileLocation.Dequeue();
                FileStream file = null;
                int tries = 5;
    
                do
                {
                    // Load the next file into the buffer.
                    // First attempt.
                    try
                    {
                        file = new FileStream(fileToLoad, FileMode.Open, FileAccess.Read, FileShare.Read);
                        break;
                    }
                    catch (Exception)
                    {
                        //// Second attempt.
                        //try
                        //{
                        //    file = new FileStream(fileToLoad, FileMode.Open, FileAccess.ReadWrite, FileShare.ReadWrite);
                        //    break;
                        //}
                        //catch (Exception)
                        //{
                            // Final attempt. (Should work)
                            try
                            {
                                file = new FileStream(fileToLoad, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
                                break;
                            }
                            catch (Exception)
                            {
                                System.Threading.Thread.Sleep(20);
                            }
                        //}
                    }
                } while (tries-- != 0);
    
                // Check if we managed to load the .ts file.
                if (file == null)
                {
                    nextState = State.FileLocked;
                    return;
                }
    
                // Update the streamBuffer with the new file.
                tsNextStreamBuffer = file;
    
                nextState = State.Loaded;
            } // LoadNextBuffer

    Once I have finished loading all the bytes out of the first .ts file I jump over to the 2nd file and start reading from it but sadly I can't load the 2nd .ts file.

    If you know anything it would help alot since i'm running low on ideas.

    Hopefully this issue will be resolved soon and I will be able to release a version that releases the Tv card when you disconnect :). (I also started on group management but there is problems with that for now).

    P.S. Just incase someone says anything my first attempt I didn't try to pre-load the next .ts file, I waited until I finished reading all the data out of the first one then tried to open the 2nd file with no success.
     

    Jean-Marc

    Portal Pro
    February 28, 2007
    382
    32
    Home Country
    France France
    Hi Valk,

    First of all thank you for your work on this plugin.

    Tell me if I am right: I receive the DVB-T with the Mediaportal TVserver. With your plugin, the different channels can be automatically streamed, thru VLC, on the internet.
    Am I able to visualize the channel I want with the MPortal client I have on my laptop when I am travelling?

    Also, at home, this plugin allows me to watch, for example, Autralian Tv if I can connect my (MP client? MP server?) on your own server?

    Thanks very much!
     

    Valk

    Portal Pro
    February 25, 2006
    302
    108
    Home Country
    Australia Australia
    This plugin works alongside the MPortal client, you can't use it to view TV in the mediaportal client (unless there is a plugin for mediaportal to connect to rss / http streams and you set that up).

    Because at the moment there is no transcoding done the bitrate of the stream will be well past what you will want to transmit over the internet (watching HD TV I do about 250mb in 20 seconds) but if that doesn't put you off then there is no reason you can't use a client like vlc to watch it while travelling, you will just have to setup your firewall to allow connections to the tvServer port StreamTv runs on.

    If you know someone running the TvServer with streamTv running who allows internet access you can connect and watch live Tv from them (again bandwidth will be a issue).

    Hopefully if I can figure out this .ts file issue I can move onto adding transcoding support so the bitrate won't be so insane that you can watch live Tv from anywhere.

    At the moment there is another plugin for streaming low bitrate Tv I think it is (PiMP)
    https://forum.team-mediaportal.com/...ne-interface-mediaportal-ipimp-3-4-1-a-46556/

    If you want to watch video while you travel I'd suggest you look at that first, it doesn't allow for high bitrates (unless there has been a update I don't know about, I haven't looked in a while) but should do the trick.

    I hope that helps clear things up.

    Valk.
     

    Valk

    Portal Pro
    February 25, 2006
    302
    108
    Home Country
    Australia Australia
    Well I finally have some good news.

    The next release is ready :)

    Sadly I haven't finished the groups feature yet but i'll try and fix it soon.

    The big changes are now no more VLC required and when you disconnect it stops the timeshifting.

    I figured these were big enough changes to warrant a release (oh and radio playback works also).

    I haven't tested it in multiseat or if it works with a console yet but I suspect multiseat should be ok, not sure where consoles stand.

    Also another feature added is now I use xslt transforms to convert the xml generated into formats like .rss or .html, at the moment only .xml and .rss are valid with the ChannelList but i'll be expanding that. If you want to cheat for now you can write your own transform file and replace the .rss one if you want a different output instead (but in the browser you will need to still use the .rss extension).

    OH DON'T USE THIS WITH MY OLD VERSION. You might as well delete it since this does a better job.

    Anyway time to update the main post.
     

    Users who are viewing this thread

    Top Bottom