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

SmoothStreaming URLs that uses parenthesis "(...)" as part of the URL causes server side errors #3230

Closed
nahojkap opened this issue Sep 1, 2017 · 2 comments
Labels

Comments

@nahojkap
Copy link

nahojkap commented Sep 1, 2017

Issue description

SmoothStreaming URLs that uses parenthesis "(...)" as part of the URL are not correctly preserved. This kind of format has been seen when Microsoft MediaServices are used.

For example, http://host/content.ism/manifest(filter=x) is changed by SsMediaSource.java into http://host/content.ism/manifest(filter=x)/Manifest which may produce an invalid URL towards the server side.

A simple solution would be to check for "manifest(...)" in the lastPathSegment and use the manifestUri directly if that is the case - something along the lines of

this.manifestUri = manifestUri == null ? null : lastPathSegment.contains("manifest") && lastPathSegment.contains("(") && lastPathSegment.contains(")")) ? manifestUri : lastPathSegment.equals("manifest") ? manifestUri : Uri.withAppendedPath(manifestUri, "Manifest");

Reproduction steps

Use a manifest URL which ends with /manifest(filter=x), attempt playback, error is returned from remote server

Link to test content

While the below link does not use the specified parameters inside the parenthesis, the URL will be rewritten by ExoPlayer and cause the error.

http://playready.directtaps.net/smoothstreaming/SSWSS720H264/SuperSpeedway_720.ism/manifest(filter=no)

Version of ExoPlayer being used

SsMediaSource.java in current dev-v2 branch

Device(s) and version(s) of Android being used

All devices

A full bug report captured from the device

Not applicable

nahojkap added a commit to nahojkap/ExoPlayer that referenced this issue Sep 1, 2017
@ojw28 ojw28 added the bug label Sep 3, 2017
nahojkap added a commit to nahojkap/ExoPlayer that referenced this issue Sep 5, 2017
…rt of the URL causes server side errors: revised after comments
ojw28 added a commit that referenced this issue Sep 20, 2017
Issue: #3230

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=169421873
@ojw28 ojw28 closed this as completed Sep 20, 2017
@nahojkap
Copy link
Author

Thanks @ojw28 for wrapping this up - Irma came along and messed with all our plans & I got somewhat behind. Will let you know if we have any issues with this when we get around to integrating it.

@ojw28
Copy link
Contributor

ojw28 commented Sep 21, 2017

Sorry to hear you were caught up in that. Thanks for your help on this, and yes, let us know if there are any remaining issues when you get back up and running.

@google google locked and limited conversation to collaborators Jan 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants