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

Issue reloading the source #86

Open
miguelgomezmunoz opened this issue Sep 6, 2018 · 7 comments
Open

Issue reloading the source #86

miguelgomezmunoz opened this issue Sep 6, 2018 · 7 comments
Labels

Comments

@miguelgomezmunoz
Copy link

I am using the lib in order to reproduce 12 videos and the first time I open all of them it works perfectly. However when I try to change the source of the videos in order to reproduce another 12 (or to load the original 12 again), I get errors. These errors are usually that the last two mediaurielements do not reproduce anything. Other times it just says xxxx.exe stop working.

Is there any way to correctly change the source? Now, I am just changing the mediaurilement.source.

Best regards.

@xmedeko
Copy link
Collaborator

xmedeko commented Sep 6, 2018

It should be possible to change the video source. Try it with one video first and post errors.

@miguelgomezmunoz
Copy link
Author

Hi, I have a layout with 12 videos. and I have tried the following

  • I created a button to reload just one of the videos and it works perfectly.
  • I created a button to reload 2 of the videos and it works perfectly.
  • I created a button to reload 3 of the videos and it works perfectly and it starts to fail, not the first time but the 4th or the 5th time I press the button.

The code just change the source: mediaUriElement.Source = new Uri(...)

@xmedeko
Copy link
Collaborator

xmedeko commented Sep 7, 2018

Should work, maybe some resource closing problem.

Does every MediaUriElement plays different video or do all of them have same source? What do you mean by "reload" - you just want to play the same file again, or different file?

@miguelgomezmunoz
Copy link
Author

Every video plays a different file.
With reload I mean that at the beginning I have:
mediaUriElement ->file1
mediaUriElement ->file2
Then I click the button so:
mediaUriElement ->file3
mediaUriElement ->file4
And if I click the button again it goes to the beginning:
mediaUriElement ->file1
mediaUriElement ->file2

I have also tried reloading the same file and the same error happens.

@xmedeko
Copy link
Collaborator

xmedeko commented Sep 7, 2018

What errors does it throws or writes in the debug console? If you report some bug, always provide the text of errors, full stack trace etc.

@miguelgomezmunoz
Copy link
Author

I don't know how to explain it, the image just does not move, other times it is just black, other just says project stop working

@xmedeko
Copy link
Collaborator

xmedeko commented Sep 26, 2018

@miguelgomezmunoz do you have still problem with that? Can you make an example in the Test Application and post it here (e.g. fork this project, or use https://gist.github.com/ to put changed files, etc.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants