Giter Site home page Giter Site logo

Create a tvOS/iOS/etc app? about pomotv HOT 13 OPEN

chriseidhof avatar chriseidhof commented on July 28, 2024
Create a tvOS/iOS/etc app?

from pomotv.

Comments (13)

tomlokhorst avatar tomlokhorst commented on July 28, 2024

Yeah, it would be cool to have a tvOS app. Now I'm using AirPlay from my Mac, but an app is nicer.

Unfortunately, I don't think there are supported ways for playing YouTube or Vimeo videos on tvOS.
Although there is https://github.com/hellozimi/HCYoutubeParser, that is not allowed under the YouTube Terms of Service, so it might stop working.

from pomotv.

chriseidhof avatar chriseidhof commented on July 28, 2024

Hm, and there's no web view, right? Is there a YouTube app on tvOS that we could link to?

from pomotv.

BalestraPatrick avatar BalestraPatrick commented on July 28, 2024

We could use https://github.com/0xced/XCDYouTubeKit to play videos in tvOS. The project says to support tvOS but I don't have any experience with it.

from pomotv.

tomlokhorst avatar tomlokhorst commented on July 28, 2024

Today, I hacked together an iOS app: https://github.com/Q42/pomotv-app

Because there's no API (#11) I've used the recents.xml Atom feed. The app doesn't show all videos since there are only a few youtube links in the recents file. However I think its better to use an actual API instead of putting work into parsing the feeds.

The code isn't very nice, but it's playing videos. Also I got distracted, because I was watching one of the talks.

from pomotv.

chriseidhof avatar chriseidhof commented on July 28, 2024

Very cool! I think @johankj was thinking of adding an API. What would you need? I think we could probably just present the JSON variant of the current data in the .yml files, right?

from pomotv.

tomlokhorst avatar tomlokhorst commented on July 28, 2024

Yes, JSON version of the current data would be nice.

I just now realised the search is happening in JavaScript, since this is a static site.
I'll have a look at the index (http://www.pomo.tv/search/index.json) to see if I can use that as well.

from pomotv.

DerLobi avatar DerLobi commented on July 28, 2024

I hacked up a tvOS app. It currently displays and plays all youtube and vimeo videos, and shows the videos of the most recent event on the top shelf.

Here are some screenshots:
tvOS app

from pomotv.

chriseidhof avatar chriseidhof commented on July 28, 2024

Oh, awesome! What are your plans with this? Maybe we could put this on the website or in the README once you're comfortable with it?

from pomotv.

DerLobi avatar DerLobi commented on July 28, 2024

That would be cool. My only concern is that I currently use XCDYoutubeKit and I don't really know what this would mean in the worst case (would the app be rejected? could YouTube sue me?). I have tried to use UIApplication.sharedApplication().openURL(youtubeURL) with the YouTube app installed but it doesn't work on tvOS.

Besides that I would like to reach feature parity with the website (browse events, speakers, tags), get WWDC videos to play and clean up the code.

I'd like to offer the app as a free download from the App Store if (legally) possible. If that doesn't work maybe keep it available on GitHub only. Because the target audience is iOS developers we could assume they are able to build and run the app themselves.

from pomotv.

eelco avatar eelco commented on July 28, 2024

@DerLobi What would you like in terms of an API? (#11) I see you’re now using the YAML from the repository, ideally ‘something’ should be exposed directly at pomo.tv itself to make it a bit less fragile.

From https://github.com/0xced/XCDYouTubeKit:

XCDYouTubeKit is against the YouTube Terms of Service

If I understand it correctly, the app would violate 4.A and users of the app would violate 4.C. The consequence could be termination of your account (7.A). But, more importantly, this also means the app would/should not pass app review, since the guidelines clearly state that “Apps may not [...] violate 3rd party terms of use” (8.5)

It might be ‘best’ to create a radar and ask for openURL support and submit a request to YouTube for an SDK 😞 For now, keeping it available on GitHub is of course great 👍

from pomotv.

DerLobi avatar DerLobi commented on July 28, 2024

if you could expose the data from the YAML files as JSON that would be great.
Also for the recently added videos I currently get the last event from editions.yml and show all corresponding videos. Would be cool to have the feed XML as a JSON array too. Then could show the same videos on the top shelf as are currently shown on the home page.

openURL generally works on tvOS (so no radar necessary), but the YouTube app does not support any of the URL schemes I tried.

from pomotv.

SusannProszak avatar SusannProszak commented on July 28, 2024

Any news about the api? @DerLobi do you need help with the tvOS app? Saw that there are still some topics left to implement.

from pomotv.

chriseidhof avatar chriseidhof commented on July 28, 2024

There is no news on this, it should be quite easy to generate JSON straight from the YAML. Is anyone interested in doing this?

from pomotv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.