Commit c41c1d5a authored by liujiaxin's avatar liujiaxin

qqqq

parent 949793e8
...@@ -790,7 +790,10 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -790,7 +790,10 @@ export class PlayComponent implements OnInit, OnDestroy {
console.log('url: ', url); console.log('url: ', url);
// const xhr = new XMLHttpRequest(); // const xhr = new XMLHttpRequest();
fetch(url) fetch(url,{
method: 'GET',
mode: 'cors'
})
// Retrieve its body as ReadableStream // Retrieve its body as ReadableStream
.then(response => { .then(response => {
console.log(' in url2Blob load end..'); console.log(' in url2Blob load end..');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment