brianchirls / Seriously.js

A real-time, node-based video effects compositor for the web built with HTML5, Javascript and WebGL
MIT License
3.88k stars 354 forks source link

Get Videos by URL #120

Open REPTILEHAUS opened 8 years ago

REPTILEHAUS commented 8 years ago

Is it possible to supply serioulsy with json or some other format rather than having to place hidden video elements at the end of my page, hidden with css ?

If not it would be a really cool feature.. my new site looks great but it kind of bugs me that the html video element is still in my source code

positlabs commented 8 years ago

Have you tried videoElement.remove()? I'm wondering if the video actually needs to be in the dom, or if it can just exist in memory.

REPTILEHAUS commented 8 years ago

Hey, that didnt work for me, the video just doesnt display now... I basically have 3 videos on my homepage that I want to do this for.. its not totally a dealbreaker but id really like to feed those video urls into the plugin somehow

positlabs commented 8 years ago

I'm having trouble seeing what the issue is. You want to feed 1 of 3 videos into a seriously graph, right? You can easily write a method for managing which one is active, and remove inactive videos from the DOM. I don't see much benefit in adding this functionality into the the lib.

If you want to post some code, I could give more advice.

REPTILEHAUS commented 8 years ago

No I want all 3 videos to display on 3 separate canvas elements but I want the actual elements to be removed from the code completely..

I tried using element.remove() on all 3 but then the video doesnt play

On Tue, Jun 7, 2016 at 10:26 PM, Josh Beckwith notifications@github.com wrote:

I'm having trouble seeing what the issue is. You want to feed 1 of 3 videos into a seriously graph, right? You can easily write a method for managing which one is active, and remove inactive videos from the DOM. I don't see much benefit in adding this functionality into the the lib.

If you want to post some code, I could give more advice.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/brianchirls/Seriously.js/issues/120#issuecomment-224419463, or mute the thread https://github.com/notifications/unsubscribe/AEdrreQMhT-qUjFwkAmr6Au2H-RReyBaks5qJeHsgaJpZM4IwQYg .

Kind Regards,

Paddy O’Sullivan

Freelance Web Developer & Administrator Lassie Marlowe Digital Office: Studio 15 c/o BlockT, Smithfield Chambers, Smithfield Square, Dublin 7, Ireland Linkedin: ie.linkedin.com/in/paddyjosullivan Email: padjo.osullivan@gmail.com Web: www.lassiemarlowe.com Phone: +353 86 024 2110

positlabs commented 8 years ago

Sorry I think you're out of luck. You could create/insert the videos via js, as opposed to declaring them in html, but the elements will still exist.