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

I am facing issue regarding dynamic video upload ... #30

Open
DKhateek1372 opened this issue Jun 8, 2018 · 0 comments
Open

I am facing issue regarding dynamic video upload ... #30

DKhateek1372 opened this issue Jun 8, 2018 · 0 comments

Comments

@DKhateek1372
Copy link

DKhateek1372 commented Jun 8, 2018

HI,
i want to upload a new video..`
how can i change the src of mplayer

` $(function()
{
console.log('ready')
$('#file').change(function(e){
console.log(e.target.files[0])

myfile = e.target.files[0];
var fileURL = URL.createObjectURL(myfile)
var video = document.getElementById('file').value;
console.log(video);

mplayer.src('assets/video/test1.mp4'); //src of video

var reader = new FileReader();
    reader.onload = function() {
    console.log('onload');
      var arrayBuffer = this.result,
        testDataQ = new Uint8Array(arrayBuffer);
        testData=testDataQ;
        console.log(testData);
    }
    reader.readAsArrayBuffer(myfile);
  })
});

above r my file upload code`..
right now video is static..

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

No branches or pull requests

1 participant