-
Notifications
You must be signed in to change notification settings - Fork 421
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
[BUG] RTSP Url stream presumed incompatibility in Maui.Toolkit Android Exoplayer component #972
Comments
Hi @Anioz. We have added the "needs reproduction" label to this issue, which indicates that we cannot take further action. This issue will be closed automatically in 5 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
While you might think that, it's often not that simple. Remember, we don't have all the context you have. There are a lot of factors that can influence the behavior of a potential issue. For instance, in this case, I can't reproduce it. Using this RTSP stream: rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mp4 in the sample app on this repo, it works perfectly for me. So it might be something in the way we configure the ExoPlayer or how we load it, but at the very least I'm going to need a RTSP stream that actually shows this behavior. |
I updated the comment with a repro link https://1drv.ms/u/s!AqVY9RkzgdHIrRJpCfa_rIgyBW7A?e=8oxTBc but its not showing yet. Asking to make my usernames passwords and lan camera internet available to all is definatly unrealistic. Allowing the maui app to feedback more in depth exception info from Exoplayer might be the better way to go, as i stated before i dont mind running experimental builds from you guys to test this and feedback that sensitive information privatly. |
I also tested that stream and it works perfectly here locally: rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mp4 |
this one seems very similar: google/ExoPlayer#4532 one user mentions: "In old ExoPlayer i changed ASSERTIONS_ENABLED to false to get rid of crash but now I'm using 2.8.2 and same problem still appeared on Samsung Devices with OS 7.0. ASSERTIONS_ENABLED is public static final in ExoPlayerLibraryInfo and can't modified this time cause I'm using 2.8.2 with gradle implementation." Is there a possibility for me to tweak and play around with those settings somehow? (to try the proposed work arounds) |
Yes you can fork this repository and mess around with the settings as much as you like. You can point your app to the build from the fork rather than the NuGet package |
Thanks to downloading maui 1.0.1 toolkit and modifying the exoplayer constructor as follows:
Following log item came available: So basically its IGNORING/NOT USING the given password in the pswd string for some reason altough it works with the other URL's which are the same in several cases (except for the ip and username) |
With rtsp authentication DISABLED on the camera which won't work and crashes the same with Exoplayer the following log output is gotten: |
same deal with the foscam cam's: So basically AUTH over rtsp has incompatibilities + this might be why the checkargument method fails, if someone knows how to implement our own version of RtspClient.MessageListener && RtspRequest header section (RtspHeaders.Builder) we could change the HEADER to a valid one and try get logs further down the proces altough the one rtsp hikvision stream without auth just fails just the same with no AUTH at all.. so prolly something else going on.. |
Thanks for this update. It sounds like we could possible add the ability to add in logging information into the documentation pages. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 3 days. It will be closed if no further activity occurs within 2 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. |
Glad to help. Adding it to the standard documentation will probably be very helpfull for weeding out a lot of the exoplayer type problems Wish there was a rtsp auth reply msg editor made available in the exoplayer bindings that way we could even solve problems and just feedback the solution in its entirety. |
We haven't received a reproduction sample from you. The issue is closed. |
@Anioz Would you be willing to post more information about how you resolved the authentication issues? |
I ended up doing away with exoplayer entirely and used a webview instead. For my videoplayer capabilities that i needed for other vids that are not streams i implemented libvlc video player for cross platform maui. |
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
Crashes the app on the latest version at current time with following error:
"
[AndroidRuntime] FATAL EXCEPTION: ExoPlayer:Playback
[AndroidRuntime] Process: com.solid.HomeCon, PID: 18345
[AndroidRuntime] java.lang.IllegalArgumentException
[AndroidRuntime] at com.google.android.exoplayer2.util.Assertions.checkArgument(Assertions.java:39)
[AndroidRuntime] at com.google.android.exoplayer2.source.rtsp.RtspMediaTrack.generatePayloadFormat(RtspMediaTrack.java:260)
[AndroidRuntime] at com.google.android.exoplayer2.source.rtsp.RtspMediaTrack.(RtspMediaTrack.java:161)
[AndroidRuntime] at com.google.android.exoplayer2.source.rtsp.RtspClient.buildTrackList(RtspClient.java:347)
[AndroidRuntime] at com.google.android.exoplayer2.source.rtsp.RtspClient.access$1700(RtspClient.java:75)
[AndroidRuntime] at com.google.android.exoplayer2.source.rtsp.RtspClient$MessageListener.onDescribeResponseReceived(RtspClient.java:690)
[AndroidRuntime] at com.google.android.exoplayer2.source.rtsp.RtspClient$MessageListener.handleRtspResponse(RtspClient.java:598)
[AndroidRuntime] at com.google.android.exoplayer2.source.rtsp.RtspClient$MessageListener.handleRtspMessage(RtspClient.java:507)
[AndroidRuntime] at com.google.android.exoplayer2.source.rtsp.RtspClient$MessageListener.lambda$onRtspMessageReceived$0$com-google-android-exoplayer2-source-rtsp-RtspClient$MessageListener(RtspClient.java:500)
[AndroidRuntime] at com.google.android.exoplayer2.source.rtsp.RtspClient$MessageListener$$ExternalSyntheticLambda0.run(Unknown Source:4)
[AndroidRuntime] at android.os.Handler.handleCallback(Handler.java:883)
[AndroidRuntime] at android.os.Handler.dispatchMessage(Handler.java:100)
[AndroidRuntime] at android.os.Looper.loop(Looper.java:237)
[AndroidRuntime] at android.os.HandlerThread.run(HandlerThread.java:67)
[m.solid.HomeCo] 0xebadde09 skipped times: 0
[libc] exiting due to SIG_DFL handler for signal 11"
Hikvision IP camera model HWI-D140H x 3 works great without any problems (maui toolkit rtsp://user:pswd@ip:554/ch1/sub/live)
Hikvision Doorbell camera model DS-KD8003-IME1 x1 crashes the app (maui toolkit rtsp://user:pswd@ip:554/ch1/sub/live works both in vlc and xamarin forms)
Foscam IP camera model R4M x 1 crashes the app (maui toolkit rtsp://user:pswd@ip:88/ch1/sub/live, works both in vlc and xamarin forms)
Foscam IP camera model R4M-B x 1 crashes the app (maui toolkit rtsp://user:pswd@ip:88/ch1/sub/live, works both in vlc and xamarin forms)
Ive tested with other ports this seems NOT to be the cause of the problem since the hikvision Doorbell crashes with the same error and uses the same url as the hikvision ip camera's (ive also tested a video only stream on the doorbell and it fails with the same exception)
Please advise on what tests to additionally try and if this will be looked at in an upcoming release of maui toolkit mediaelement, since at current time theres no real viable alternative
Expected Behavior
Plays any rtsp URL as long as given url format is a valid working one.
Steps To Reproduce
Link to public reproduction project repository
https://1drv.ms/u/s!AqVY9RkzgdHIrRJpCfa_rIgyBW7A?e=8oxTBc
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: