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

Feature: Record webpage video as a gif (or smth like this) for reporting #15

Closed
armand1m opened this issue Jun 26, 2018 · 6 comments
Closed
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@armand1m
Copy link
Member

armand1m commented Jun 26, 2018

We can use https://github.com/yaronn/GifW00t to record the webpage interactions while the user uses the webpage, and also send them with the report.

This can also be well integrated with firebase through perry-firebase so we can also have nice interaction in the web panel =)

@armand1m armand1m added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Jun 26, 2018
@armand1m armand1m changed the title Feature: Take a full-page screenshot when submitting the report Feature: Record webpage for reporting Jun 28, 2018
@vitormargis
Copy link
Collaborator

Don't think it was clear for me. You want to generate GIF's from the user interaction? Is that it?

@armand1m
Copy link
Member Author

yeap, exactly =)

@armand1m
Copy link
Member Author

While the page is being recorded, we can use GifW00t to generate some visual reporting, so the bug inspector (the person receiving the bug report) will be able to see actual user interaction and inspect what he did with the logs

@armand1m armand1m added this to To do in Perry Client Board Oct 18, 2018
@armand1m armand1m changed the title Feature: Record webpage for reporting Feature: Record webpage video as a gif (or smth like this) for reporting Oct 18, 2018
@ghost
Copy link

ghost commented Mar 6, 2019

Bonjour,

I can help by developing some integration with that: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices :)

@ghost
Copy link

ghost commented Mar 6, 2019

I found this thing: https://developer.mozilla.org/en-US/docs/Web/API/MediaStream_Recording_API/Recording_a_media_element

Only downside: very experimental

Tried the following snippet for now to capture the screen:

const constraints = { video: { mediaSource: "screen" }};

navigator.getDisplayMedia(constraints).then((evt) => { 
    console.log(evt);
    const elem = document.createElement('video');
    elem.setAttribute('id', 'vid');
    // elem.setAttribute('srcObject', evt);
    document.querySelector('body').append(elem);
    document.querySelector('#vid').srcObject = evt;
    document.getElementById('vid').onpause = () => {
        const tracks = evt.getTracks();
        console.log(tracks);
    };
    evt.onactive = (et) => console.log('evt', et);
}).catch(console.error)

It works on Edge. If you try it on Chrome, you should call navigator.mediaDevices.getDisplayMedia.

I am building a first PoC in a package for Perry

@ghost ghost mentioned this issue Mar 7, 2019
@armand1m
Copy link
Member Author

This issue was closed by #47 .

Perry Client Board automation moved this from To do to Done Mar 11, 2019
@armand1m armand1m assigned ghost and armand1m and unassigned armand1m Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
Development

No branches or pull requests

2 participants