Skip to content

Conversation

DreamSkyOk
Copy link

Description

Because the 'response' property from XMLHttpRequest is readonly, can add the customize read-write 'videojsCustomizedResponse' property to request object via the onResponse method.
So can customize transform the response data through videojs.Vhs.xhr.onResponse. eg: request.videojsCustomizedResponse=newResponseData.

Specific Changes proposed

Change generate logic of the newBytes.

Requirements Checklist

  • Feature implemented / Bug fixed
  • If necessary, more likely in a feature request than a bug fix
  • Reviewed by Two Core Contributors

Because the 'response' and 'responseText' property from XMLHttpRequest is readonly, add two customize read-write property: videojsCustomizedResponse,videojsCustomizedResponseText to request object. So can customize transform the response data through videojs.Vhs.xhr.onResponse. eg: request.videojsCustomizedResponse=newResponseData
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.

1 participant