Baseflow / Baseflow/XamarinMediaManager

Subscribe to receive/update WebVTT subtitles for HLS stream

Open
#754 0 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
C#
Stars
763
Forks
299
PR merge metrics
No merged PRs in 30d

Description

Hello. I have an HLS stream with subtitles (WebVTT), this is an m3u8 playlist. I am using the playlist you provided in the HLS example in README.md. This m3u8 playlist has subtitles. Can I somehow subscribe to receive/update these subtitles, such as other metadata?
Just what I tried to do doesn't work:
```
var item = await CrossMediaManager.Current.Extractor.CreateMediaItem("https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/bipbop_16x9_variant.m3u8");
item.MediaType = MediaType.Hls;
await CrossMediaManager.Current.Play(item);
item.MetadataUpdated += (sender, args) =>
{
var subtitle = args.MediaItem.DisplaySubtitle;
DisplayAlert("Info", subtitle, "Ok");
};
```
Is it even possible to do this with the XamarinMediaManager? Thanks for your reply

## 💬 Questions and Help

For questions or help we recommend checking:

- The [Xamarin tag in Stack Overflow](https://stackoverflow.com/questions/tagged/xamarin)
- The [General slack channel in the Xamarin Slack](https://xamarinchat.herokuapp.com/)
- Ask your question in the [Xamarin Forums](https://forums.xamarin.com/)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.