The following forum(s) have migrated to Microsoft Q&A (Preview): Developing Universal Windows apps!
Visit Microsoft Q&A (Preview) to post new questions.

Learn More

 locked
[UWP][JS]Html5 media player in edge browser RRS feed

  • Question

  • Hi

    I have a HTML5 video player in a javascript UWP web app.

    I want to access the id3 tags in the metadata for adds during the ad break.

    So I have this.mediaElement.textTracks.addEventListener('addtrack', this.addTrack, false); which is firing for every add. 

    function addTrack(track) {

        track.addEventListener("cuechange", function (cueChangeEvent) {

            console.log(cueChangeEvent) //empty array

    });

    I was expecting to see the metadata in  cueChangeEvent

    both 

    this.mediaElement.videoTracks.addEventListener('addtrack', this.addTrack, false);

    this.mediaElement.audioTracks.addEventListener('addtrack', this.addTrack, false);

    don't fire

    Is there another event other than cuechange i should be looking for


    Friday, November 9, 2018 8:34 AM

All replies

  • Hi,

    I could not reproduce this issue. The event could fire correctly. What's the OS version of your device? Could you please share me a demo about this? A simple demo that could reproduce this will be enough.

    Best regards,

    Roy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, November 12, 2018 9:18 AM
    Moderator