SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Clients Development
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Clients Development This forum is for discussions relating to SageTV Open Source Clients Development.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-14-2021, 07:22 AM
cncb cncb is offline
Sage Icon
 
Join Date: Jul 2006
Posts: 1,271
New: External Link Support in Android MiniClient

New in version 1.8.0 is suport for external links to open videos directly in other Android apps from the SageTV library. This is accomplished by renaming and importing a small "placeholder" video in the following format: "TITLE.ESCAPEDURL.exlink". The ESCAPEDURL can be a direct video link (deep link) or an app package name if direct links are not supported. ".exlink" needs to be added to "seeker/video_library_import_filename_extensions" in Sage.properties.

The format of the URL is different for each service but the same for each video in the service except for a VIDEOID that you need to get from the service's website. The URL needs to be escaped (including the periods with %2E) to make up the file name.

Amazon
https://watch.amazon.com/watch/asin=VIDEOID

Imported file name:
TITLE.https%3A%2F%2Fwatch%2Eamazon%2Ecom%2Fwatch%3Fasin%3DVIDEOID.exlink

Netflix
http://www.netflix.com/watch/VIDEOID

Imported file name:
TITLE.http%3A%2F%2Fwww%2Enetflix%2Ecom%2Fwatch%2FVIDEOID.exlink

========

I am not able to test the following but these might work too:

Disney+
https://www.disneyplus.com/video/VIDEOID

Imported file name:
TITLE.https%3A%2F%2Fwww%2Edisneyplus%2Ecom%2Fvideo%2FVIDEOID.exlink

HBO Max
https://play.hbomax.com/feature/urn:hbo:feature:VIDEOID

Imported file name:
TITLE.https%3A%2F%2Fplay%2Ehbomax%2Ecom%2Ffeature%2Furn%3Ahbo%3Afeature%3AVIDEOID.exlink

Hulu
http://www.hulu.com/watch/VIDEOID

Imported file name:
TITLE.http%3A%2F%2Fwww%2Ehulu%2Ecom%2Fwatch%2FVIDEOID.exlink
__________________
-Craig

Last edited by cncb; 05-14-2021 at 08:08 AM.
Reply With Quote
  #2  
Old 05-14-2021, 07:38 AM
cncb cncb is offline
Sage Icon
 
Join Date: Jul 2006
Posts: 1,271
Working examples on the NVidia Shield TV:

Amazon movie
Code:
The Angry Birds Movie 2 (2019).https%3A%2F%2Fwatch%2Eamazon%2Ecom%2Fwatch%3Fasin%3DB07W7KKY9Q.exlink
Netflix movie
Code:
Escape From Planet Earth (2012).http%3A%2F%2Fwww%2Enetflix%2Ecom%2Fwatch%2F70244165.exlink
Netflix tv episode
Code:
Brainchild - S01E04.http%3A%2F%2Fwww%2Enetflix%2Ecom%2Fwatch%2F80215236.exlink
Open Vudu app (manual navigation to video)
Code:
Man On Fire (2004).air%2Ecom%2Evudu%2Eair%2EDownloaderTablet.exlink
__________________
-Craig

Last edited by cncb; 05-14-2021 at 08:25 AM.
Reply With Quote
  #3  
Old 05-14-2021, 09:12 AM
KeithAbbott KeithAbbott is online now
Sage Icon
 
Join Date: Oct 2009
Location: Southeastern Michigan
Posts: 1,375
A couple of questions:
  • So the external link(s) would show up under the "Videos" main menu within SageTV?
  • What would the expected behavior be if I selected one of those external links on, say, an HD300? Is this gracefully handled?
  • What would the expected behavior be if I initially set up the external link while subscribed to Disney+, but subsequently dropped the subscription to Disney+? Is this gracefully handled?
  • How is authentication to each of the various apps (Netflix, Vudu, etc.) handled?
__________________
Server: MSI Z270 SLI Plus ATX Motherboard, Intel i7-7700T CPU, 32GB Memory, Unraid 6.11.5, sagetvopen-sagetv-server-opendct-java11 Docker (version 2.0.7)
Tuners: 2 x SiliconDust HDHomeRun Prime Cable TV Tuners, SiliconDust HDHomeRun CONNECT 4K OTA Tuner
Clients: Multiple HD300 Extenders, Multiple Fire TV Stick 4K Max w/MiniClient
Miscellaneous: Multiple Sony RM-VLZ620 Universal Remote Controls

Last edited by KeithAbbott; 05-14-2021 at 09:50 AM.
Reply With Quote
  #4  
Old 05-14-2021, 12:53 PM
cncb cncb is offline
Sage Icon
 
Join Date: Jul 2006
Posts: 1,271
Quote:
Originally Posted by KeithAbbott View Post
A couple of questions:
  • So the external link(s) would show up under the "Videos" main menu within SageTV?
  • What would the expected behavior be if I selected one of those external links on, say, an HD300? Is this gracefully handled?
  • What would the expected behavior be if I initially set up the external link while subscribed to Disney+, but subsequently dropped the subscription to Disney+? Is this gracefully handled?
  • How is authentication to each of the various apps (Netflix, Vudu, etc.) handled?
1) They would show up just like any other video alongside your ripped movies and/or shows.
2) The HD300 would just play the placeholder video you used. I created a short video that just shows "Watch on Vudu" for a few seconds.
3) If you don't have a subscription, the Disney+ app is launched to the normal initial screen in the app.
4) This doesn't do anything with authentication or deal with your accounts at all. It just launches the appropriate app with the given URL. If there is no app installed that can handle the URL, it won't launch anything. If you are not logged in to the app, it will launch the app and the app will ask you to login as usual as if you launched it manually from the home screen.
__________________
-Craig
Reply With Quote
  #5  
Old 05-14-2021, 08:49 PM
VCRUser VCRUser is offline
Sage Aficionado
 
Join Date: Jan 2008
Posts: 444
So, this isn't for playing videos that you may have downloaded from, say, Netflix using PlayOn, but rather a way to link from Sage Miniclient to a video living in the Netflix (or whatever) cloud, open the Neflix app & play the video there - then back to Sage Miniclient (or stay in the Netflix app) when done?
__________________
Server: Windows 8.1 4gb RAM; 4TB SATA + others. Homebrew quad core AMD. Inputs: Haup. 980, 850 & 950Q on ATSC; Haup 1600 on ATSC & Comcast 2 DTAs with USBUIRT for NTSC. Haup 1800 on ATSC. HDHR Dual (ATSC). Sage 9.22 64 bit.
Reply With Quote
  #6  
Old 05-15-2021, 06:05 AM
cncb cncb is offline
Sage Icon
 
Join Date: Jul 2006
Posts: 1,271
Correct. For example, you could display a Netflix series along with your normal recordings. When you select an episode it will launch Netflix where you can watch it. Then when you return to SageTV you can mark the episode watched or delete it. In my case, I have the streaming-only version of some movies and want to be able to display and watch them in my SageTV library along with my ripped movies.
__________________
-Craig
Reply With Quote
  #7  
Old 05-20-2021, 03:08 PM
deanm deanm is offline
Sage Aficionado
 
Join Date: Apr 2005
Location: North East, UK
Posts: 309
This sounds very interesting.

Is this limited to Netflix etc. How is playing of the files handled?

Could you possibly link this to say a file hosted on a URL? Like IPTV?

Dean
__________________
Darkside: DVB-C x4 DVB-T2 x2 HD-300 x4
Lightside: DVB-C x2 DVB-T2 x4 HD-300 x3
Reply With Quote
  #8  
Old 05-21-2021, 12:54 PM
cncb cncb is offline
Sage Icon
 
Join Date: Jul 2006
Posts: 1,271
Quote:
Originally Posted by deanm View Post
Is this limited to Netflix etc. How is playing of the files handled?

Could you possibly link this to say a file hosted on a URL? Like IPTV?
It hands the URL off to the Android system and if there is an app registered to handle the URL it is launched. If you have a specific player app that is registered to handle a generic URL it should work. Maybe VLC? Otherwise, you could try installing a browser.
__________________
-Craig
Reply With Quote
Reply


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

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
Android MiniClient 1.4.3 stuckless SageTV Clients Development 20 03-25-2019 10:32 AM
Android MiniClient 1.4.0 stuckless SageTV Clients Development 45 01-06-2019 06:00 PM
Android MiniClient - Subtitle + CC support stuckless SageTV Clients Development 42 01-01-2018 08:17 AM
Android Miniclient and UK TV rickgillyon SageTV Clients Development 6 12-01-2016 05:58 PM
MPEG2 Support in Android MiniClient stuckless SageTV Clients Development 24 01-03-2016 10:09 AM


All times are GMT -6. The time now is 11:15 AM.


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