update streamType mapping to correctly reference livestream boolean value#52
update streamType mapping to correctly reference livestream boolean value#52kdaswani wants to merge 1 commit into
Conversation
|
@gpsamson I just completed local tests. I first validated that when I set @"livestream": @no (meaning it should be "vod"), the network request to Adobe maps s:stream:type to "live": Then I updated my test app to target the branch in this PR and ran And lastly, I built my app and triggered the same Video Playback Started event as before with @"livestream": @no. The result was a network request to Adobe that correctly maps s:stream:type to "vod": Let me know your thoughts and if any other testing is needed! I can also ask Fox to target this branch and test before we release 😄 |
|
Shared branch with Fox for testing. Will update this PR with their results! |
|
Hi @gpsamson! Fox tested this branch and confirmed that it fixed the issue for them. They are ready to integrate it whenever a new version of published! I think the new version will be |
|
Hi @gpsamson any updates on this PR? Let me know if I can help with anything! |
|
created new PR without changes to Example project: #55 |



Fox is seeing the Adobe
streamTypevariable always set to “live” even when livestream = false (it should be “vod” in these cases). However, the AdobeSTREAM_FORMATvariable is correctly set to “vod” when livestream = true. I have replicated the behavior and see that even when livestream = false, thestreamTypeis labeled "live" in the network calls to Adobe.In our integration code, we do basically the same mapping to each variable. The only difference is:
STREAM_FORMAT references
bool isLivestream = [properties[@"livestream"] boolValue];streamType references
bool isLivestream = properties[@"livestream"];@gpsamson confirmed that leaving out
boolValueis causing our integration to not actually check the true/false value for streamType and therefore setting all events that have the livestream property to “live”. I have updated our integration so that streamType usesbool isLivestream = properties[@"livestream" boolValue];instead. I have also updated the Tests to include the livestream property on playback and content events. All unit tests passed!Unit test results:
