SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations > SageMC Custom Interface

Notices

SageMC Custom Interface This forum is for discussing the user-created SageMC custom interface for SageTV.

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-10-2008, 01:59 PM
Morgan111's Avatar
Morgan111 Morgan111 is offline
Sage Fanatic
 
Join Date: Nov 2003
Location: Oak Ridge, Tennessee
Posts: 762
Arrow STV Import: NetFlix for SageMC (v2.1) 28-Feb-09





PLEASE BE ADVISED THAT THIS IMPORT HAS A NUMBER OF GROWING PROBLEMS AS NETFLIX CHANGES. I AM UNABLE TO COMMIT THE NEEDED TIME TO RESOLVE THESE EVOLVING ISSUES AND DIFFERING USER CONFIGURATIONS AT THIS TIME.

NEW USERS SHOULD EXPECT PROBLEMS WITH QUEUE MANAGEMENT AND WATCH NOW VIEWING.

ANYONE WITH A SERIOUS INTEREST AND CAPABILITY IN ISOLATING THE NEW PROBLEMS OR TAKING OVER THE IMPORT CAN CONTACT ME FOR ASSISTANCE.



Features
_______________________________________________________________________
  • Same basic features as original NetFlix plugin, plus more!
  • Browse through all DVD videos by genre
  • Browse through all Watch Now videos by genre
  • Browse through movies that are listed in the many NetFlix RSS channels
  • View movie descriptions, ratings, trailers and more
  • Launch Watch Now movies (Now possible on Sage Extenders with server loopback hack!)
  • Add movies to rental queue and manipulate queue items

Installation:
_______________________________________________________________________

1) Download the import files from here and unpack the contents into your SageTV directory ( normally C:\Program Files\SageTV\SageTV) taking care that the file paths are preserved. This will create STVs/SageTV3/neflix.xml, JARs/netflix.jar and JARs/netflix/src, README, etc

2) My Menu -> Settings -> Import STVi (choose NetFlix_SageMC.xml)

3) Settings-> SageMC-> Extras-> NetFlix (Enter account information)

4) Add the link into the "NetFlix Main Menu" menu.
  • Select the Options menu by pressing the options remote button while on the main SageMC menu (or ESC key on keyboard or right mouse click).
  • Select Main Menu Options.
  • Select New...->New Internal Screen->NetFlix Main Menu
  • Then select File...->Save menu file


Configuration:
_______________________________________________________________________
Before you can utilize the plugin, you will need to configure it
from: Main Menu My Menus -> Settings -> SageMC -> Extras -> Netflix -> Setup
(or bring up the configuration on the main NetFlix screen (options remote button or ESC key on keyboard or right mouse click)).

You must provide an ID, Username, and Password at a minimum. If you are behind a Proxy, you will also have to provide the Proxy URL and Proxy Port. There are interfaces to walk you though all of this so it's not too bad. Username (email) and password are CASE SENSITIVE).

You must create a folder to save downloaded videos and data. Specify this folder on the NetFlix setup screen under Download Path. If you change from one download path to another, copy the files (including NetFlixWiz.bin) to the new directory. A network share can be used that will allow playback of videos for all clients .


All primary settings are stored in your sage.properties/sageclient.properties files. So if you backup your sage.properties files for other installations, you will be effectively backing up your config for this plugin too. Additional video data is stored in NetflixWiz.bin.



Watch Now:
_______________________________________________________________________
Watch Now movies can be launched from the Movie Details screen automatically to play in Internet Explorer or by a custom player that incorporates Windows Media Player. The default player is the custom player.

NetFlix is switching users over to a SilverLight player that plays inside of Internet Explorer. A special SilverLight control application by Brainbone is included so that we can still control videos with out remote! You must have Internet Explorerer 7 or above! To select the Sage player option, press the Options button (or Cntrl-O) while on the Movie Details page and choose the desired player.
  • Custom Viewer - Full control of video playback using WMP. WIll not work if your NetFlix account is set for SilverLight.
  • Internet Explorer - Will launch the internet explorer with not control of playback by Sage.
  • SilverLight - Will start movie playback with Internet Explorer and allow Sage control of playback through netflix_silverlight_control.exe.

