Giter VIP home page Giter VIP logo

Comments (25)

hawkrives avatar hawkrives commented on August 26, 2024 1

yeah, it's just not doing much of anything for me at the moment. thanks for the links!

from aao-react-native.

hawkrives avatar hawkrives commented on August 26, 2024 1

Current status: 830932941_7088475972866689906

Problems: um, they all load at once. Do we want a list of the webcams and then push on a new screen just for the video? (neΓ© AAO 1.0)

from aao-react-native.

hawkrives avatar hawkrives commented on August 26, 2024

Here we go: from https://www.stolaf.edu/multimedia/webcams/webcams.js,

{file: 'http://stolaf-flash.streamguys.net/webcams/' + cam + '.stream/playlist.m3u8'}

So each camera feed lives at http://stolaf-flash.streamguys.net/webcams/$cam.stream/playlist.m3u8.

.m3u8 is an mp4 playlist file. IIRC most things can read them and load the implied media automatically.

It might be worth seeing how easy it would be to use these.

from aao-react-native.

hawkrives avatar hawkrives commented on August 26, 2024

Camera names:

himom
bcplaza
eastquad
tomsonwest
tomsoneast
alumniwest

from aao-react-native.

hawkrives avatar hawkrives commented on August 26, 2024

so one example URL would be http://stolaf-flash.streamguys.net/webcams/himom.stream/playlist.m3u8.

In VLC:

image

from aao-react-native.

elijahverdoorn avatar elijahverdoorn commented on August 26, 2024

I dug into this earlier in the summer, and I found the same thing, but VLC wouldn't open them for me. (and if VLC doesn't open it, I assume that nothing can!) Given that, feel like coding something basic up?

from aao-react-native.

drewvolz avatar drewvolz commented on August 26, 2024

From only a minute of research, I have not found anything that can stream the m3u8 streams in React Native. Needs more research?

from aao-react-native.

hawkrives avatar hawkrives commented on August 26, 2024

Hmm. Lemme try some things.

from aao-react-native.

hawkrives avatar hawkrives commented on August 26, 2024

I'm going to try https://github.com/react-native-community/react-native-video first. It's in my history as something I've visited before.

from aao-react-native.

drewvolz avatar drewvolz commented on August 26, 2024

Check out the issues related to the keyword m3u8 on that one. It might work as is?

Otherwise, see this particular thread.

from aao-react-native.

hawkrives avatar hawkrives commented on August 26, 2024

So. Current status:

  • You can play the video by opening the m3u8 URL directly in Safari on both iOS and macOS.

- but loading the URL directly in a `` doesn't work.So. Current status: - You can play the video by opening the m3u8 URL directly in Safari on both iOS and macOS.

- but loading the URL directly in a `` doesn't work.

Then I remembered that you can put custom html into the web view, so I tried building a little html snippet to load the video:

<video autoplay muted>
    <source src="$url/playlist.m3u8" type="application/x-mpegURL">
</video>

Which worked in desktop Safari!

And … partially worked in the app.

So that's current status.

from aao-react-native.

drewvolz avatar drewvolz commented on August 26, 2024

Nice work! Webviews seem to handle it well (from what I can see)

from aao-react-native.

hawkrives avatar hawkrives commented on August 26, 2024

https://github.com/StoDevX/AAO-React-Native/tree/streaming-media

from aao-react-native.

hawkrives avatar hawkrives commented on August 26, 2024

Or we could load a static thumbnail of each video from the feed and show that in the list.

from aao-react-native.

hawkrives avatar hawkrives commented on August 26, 2024

It's bedtime for me now. 😴

from aao-react-native.

drewvolz avatar drewvolz commented on August 26, 2024

Is it possible to display them all on this screen, full width and normal height, and then allow rotation to put it in full screen? Or tapping?

from aao-react-native.

hawkrives avatar hawkrives commented on August 26, 2024

Maybe. I was tired of fighting the layout system πŸ˜‚

from aao-react-native.

drewvolz avatar drewvolz commented on August 26, 2024

I recognize we are getting closer to having these display in a Webview. If we do ever decide to render these another way, here are a couple possibilities.

from aao-react-native.

drewvolz avatar drewvolz commented on August 26, 2024

With our current implementation of separate webviews, one can play the stream multiple times if they pinch out of a stream instead of hitting the "Done" button. That's not entirely ideal, so we should most likely move forward with passing the stream url onwards to a separate view... and be sure that the "Done" button on the stream does not prevent us from opening the view again.

Also, rotation only works in the simulator but not on the actual device. I am now testing on iOS 10.

See #123

from aao-react-native.

drewvolz avatar drewvolz commented on August 26, 2024

Another thought for Streaming media is the potential to provide access (with rss/json) to the events via the streams up on multimedia

from aao-react-native.

elijahverdoorn avatar elijahverdoorn commented on August 26, 2024

That's a good plan, something for another version. Maybe make an issue to track it?

from aao-react-native.

elijahverdoorn avatar elijahverdoorn commented on August 26, 2024

oops

from aao-react-native.

drewvolz avatar drewvolz commented on August 26, 2024

Sure. That child story now lives at #127.

from aao-react-native.

elijahverdoorn avatar elijahverdoorn commented on August 26, 2024

Closing this one, see #137

from aao-react-native.

hawkrives avatar hawkrives commented on August 26, 2024

We still need Weekly Movie info (#141) and a non-silly webcams view (#142).

from aao-react-native.

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.