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

- Added support for custom data in the MediaInfo object class + other fix #92

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

GoMino
Copy link

@GoMino GoMino commented Dec 23, 2015

  • Make sure the ConnectableDevice id is set with the serviceDescription UUID if any, instead of a generated one.
  • Fix the ConnectableDevice constructor with a JSONObject as argument to properly initialize the serialized DeviceServices if any.
  • Fix a bug where the serviceDescription does not get set to the ConnectableDevice when first discovered (was only set on the DeviceService at first, and then on the ConnectableDevice, when it get updated).
  • Added Support for startPosition and customData parameters in playMedia method of MediaPlayer capability.

- Make sure the ConnectableDevice id is set with the serviceDescription UUID if any, instead of a generated one.
- Fix the ConnectableDevice constructor with a JSONObject as argument to properly initialize the serialized DeviceServices if any.
- Fix a bug where the serviceDescription does not get set to the ConnectableDevice when first discovered (was only set on the DeviceService at first, and then on the ConnectableDevice, when it get updated).
- Added Support for startPosition and customData parameters in playMedia method of MediaPlayer capability.

//Deserialize the associated services as well
try {
JSONObject jsonServices = json.getJSONObject(KEY_SERVICES);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should probably use 'optJSONObject here, just like the piece of code above this.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, I added a new commit to fix that, thanks!

…ice + Fix SSDPDeviceTest case for new support library
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants