scakemyer / plugin.video.quasar

Quasar add-on for Kodi
https://quasar.surge.sh/
346 stars 95 forks source link

Support Apple TV 4 #452

Open mrdest opened 8 years ago

mrdest commented 8 years ago

Following this post on the official thread, can you please compile for Darwin/ARM so users who sideloaded Kodi to Apple TV 4 will use Quasar?


Bountysource

mrinsane commented 8 years ago

Yes, we are all waiting for this, that would be awesome :8ball:

mrdest commented 8 years ago

I tried to do it myself, but it didn't go well. What I did:

  1. Cloned cross-compiler, libtorrent-go and quasar
  2. Added darwin-arm64 to cross-compiler and libtorrent-go
  3. Updated main Dockerfiles and travis with the new folder name.
  4. Created darwin-arm64/Dockerfile in cross-compiler and libtorrent-go
  5. Build cross-compiler
  6. Build libtorrent-go

The problems I thought about:

  1. Architecture name: arm64 vs aarch64
  2. Darwin version: 14 vs. 15
  3. OSX version: 10.10 vs 10.11
  4. OpenSSL version?
  5. BOOST_VERSION?
  6. SWIG_VERSION?

Would be great to get help here.

Thanks!

mrdest commented 7 years ago

Started uploading SDKs to: Apple-SDKs maybe it will be helpful to duplicate and edit:

@scakemyer, I've seen your comment in #694, and I can see why it can take a week to create binaries for iOS and tvOS, as @si458 said I can also help to compile and test on iOS and tvOS .

In my opinion, Quasar for tvOS will be a killer addon, I believe it will increase Apple's developer program registrations :)

scakemyer commented 7 years ago

I thought it was the same SDK but I guess I was mistaken. I hope you won't get into trouble for putting those on GitHub...

mrdest commented 7 years ago

No they are no the same. I saw this repository: MacOSX-SDKs and cross-compiler uses it (here). It should be the same idea for iOS and tvOS.

I hope too :/

scakemyer commented 7 years ago

It's a little more complicated than that unfortunately. It also needs osxcross which doesn't support iOS or tvOS, see this issue which has a few useful links about setting up the toolchain for iOS; not sure how or if it could apply to tvOS.

mrdest commented 7 years ago

I will look into it. Thanks for checking!

elgatito commented 7 years ago

There is an experimental branch of migrating from libtorrent to gotorrent ( anacrolix/torrent , pure go-language torrent library) - https://github.com/elgatito/quasar/tree/gotorrent

I could not build it with existing docker images. Maybe someone can try to build it.

ghost commented 6 years ago

https://github.com/PopcornTimeTV/PopcornTimeTV/releases https://github.com/PopcornTimeTV/PopcornTorrent This app seems to work okay on my Apple TV 4, and apparently it uses libtorrent, could someone use that code somehow for Quasar?

elgatito commented 6 years ago

If someone wants to test on iOS, you can try my fork https://github.com/elgatito/plugin.video.elementum . I want to get some feedback from iOS users.

mrdest commented 6 years ago

@elgatito Does it support tvOS?

elgatito commented 6 years ago

@mrdest , you can try download and run the biggest zip and share kodi.log after all. there is a build for ios and osx, tvOS is another os from Apple?

mrdest commented 6 years ago

I'll try. Yes, tvOS is for Apple TV 4 and 4K. Kodi builds: http://mirrors.kodi.tv/test-builds/darwin/tvos/ Instructions to sideload Kodi for Apple TV: http://www.redmondpie.com/how-to-sideload-install-kodi-on-apple-tv-4/

mrdest commented 6 years ago

