Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Html5 video compatibility #13

Open
marcoaureliovrs opened this issue Mar 17, 2017 · 3 comments
Open

Html5 video compatibility #13

marcoaureliovrs opened this issue Mar 17, 2017 · 3 comments

Comments

@marcoaureliovrs
Copy link

Hello,
I'm trying to use your library to run video in a html5 video player

But unfortunately I'm not succeeding, would you have an example of playing videos in html5?

@Seikon
Copy link
Collaborator

Seikon commented Mar 22, 2017

Hi @marcogorak ,

This library only decodes video in a string of matrix pixels that represent each frame of the video. Obviously you can't target directly these frames to html5 video element because this expect a encoding video format like mp4, ogg... Also, you need another extra information like the fps. I suggest you to take a view of these links that containts libraries usefull for you:

Brodway : https://github.com/mbebenita/Broadway

Images to video Javascript: http://techslides.com/convert-images-to-video-with-javascript

Another solution is to develop a basic video player based in canvas (for more compatibility) that control the time and the fps of the frames string.

Also if you want to tell more about your problem, maybe we could make a solution in this library if more developers have the same problems.

Thank you!

@marcoaureliovrs
Copy link
Author

Hi, thanks for the reply.

I wanted to be able to control the pause and play of the stream outside that I would like to buffer the stream in the user's browser because at the moment of execution the frames are being sent in half and being displayed on the screen.

@Seikon
Copy link
Collaborator

Seikon commented May 19, 2017

I think you can start and stop the stream with Socket IO clearing the channel that you are subscribed.

In the example you can disconnect with divSocket.disconnect(); and reconnect with divSocket.connect();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants