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

Only use variant for ad tracking, return HLS master manifest for video playback #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions advertising/rsgadb/lib/rafxssai.brs
Original file line number Diff line number Diff line change
Expand Up @@ -866,8 +866,8 @@ end if
end if
end function
impl.onPosition = function (msg as object) as void
if invalid <> m.prplyInfo["mediaURL"] and invalid = m.prplyInfo["pods"]
adjsn = m.loader.requestAdInsertion(m.prplyInfo.mediaURL)
if invalid <> m.prplyInfo["variantURL"] and invalid = m.prplyInfo["pods"]
adjsn = m.loader.requestAdInsertion(m.prplyInfo.variantURL)
if invalid = adjsn
m.prplyInfo["pods"] = []
else
Expand All @@ -894,9 +894,10 @@ if invalid = masterjson or not m.isValidString(masterjson["Master-M3U8"]) then r
if false then return {masterURL:masterjson["Master-M3U8"]}
playlistUrl = masterjson["Master-M3U8"]
mediaURL = m.selectMediaUrl(playlistUrl, requestObj)
if "" <> mediaURL
prplyInfo["mediaURL"] = mediaURL
if mediaURL <> ""
prplyInfo["variantURL"] = mediaURL
end if
prplyInfo["mediaURL"] = playlistUrl
matches = m.trckngpos.match(requestObj.url)
if 1 < matches.count()
m.trackingposition = matches[1]
Expand Down Expand Up @@ -1421,7 +1422,7 @@ function RAFX_SSAI(params as object) as object
else if "simple" = params["trackingmode"]'
p = RAFX_getAdobeSimplePlugin(params)'
end if
p["__version__"] = "0b.42.35.15"
p["__version__"] = "0b.42.36.15"
p["__name__"] = params["name"]
return p
end if
Expand Down