kodi.log 23:22:48.603 T:6210416640 NOTICE: [plugin.video.elementum] elementumd: starting elementumd 23:22:48.604 T:6210416640 NOTICE: [plugin.video.elementum] Kodi's JSON-RPC service is available, starting up... 23:22:48.605 T:6210416640 NOTICE: [plugin.video.elementum] Get Binary detection premature: /var/mobile/Containers/Data/Application/4B9FDBC1-5F56-4FEE-AFF4-9284EFF654AD/Library/Caches/home/userdata/addon_data/plugin.video.elementum/bin/_x64, /var/mobile/Containers/Data/Application/4B9FDBC1-5F56-4FEE-AFF4-9284EFF654AD/Library/Caches/home/userdata/addon_data/plugin.video.elementum/bin/_x64/elementum 23:22:48.607 T:6210416640 NOTICE: [plugin.video.elementum] System information: _x64 17.2.0 23:22:48.608 T:6210416640 NOTICE: [plugin.video.elementum] Kodi build version: 17.5 Git:2017-10-24-b184048-dirty 23:22:48.608 T:6210416640 NOTICE: [plugin.video.elementum] OS type: Darwin 23:22:48.608 T:6183923712 DEBUG: JSONRPC Server: New connection detected 23:22:48.609 T:6210416640 NOTICE: [plugin.video.elementum] uname: ('Darwin', 'Apple-TV', '17.2.0', 'Darwin Kernel Version 17.2.0: Fri Sep 29 17:54:22 PDT 2017; root:xnu-4570.20.62~1/RELEASE_ARM64_T7000', 'AppleTV5,3', '') 23:22:48.609 T:6183923712 INFO: JSONRPC Server: New connection added 23:22:48.609 T:6210416640 NOTICE: [plugin.video.elementum] Binary dir: False, item: False

elgatito commented 6 years ago

Yes, OS detection failed. You can try to manually run different binaries, to see how it loads. So far i've read, tvos is different from ios.

mrdest commented 6 years ago

Tested also on iPad. Installation was successful but restarting Kodi shows this message:

No available JSON_RPC connection to Kodi. Enable both Application control options in Service settings/Control and restart Kodi.

All options are checked (enabled). kodi.log

00:11:02.215 T:6126841856 WARNING: JSONRPC: Could not parse type "Setting.Details.SettingList" .. 00:11:24.715 T:6126841856 NOTICE: CWebServer[8080]: Started 00:11:26.745 T:6126841856 NOTICE: starting upnp client 00:11:27.240 T:6126841856 NOTICE: starting upnp server 00:11:27.250 T:6126841856 NOTICE: stopping upnp client 00:11:27.410 T:6126841856 NOTICE: starting upnp client 00:11:28.040 T:6126841856 NOTICE: starting upnp renderer 00:11:29.554 T:6139359232 ERROR: GetDirectory - Error getting /private/var/mobile/Containers/Data/Application/8C119937-6A64-4A6D-85B2-0D66A9D56DE3/Documents/Inbox/ 00:11:29.554 T:6139359232 ERROR: GetDirectory - Error getting special://envhome/Documents/Inbox/ 00:11:35.969 T:6139359232 ERROR: GetDirectory - Error getting /private/var/mobile/Containers/Data/Application/8C119937-6A64-4A6D-85B2-0D66A9D56DE3/Documents/Inbox/ 00:11:35.969 T:6139359232 ERROR: GetDirectory - Error getting special://envhome/Documents/Inbox/ 00:12:01.070 T:6130282496 WARNING: DARWINIOS: underflow (0 vs 8192 bytes)

Hope this helps.

elgatito commented 6 years ago

Have oyh enabled remote controls in kodi settings?

mrdest commented 6 years ago

Yes I did.

mrdest commented 6 years ago

Unable to find Elementum binary
Required platform: ios_arm

I think the problem is cross-compiler does not have task for ios_arm*. The release page has the builds, though. Related: #445

elgatito commented 6 years ago

Yes, there is no ios_arm arch, only ios_arm-7 and ios-arm64. Can you try copy directory "resources/bin/ios_arm-7/" info "resources/bin/ios_arm/" and try then? Just to see what happen when binary is loaded.

mrdest commented 6 years ago

...AttributeError("'module' object has no....

I can't see the full notification and it's not written to the kodi.log file.