Skip to content

IovCollection fails creation after destroying it #26

@ricardojbertolin

Description

@ricardojbertolin

The following code generates an exception:

        const videoElement = this.elRef.nativeElement.firstElementChild;
        let iovCollection: IovCollection;
        // define a function that instantiates an IovCollection, and creates an iov
        const createIov = async () => {
            iovCollection = IovCollection.asSingleton();
            console.log(iovCollection);
            const iov = await iovCollection.create({ videoElement } as any);
            await iov.changeSrc(url);
        };
        // create iov
        await createIov();
        // destroy it after creation
        await iovCollection.destroy();
        // create again
        await createIov();

Basically it does the following:

  • Instantiate a IovCollection and create a iov
  • After that destroy the iovCollection
  • Try to create again

This is the exception generated:

image

The excepction is caused by this.:

image

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