MediaElement Support for 203 Partial Content #1946
Replies: 9 comments
-
Hi @Jan6501 I think your public reproduction repository is currently set to private as I am unable to access it. Can you please check that? Also what exactly is the issue that you are seeing here? The video doesn't play? Doesn't auto play? Or something else? |
Beta Was this translation helpful? Give feedback.
-
hi "The video doesn't play?" no Jan |
Beta Was this translation helpful? Give feedback.
-
Android = no |
Beta Was this translation helpful? Give feedback.
-
Error codename: ERROR_CODE_IO_BAD_HTTP_STATUS, Error message: Source error |
Beta Was this translation helpful? Give feedback.
-
HTTP/1.1 206 Partial Content |
Beta Was this translation helpful? Give feedback.
-
That API appears to use device detection. If I load it in Chrome it then loads a web page and a javascript player which shows the weather as a web app. That makes it hard to figure out the best way to load the player. It honestly depends on how the http request is done. I think if we want to add support for this we would have to know more about how the API works. ATM we support file urls from the web and device. If we want to add additional support and allow further configuration you should open a discussion and suggest an API. We can see what support we get from the community. @vhugogarcia |
Beta Was this translation helpful? Give feedback.
-
Thanks @Jan32 and @ne0rrmatrix for the feedback. I also reviewed this issue and I noticed that this page https://api.met.no/weatherapi/geosatellite/1.4/.mp4 may be returning an invalid status code, since it is returning a 206 partial content as you mentioned it. After reviewing also directly with the Android ExoPlayer repository, I found out this issue: google/ExoPlayer#10537 that the only way to support partial content status is by using a custom LoadControl. I am not sure if we should support partial content status code or no in Android, and I don't have experience creating a custom LoadControl, but others may have experience and can give us some hand. By the information mentioned above, I am moving this to a discussion since it is a nice to have feature, so we can discuss more in depth the implications and define the next steps there. |
Beta Was this translation helpful? Give feedback.
-
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
Hi
Visual Studio 2022 Preview
No
CommunityToolkit.Maui.MediaElement = 3.0.1
![Screenshot_1706087193](https://private-user-images.githubusercontent.com/157676623/299556062-0b94c9de-7945-4620-bc0a-9b2d9597e5d5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MDc4MTgsIm5iZiI6MTczOTYwNzUxOCwicGF0aCI6Ii8xNTc2NzY2MjMvMjk5NTU2MDYyLTBiOTRjOWRlLTc5NDUtNDYyMC1iYzBhLTliMmQ5NTk3ZTVkNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQwODE4MzhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05ZjcxYWUzMjU0NDFjNWMyNzQ2NmUwNDZjNzYyMzQ3OWMzZTgyODUwNzU3NmUwZDM1ZTU3YTQ0ZjkyZjAzNDA4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.tKsfUiNn1fN0uO29qM83qc1FF8YHsUYLyC-fYrQ5VKc)
Expected Behavior
Visual Studio 2022
Yes
Xamarin.CommunityToolkit=2.0.6
![Screenshot_1706087224](https://private-user-images.githubusercontent.com/157676623/299556145-42d4c954-60d5-477d-92b8-50dda0f4e6b4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MDc4MTgsIm5iZiI6MTczOTYwNzUxOCwicGF0aCI6Ii8xNTc2NzY2MjMvMjk5NTU2MTQ1LTQyZDRjOTU0LTYwZDUtNDc3ZC05MmI4LTUwZGRhMGY0ZTZiNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQwODE4MzhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04YzBiYWM5YWVlNzAxYzA2OTUwM2I2OTlhMTM3ODY4NGNjMmQxYzQ3NTRjMzY1ZDMyMWY2YzM5NGZkOGFhYWNlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.vy6Gz3ZngrwEzAZIjtxWlQFQon-scwkrqs8MSn5foo8)
Steps To Reproduce
Open and run solution from repository
Link to public reproduction project repository
https://github.com/Jan6501/MauiApp1a
Environment
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions