Baseflow / Baseflow/XamarinMediaManager

Playing video from Azure Media Service

Open
#708 3 comments 1 reaction 0 assignees View on GitHub
bug need investigation
Dominant language
C#
Stars
763
Forks
299
PR merge metrics
No merged PRs in 30d

Description

## 🐛 Bug Report

I'm trying to play a video hosted on azure media services. I'm using the AzureMediaServiceItem class to set the current player url source. Nothing is shown in the VideoView. In the output the follwing error.

```
04-30 19:15:54.191 E/ExoPlayerImplInternal(17126): Source error.
04-30 19:15:54.191 E/ExoPlayerImplInternal(17126): com.google.android.exoplayer2.source.UnrecognizedInputFormatException: None of the available extractors (MatroskaExtractor, FragmentedMp4Extractor, Mp4Extractor, Mp3Extractor, AdtsExtractor, Ac3Extractor, TsExtractor, FlvExtractor, OggExtractor, PsExtractor, WavExtractor, AmrExtractor) could read the stream.
04-30 19:15:54.191 E/ExoPlayerImplInternal(17126): at com.google.android.exoplayer2.source.ExtractorMediaPeriod$ExtractorHolder.selectExtractor(ExtractorMediaPeriod.java:973)
04-30 19:15:54.191 E/ExoPlayerImplInternal(17126): at com.google.android.exoplayer2.source.ExtractorMediaPeriod$ExtractingLoadable.load(ExtractorMediaPeriod.java:891)
04-30 19:15:54.191 E/ExoPlayerImplInternal(17126): at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:381)
04-30 19:15:54.191 E/ExoPlayerImplInternal(17126): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
04-30 19:15:54.191 E/ExoPlayerImplInternal(17126): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
04-30 19:15:54.191 E/ExoPlayerImplInternal(17126): at java.lang.Thread.run(Thread.java:764)

```
### Expected behavior
The video should be played.

### Reproduction steps
1. Create a simple Xamarin app with a single page
2. Add the Plugin.MediaManager.Forms
3. Add the Plugin.MediaManager.AzureMediaServices
4. Add the VideoView view in the page
5. Configure the ViewView source via code with the follow code:
`await CrossMediaManager.Current.Play(new AzureMediaServiceItem("https://.../manifest"));`

### Configuration

**Version:** 0.9.7

**Platform:**
- [ ] :iphone: iOS
- [X] :robot: Android
- [ ] :checkered_flag: WPF
- [ ] :earth_americas: UWP
- [ ] :apple: MacOS
- [ ] :tv: tvOS
- [X] :monkey: Xamarin.Forms

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.