Skip to content

Segments metadata track is shown when changing source #5553

Closed
@johnbyers

Description

@johnbyers

Description

If you had captions on, and then change the video source, you get some weird text on the screen. The guys on videojs slack thought it was the segments metadata track.

Steps to reproduce

  1. Visit the VHS test page at https://videojs.github.io/http-streaming/
  2. Play the video, choosing the very bottom closed caption track, "cc1". (Not sure what language it is for, but the captions show English)
  3. Reset the player's source by clicking the "Load" button again.
  4. Play the video, and see the weird text/json

Results

Expected

No captions after changing source.

Actual

Even though closed captions are set to "off" after switching the source, this appears as a caption over the video:
{"bandwidth":915905,"resolution":{"width":960,"height":540},"codecs":"mpra.40.2,avc1.4d401f","byteLength":1046972,"uri":"https://d2zihajmogu5jn.cloudfront.net/bipbop-advanced/gear3/main.ts","timeline":0,"playlist":"gear3/prog_index.m3u8","start":9.976644444444446,"end":19.91992222222223}

Error output

Additional Information

versions

videojs

I've seen it in 7.2.2 and 7.2.4

browsers

Chrome, Firefox, and IE11.
Edge doesn't even show captions.
Mobile Safari doesn't show that bottom "CC" caption option, so it doesn't seem to have the problem.

OSes

Microsoft Windows 10

plugins

None

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