Pressing Watch Now with the custom player selected will present an option to watch the movie with one of 4 bitrates for streaming. The first uses little bandwidth but is fairly poor quality. The last rate requires a hight bandwidth but has excellent quality. Selecting the bandwidth will launch the player. To default to a specific bitrate and bypass the selection menu, press the Options button on the remote and select a specific rate as the default rate.

If the video contains episodes, a specific episode can be started by displaying the episode list and clicking on the desired episode.

Player Control (Custom Viewer):
The custom viewer is launched from a seperate executable from Sage, but Sage receives the remote commands and keyboard shortcuts as usual and passes the relevant commands to the viewer. The viewer will close and return to Sage by pressing the STOP button, or Cntrl-G.

The player has an on screen display which shows up until the video has downloaded enough of the file to begin playing or whenever a remote or keyboard command has been sent. The OSD contains the following information:
  • Video Title and playing/buffering status
  • Playtime progress bar
  • Current playtime into video and video duration
  • PREV and NEXT legends that indicate if the Prev or Next (Ch Up/Dn) buttons can be used to step to a new episode

Remote Commands Supported:
Play
Pause
Play/Pause
FF
FF2
Rew
Rew2
Info (displays OSD)
Stop
Vol Up/Dn (WMP volume)

The FF/REW commands step by the time defined for advancing when viewing a show in Sage. Some PC configurations may not see an effect from these commands before the entire video has been downloaded. That is being investigated.

Pressing the STOP button will close the viewer and return to Sage.

Player Control (SilverLight):
Internet Explorer and netflix_silverlight_control are launched from Sage, but Sage receives the remote commands and keyboard shortcuts as usual and passes the relevant commands to the viewer. The viewer will close and return to Sage by pressing the STOP button, or Cntrl-G.

Remote Commands Supported:
Play
Pause
Play/Pause
FF
Rew
Stop
Vol Up/Dn (player volume)

Pressing the STOP button will close the viewer and return to Sage.



If a movie does not start playing as expected, make sure the movie plays when started from the NetFlix website on that PC.


HELP and TIPS
_______________________________________________________________________
If you have previously installed the NetFlix plugin, you can delete your NetFlix cache directory as it is no longer used.

You must be have your WMP already configured to play WatchItNow movies in order for it to work with the import. If it does not play then you may have to check the path for plugins/NetFlix/ie_path in your sage.properties or sageclient.properties file. I am defaulting to the C: drive for program files. Basically if you have gone through the steps to play them from the NetFlix website then you should be all set to go, although the import will only launch it. To go fullscreen you will still have to click on the on screen movie control and close the window with an Alt-F4 keystroke.

When viewing the queue, press the right cursor to bring up the menu to manipulate the current selection. Press Save to change and queue updates.

When browsing DVD genres, selecting genre will display titles for that genre. If there is an arrow on the right side, pressing the right cursor will take you to a list of sub-genres. There are 3 levels of genres at most. There is only one level of sub-genres.

For the main menu, the icon file "hover_my netflix.png" is installed under STVs\SageTV3\SageMCE\Themes\MenuIcons.

You must have Sage 6.3.8 or higher to view Trailers.

To delete a video or cancel download in the Downloaded Videos list, press the right arrow when highlighting the specific video.

To download an episode of a show, press the right arrow when highlighting the specific episode on the Video Details screen.

Select the default video bitrate for video downloads by pressing the Options button while on the Video Details screen.

To playback a downloaded video, select it from the Downloaded Videos list. That will show the Video Details screen. Click on the Watch Now button.

Font sizes for the lists are bases on the font properties of the My Videos screen. Properties are in the .properties file, like:
sagemc/ui/video_lib_folder_font_name=Verdana
sagemc/ui/video_lib_folder_font_size=12
sagemc/ui/video_lib_folder_font_style=Plain





