Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update RaopAudioHandler to support the min-latency SDP attribute in iOS 5.1.1 #7

@pentateu

Description

@pentateu

Hi,

First let me say thank you for the great work. I'm building a Android in-car system and I'll use AirPlay to support streaming of iOS audio, photos and video and your project gives me a huge head start.

Now to the issue. When I tested with iOS 5.1.1 the RaopAudioHandler was throwing an exception because one of the SDP attributes have a dash '-' and the regular expression does not support it.

The attribute is: 'min-latency'

I have changed the regular expression to be:

protected static Pattern s_pattern_sdp_a = Pattern.compile("^(\w+):?(.*)$");

That can be improved to be more restrictive, but that is working fine at the moment.

I have also changed it to protected to allow for the JUnit to have access to the field and run the unit tests.

Cheers,
Rafael

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions