Skip to content

getVideoPlaybackQuality function returns empty object for video element #8519

@viraxslot

Description

@viraxslot

Current behavior:

Function getVideoPlaybackQuality for video element returns {}

Desired behavior:

It should return VideoPlaybackQuality object, example in DevTools with the same site
image

Test code to reproduce

context('Video test', () => {
    beforeEach(() => {
        cy.visit('https://webrtc.github.io/samples/src/content/capture/video-video/');
    });

    it('video test', () => {
        const leftVideo = '#leftVideo';
        cy.contains('WebRTC samples');

        cy.get(leftVideo).then(($video) => {
            const video = $video.get(0);
            video.muted = true;
            video.play();

            cy.wait(2000);

            cy.log(video.videoWidth);
            cy.log(video.videoHeight);
            cy.log(video.getVideoPlaybackQuality());
        });
    });
});

Result
image

Versions

Cypress 5.1.0
Chrome 85
MacOS Catalina 10.15.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions