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

Add chapters support #2972

Merged
merged 15 commits into from
Jun 22, 2021
Merged

Conversation

avelad
Copy link
Member

@avelad avelad commented Nov 8, 2020

Add the following methods:

  • addChaptersTrack
  • getChapters
  • getChaptersTracks

The following formats are supported: WebVTT and SRT

@avelad
Copy link
Member Author

avelad commented Dec 17, 2020

@joeyparrish Do you think it can be reviewed and include it in v3.1?

@avelad
Copy link
Member Author

avelad commented Jan 27, 2021

@michellezhuogg I have seen that you are reviewing other PR. Do you think it can be reviewed and include it in v3.1?

@avelad
Copy link
Member Author

avelad commented Feb 10, 2021

I close it because it has been decided to do it at the application level and it is no longer necessary to do it at the player level.

@avelad avelad closed this Feb 10, 2021
@hiren3897
Copy link

Hello, @avelad @joeyparrish have been any decision made to include chapter support in shaka-player?

@avelad
Copy link
Member Author

avelad commented Jun 10, 2021

The idea was good, but the PR was open for more than 3 months and I couldn't get anyone's attention, that's why I closed it...

@hiren3897
Copy link

Okay, Let's see when it will be available because this is a good feature.
You have already done a great job here :)
@joeyparrish can you please comment on this?

@joeyparrish
Copy link
Member

Hi @hiren3897, @avelad,

Please accept our apologies for not reviewing this. It has nothing to do with the content or a lack of interest in the feature. We have a lot of work to do on this team to improve responsiveness to PRs.

@avelad, I am in the middle of some urgent bug fixes right now, but if you are still interested, I would be happy to reopen the PR now and schedule time to discuss and review it later.

@avelad
Copy link
Member Author

avelad commented Jun 10, 2021

I'm on vacation this week and next week, but I'll continue work.

@avelad avelad reopened this Jun 10, 2021
@avelad
Copy link
Member Author

avelad commented Jun 21, 2021

Updated and synchronized with the latest from the repo. @joeyparrish , can you review?

Copy link
Member

@joeyparrish joeyparrish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

lib/player.js Outdated Show resolved Hide resolved
lib/player.js Outdated Show resolved Hide resolved
externs/shaka/player.js Outdated Show resolved Hide resolved
@@ -4371,6 +4467,102 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
return shaka.util.StreamUtils.textStreamToTrack(stream);
}

/**
* Adds the given chapters track to the loaded manifest. <code>load()</code>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does DASH offer a way to include a chapters track reference in the manifest? Or will it always have to be side-loaded for DASH content?

Does HLS offer a way to include a chapters track in a playlist? If so, does Apple's native HLS expose them through video.textTracks?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I know, both DASH and HLS do not offer this functionality and it is always side-loaded

lib/player.js Show resolved Hide resolved
@avelad avelad requested a review from joeyparrish June 22, 2021 06:53
@shaka-bot
Copy link
Collaborator

All tests passed!

@joeyparrish joeyparrish merged commit 160e36b into shaka-project:master Jun 22, 2021
@joeyparrish
Copy link
Member

This will first appear in v3.2. Thanks for your patience with us!

@avelad avelad deleted the chapters-support branch June 23, 2021 05:35
@hiren3897
Copy link

Hello @joeyparrish @avelad
Thanks the great news that this feature is going to finally release :D

I am eagerly waiting for this one.

Thank you so much :) cheers! 🥳

@avelad
Copy link
Member Author

avelad commented Jun 23, 2021

@joeyparrish do you have any estimated ETA for 3.2?

@joeyparrish
Copy link
Member

I discussed this today with @michellezhuogg, who implemented the major feature we were targeting for v3.2, and we will discuss it more broadly with the rest of the Shaka team on Monday. If we don't find any reason to delay the launch of v3.2, we could launch it as early as next week.

@avelad
Copy link
Member Author

avelad commented Jul 10, 2021

@joeyparrish Can you add version 3.2 to this PR?

@joeyparrish
Copy link
Member

Sure.

@hiren3897
Copy link

Hello @avelad @joeyparrish.
As the chapter's support has been already released in the shaka-player v3.2. 🎉

Do we have any tutorials on how to add/get chapters support to the player?

Or do we have to add chapters manually? using addChaptersTrack(uri, language, mimeTypeopt)

And the list of chapters should be present inside the Manifest so that the functions

this.player.getChapters('en') 
this.player.getChaptersTracks()

will return the list of chapters so that we can use them to populate on the timeline?

Thank you In advance :)

@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants