Coder Social home page Coder Social logo

danstiner / glimdroid Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 1.03 MB

Unofficial app for Glimesh.tv - a real-time livestreaming platform

Home Page: https://play.google.com/store/apps/details?id=com.danielstiner.glimdroid

Kotlin 100.00%
android webrtc

glimdroid's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

glimdroid's Issues

Closing PiP and re-opening same stream does not start video/audio

Repro steps:

  • Open a stream
  • Hit back
  • Close PiP window with the little "x" on it
  • Open the same stream again

Expected result: Stream starts as normal

Actual result: Stream does not start, video is just black and the layout is messed up

Workaround: Open a different stream and then switch back to the one you wanted

Disconnecting

Was watching a stream and had to go to browser base because glimdroid was disconnecting me from the stream every 10-20 minutes or more

App crashes if websocket connection closes

This is somewhat expected, I haven't implemented anything to reconnect the websocket when it dies.

Doing so is a little tricky, any open subscriptions need to be opened again and any in-progress requests retried. It may be simpler to tie websockets to specific activities and then restart the activity when something goes wrong.

Similar story for Janus sessions, if they die we need to restart them.

Crash stacktrace:

kotlin.NotImplementedError:
at com.danielstiner.phoenix.channels.Socket$Listener.onFailure (Socket.java)
at okhttp3.internal.ws.RealWebSocket.failWebSocket (RealWebSocket.java:31)
at okhttp3.internal.ws.RealWebSocket$WriterTask.runOnce (RealWebSocket.java:15)
at okhttp3.internal.concurrent.TaskRunner.runTask (TaskRunner.java)
at okhttp3.internal.concurrent.TaskRunner.access$runTask (TaskRunner.java)
at okhttp3.internal.concurrent.TaskRunner$runnable$1.run (TaskRunner.java)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at java.lang.Thread.run (Thread.java:920)

Viewer counts can be inflated

When watching a stream, the Glimesh.tv server is told via the startWatching mutation that it should count the current user as a viewer on the channel. However there is no way to stop watching except to close the websocket, and I'd prefer to keep one socket open for the entire app if possible.

I think instead watching should be tracked as a graphql subscription so it can be stopped. Alternatively I'd have to switch to having multiple sockets open, one for getting general info / channel lists, then another opened per stream and closed when the stream switches. That's possible but adds noticeable latency and some complexity.

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.