davidtjudd 37 Posted January 26, 2017 Posted January 26, 2017 I'm trying to receive events from inputManager in a view but inputManager is always undefined. I've wired it up like videoosd.js from the default skin with no luck. I'm trying to implement paging within the movies\movies.js controller using the RC6 channelup/channeldown which is not a standard keyCode. My implementation is at https://github.com/davidtjudd/emby-web-davidskin/blob/gh-pages/movies/movies.js. Obviously I'm missing something. Any insight would help. 1
Luke 40082 Posted January 26, 2017 Posted January 26, 2017 in the define statement at the top it should be inputManager, not inputmanager.
Luke 40082 Posted January 26, 2017 Posted January 26, 2017 Make sure to show more screenshots for the community to see.
davidtjudd 37 Posted January 30, 2017 Author Posted January 30, 2017 Yep. I will probably create a new thread for it as I add functionality. @@Luke, A few strange things I've noticed as I'm working on things. Routing seems to get confused sometimes. This seems to happen even with a vanilla copy of the default skin. As I navigate around the urls will start showing #!/plugins/defaultskin... This is also pretty evident when I go to my skin's options screen. The line "Emby.Page.setTitle(Globalize.translate('SkinName'));" will sometimes report Default Skin. InputManager events don't seem to always fire. On the movies controller I've registered an on and off in the viewshow and viewbeforehide respectively. Using console logging I see the wireup happening as expected in Chrome. Strangely though it doesn't seem to always fire. It seems to work best after I've played a video. The search and user icons will randomly disappear. I even went so far as to rem out the hide lines in onLocalUserSignedOut in plugin.js. Thanks and let me know if you have any insight.
Luke 40082 Posted January 30, 2017 Posted January 30, 2017 what are the repro steps for the first one?
davidtjudd 37 Posted January 30, 2017 Author Posted January 30, 2017 I didn't have a repro when I posted that but the more I mess around I think it's only related to refreshing. If that's the case it probably isn't that big of a deal. Assuming you are running a skin hit refresh on the home screen (any screen should work). Navigate into any library. Navigate to an item's detail screen. The detail screen will be using defaultskin.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now