[RELEASE] NHL Gamecenter Addon - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (/forumdisplay.php?fid=154)
+---- Thread: [RELEASE] NHL Gamecenter Addon (/showthread.php?tid=118853)
- apok - 2012-03-03 20:33
Correct, that will only work in Linux for now. You'd need to get a mlbhls.exe built and then incorporate some platform detection so that the temp file can be written to the right place i.e. %TEMP% on Windows.
There's also a "class MyPlayer( xbmc.Player )" for launching the player, and cleaning up the temp file/killing the mlbhls process when you stop watching video.
If you want to absorb the changes into your script I'm ok with that.
- anthomacp - 2012-03-03 20:35
Yay! Progress! haha
- apok - 2012-03-03 22:15
Carb0 I got mlbhls to build under Cygwin, and when shipped with the DLLs it'll run on Windows. I'll throw together platform detection, test it here and throw up another copy of gamecenter-mlb.
- apok - 2012-03-04 04:39
Here's a mlbhls.exe (with dependancy DLLs) that I compiled in cygwin. Extract it to somewhere convenient i.e. c:\mlbhls-nhl\
MLBHLS-NHL (Windows EXE and source) http://www.2shared.com/file/f8GjtoPK/mlbhls-nhl.html
NHLGC 0.3.2.1 http://www.2shared.com/file/0MbP0hX8/pluginvideonhl-gamecenter-mlb-.html
I added an enhancement to the mlbhls-nhl for pulling the TARGETDURATION from the m3u8 streams, since the original is coded for a 12 second delay. This should prevent some edge cases from occurring.
You will need to configure the "Path to MLBHLS Binary" and "HLS Output DIR" settings, as these will be OS-dependent.
For the Binary, if you are on linux so long as it's under /usr/bin you can just enter "mlbhls". Use a full path for Windows.
For the Output Dir, supply a trailing slash i.e. '/' on Linux or '\' on Windows.
Sleep on start specifies how long to wait for the stream to start building locally.
Files to buffer is only used when you select a live stream instead of viewing a game from the start. Keep in mind that each file segment is ~10 seconds long.
With the default of 3 and a sleep time of 15 seconds, you'll allow 30-40 seconds of video to be written to the output file prior to xbmc launching it.
I noticed changing the add-on settings seems to crash XBMC, so beware.
On Windows, the mlbhls does open in an external window - just alt-tab and it'll run in the background. Unfortunately I couldn't figure out how to kill the program when you stop viewing the screen if it is hidden (on Windows), because it's a child process that's executed. On Linux, pkill takes care of it
- Carb0 - 2012-03-04 06:54
I tried it on Windows 7 64bit but it didn't work. The mlbhls-nhl window pops up, immediately closes and XBMC shows an error. Sometimes the mlbhls-nhl window shows the line "Start fetching video from line: 600" over and over again. The output.ts and the log file are both 0 bytes large.
Here is my xbmc.log:
- apok - 2012-03-04 07:13
Carb0 Wrote:I tried it on Windows 7 64bit but it didn't work. The mlbhls-nhl window pops up, immediately closes and XBMC shows an error. Sometimes the mlbhls-nhl window shows the line "Start fetching video from line: 600" over and over again. The output.ts and the log file are both 0 bytes large.
Try setting video quality to auto. The MLBHLS relies on a master URL to fetch stream URLs from, so I don't think providing a quality-based stream will work.
You can specify max bandwidth with -b <value in bits> so that it selects an appropriate choice. This can probably be added to the line w/execution instead of tampering with the URL.
I'm seeing some strange behavior that I'm trying to track down right now where the hls program is exiting. Will update further as I track down the problem.
- apok - 2012-03-04 19:47
March 4, 2012 2:55PM EST
Updated MLBHLS-NHL binary, see post http://forum.xbmc.org/showpost.php?p=1036261&postcount=84
Added a timestamp check for when the file was last updated. Had a stream running for 40 minutes, so that's promising.
- Carb0 - 2012-03-04 22:15
It works now. Thank you very much.
RE: [RELEASE] NHL Gamecenter Addon - Dougedey - 2012-03-15 02:19
Big massive thanks to you guys, this works brilliantly!
Good news for Windows users - Carb0 - 2012-03-25 22:43
Live games are working in Margo's XBMC Eden build with PVR support (Windows only). It includes the necessary changes to PlaylistFactory.cpp. You can download it here: http://www.scintilla.utwente.nl/~marcelg/xbmc/prebuild.html