Steps to allow viewing of Watch Now videos on an Extender (courtesy of SnapDaddy)
_______________________________________________________________________
  • Make sure the SVideo out of your server is working. (Test somehow - hook up to a TV, etc - whatever - set it to mirror your desktop, not span or dual monitor.)
  • Pick a tuner with Svideo and audio in to use for the loop-back.
  • Connect the audio and video out of your server into the tuner card (you will probably need to lower your screen resolution).
  • Configure the tuner in Sage - pick the option to not use guide data.
  • Add either a single channel (999) or use the built in channel "1-SVideo" to the channel list.
  • Test the new channel - change to it, and you should see your server desktop. If you don't, something's wrong. Best to try and fix it now.
  • Import the latest Netflix plugin.
  • In the Netflix config settings, there's an option to select your loop-back channel.
  • After that, it's just the standard Netflix settings. When you select to watch a video, it should switch to your channel and go to town.



11/19/08 Update 2.06
  • Correct font handling on movie list that broke with SageMC 6.3.8.
  • Account for changes to website coding that prevented the "More" prompt.
  • Added menu item for Instant Queue on Main NetFlix Menu.

Problems
_______________________________________________________________________
If you experience problems with the application not working for you, there are some extended debugging that can be enabled through your sage.properties.
plugins/netflix/NetFlixLogFile=C\:\\temp\\netflix\\sage.netflix.log
plugins/netflix/NetFlixLoggerDebug=4
plugins/netflix/NetFlixLoggerStream=file

The first setting turns on debugging. It is likely already set to true for the alpha releases. the stream needs to be set to file (instead of out or err).
TRACE = 5
DEBUG = 4
ERROR = 2

This will create a sage.netflix.log file in your cache directory you have configured through the interface. It will contain a great deal of information for your interactions with NetFlix.


History:
_______________________________________________________________________
2/10/08 - Initial Release 0.9

2/15/08 Update 0.91
  • Change channel name Blue-ray to Blu-ray.
  • Correct missing text on some buttons due to animation.
  • Apply proper UI Context to JAR methods so that the correct properties file will be accessed. Was a problem on Extender and possible server in service mode.
  • On Movie Details, only display first Genre in list.

2/27/08 Update 1.0
  • Add capability to browse all genres and sub-genres (no sub-genres for Watch Now)
  • Browse all DVDs or Watch Now titles
  • Remove all caching. Read data on-demand (channels lists are cached internally, but not show data)
  • Move Configuration settings to the Settings->SageMC->Extras screen
  • Add ability to deselect genres from browsing list
  • Sort DVD list when browsing by Title, Rating, or MPAA Rating
  • Add new NetFlix Main Menu for selecting operation
  • Faster search by title. Reduced number of search results to return (too many at the end have little correlation)
  • Fixed missing pictures for items in queue that had different show IDs for disc subsets
  • Correct error that could prevent video from being deleted from queue

3/2/08 Update 1.1
  • Update parsing for change to Watch Now video item list.
  • Improve main menu:
    • move Jar version info to Setup Menu,
    • change text alignment and style,
    • add netflix graphics
    • add listener for left key
  • Add option on setup page to disable Watch Now features (usefull for extender users)
  • Add button on movie detail screen to show a list of actors for the movie. Can click on any actor and bring of a list of DVD titles for that actor.
  • Add button on movie detail screen to show a list of episodes with descriptions for a TV series. Can click on any episode to begin plaing that episode in Watch Now viewer.
  • Move NetFlix menu icon to SageMC/Themes/default/MenuIcons where it was meant to originally go.

4/3/08 Update 1.2
  • Fix error in search dialog that also affected search dialog for standard SageMC searches.
  • Sort genre list by title.
  • Fix Episode list or Actor list being from previous selection.
  • Fix error when viewing trailer and description is from a previously viewed trailer.
  • Add My Queue button to movie details screen.
  • Add ability to jump to listing by starting letter.
  • Add new property "plugins/NetFlix/ie_arg" that defaults to -k for fullscreen windowless. Remove -k to show IE window.
5/18/08 Update 1.2a
  • Update html parsing to account for change in website that prevented browsing of DVD or Watch Now genres (update in netflix.jar only)
6/25/08 Update 2.0
  • Update html parsing to account for change in website that caused inconsistent detection of Trailers and Watch Now.
  • Added Blu-Ray Logo that is displayed on movie details screen when the movie is available in Blu-Ray format.
  • Update parsing to fix display of User Rating stars on movie details page.
  • Added custom viewer for Watch Now movies that is launched and controlled via Sage remote and shortcut keys. IE viewer is still an option.
  • Add capability to select one of four possible bitrates for movie streaming.
7/8/08 Update 2.03
  • Update html parsing to correct problem when browsing DVD and Watch Now titles.
  • Add the ability to browse Watch Now titles by sub-genre and not just top level genres.
  • Add ability to sort Watch Now titles by rating, title, MPAA rating.
  • Disable Sage from sleeping while playing movie.
  • Move mouse pointer off-screen when starting movie.
  • Volume controls now control volume of Windows Media Player. Volume percentage displayed on OSD status line when volume is adjusted.
  • Corrected problem when using a default bitrate for movie playback.
  • Start movie at position last left off when that info is available (however, that info does not seem to be saved when using the custom viewer).
  • Removed HD-DVD channel.
  • Correct parsing of Watch Now data that caused a crash of SageTV when playing every other episode. Also correct "resume" position. (2.03b)
  • Force display of OSD info when waiting for stream data to buffer. (2.03b)

7/30/08 Update 2.05
  • Incorporate changes for viewing on Extenders with server loopback hack.
  • Add feature to list new DVD and Watch Now titles.
  • Add feature to download Watch Now videos and episodes for later viewing.
  • Viewer now has ability to bookmark where a movie is stopped and resumes at that point on next playback.
  • Add handler for aspect ratio remote button for playback on extender.
  • Prevent stray remote buttons from changing Sage screens and loosing control of open viewer. Also force Stop command to viewer whenever leaving the Sage viewing screen.
  • Account for changes to website coding (2.05a 8/10/09)
  • Prevent potential crash when selecting limited number of titles for download or Watch Now for some users (2.05a)
2/28/09 Update 2.1
  • Add SilverLight player support (includes Brainbones NetFlix Silverlight control v2 test 6).
  • Fix missing year info due to website changes.
  • Fix actor movies search from actor list on details page due to website chanes.
  • Add button to add video to Instant Queue from movie details page.
  • Add 3 new channels for Watch Instantly to channel list.
  • Add Watch Now icons to search results.
  • Remove Download for Later command button when the selected player option is SilverLight player.
  • Fix missing NetFlix configuration from SageMC Extras Setup menu. (2.1a)
  • Add option to delete a movie from Instant Q on movie details screen. (2.1a)
  • Add button to display Instant Q from standard DVD queue screen. (2.1a)


LICENSE:
_______________________________________________________________________
This software is released under the GPL. Please
see the included LICENSE file.

Copyright (C) 2006 'DwarF' Pullen
Modified 2008 'Morgan111'

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Use this software at your own risk!

This plugin re-distributes the rss4j library that is too covered by the
GPL. It's own LICENCE can be found under LICENSE.rss4j.txt

The apache commons (all jars prefaced with commons) are redistributed under the Apache License, Version 2.0. Please review it before usage at (http://www.apache.org/licenses/LICENSE-2.0)



Screenshots
_______________________________________________________________________































Attached Files
File Type: zip NetFlixViewerWithLog.zip (213.0 KB, 766 views)

Last edited by Morgan111; 08-19-2009 at 12:04 AM.
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
STV Import: NetFlix DwarF SageTV Customizations 125 12-11-2011 02:16 PM
STV Import: Fan Art for Default STV by TiKi (v2.2 Feb 22, 2009) Tiki SageTV Customizations 102 01-05-2010 05:16 PM
STV Import: SageMC Enhancements (incuding Import Folder Fix in 6.2.x) twieder SageMC Custom Interface 59 05-06-2008 01:42 PM
STV Import: Intelligent Suggestions (v1.0 07/Feb/2006) nielm SageTV Customizations 15 01-09-2007 06:17 AM


All times are GMT -6. The time now is 03:23 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.