Setting Source for Xamarin.Forms VideoPlayer
up vote
0
down vote
favorite
I am trying to make my application play youtube playlist videos. I set the Source:
<video:VideoPlayer x:Name="videoPlayer"
Grid.Row="0" Source="https://www.youtube.com/watch?v=Jwcgm5VYV-U&list=PLyjPaKJQuCEzqQKdA8FsQdsJ77XbjKkBH" />
But got an error:
Error '=' is an unexpected token. The expected token is ';'.
Could you please tell how I can deal with this issue?
Thanks.
video xamarin.forms xamarin.uwp
add a comment |
up vote
0
down vote
favorite
I am trying to make my application play youtube playlist videos. I set the Source:
<video:VideoPlayer x:Name="videoPlayer"
Grid.Row="0" Source="https://www.youtube.com/watch?v=Jwcgm5VYV-U&list=PLyjPaKJQuCEzqQKdA8FsQdsJ77XbjKkBH" />
But got an error:
Error '=' is an unexpected token. The expected token is ';'.
Could you please tell how I can deal with this issue?
Thanks.
video xamarin.forms xamarin.uwp
You might need to replace&
with&
In your URL
– CGPA6.4
Nov 21 at 13:38
@CGPA6.4 Thank you! I could run the application now, but the player shows: Error: Unsupported video type or invalid file path. Maybe it has nothing to do with my original question, or does it?
– David Shochet
Nov 21 at 13:43
I can't say no because we are changing url. Try setting url from code behind & check what happens.
– CGPA6.4
Nov 21 at 13:46
@CGPA6.4 Same result, so I guess it is not the right way to play a play list from url. I will create another question. But as you were first who suggested a solution, would you like to make the replacement of & as an answer, so I could mark it as such? I will wait for 15 minutes before marking the answer. Thank you very much for your help.
– David Shochet
Nov 21 at 14:17
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to make my application play youtube playlist videos. I set the Source:
<video:VideoPlayer x:Name="videoPlayer"
Grid.Row="0" Source="https://www.youtube.com/watch?v=Jwcgm5VYV-U&list=PLyjPaKJQuCEzqQKdA8FsQdsJ77XbjKkBH" />
But got an error:
Error '=' is an unexpected token. The expected token is ';'.
Could you please tell how I can deal with this issue?
Thanks.
video xamarin.forms xamarin.uwp
I am trying to make my application play youtube playlist videos. I set the Source:
<video:VideoPlayer x:Name="videoPlayer"
Grid.Row="0" Source="https://www.youtube.com/watch?v=Jwcgm5VYV-U&list=PLyjPaKJQuCEzqQKdA8FsQdsJ77XbjKkBH" />
But got an error:
Error '=' is an unexpected token. The expected token is ';'.
Could you please tell how I can deal with this issue?
Thanks.
video xamarin.forms xamarin.uwp
video xamarin.forms xamarin.uwp
asked Nov 21 at 13:22
David Shochet
1,78792957
1,78792957
You might need to replace&
with&
In your URL
– CGPA6.4
Nov 21 at 13:38
@CGPA6.4 Thank you! I could run the application now, but the player shows: Error: Unsupported video type or invalid file path. Maybe it has nothing to do with my original question, or does it?
– David Shochet
Nov 21 at 13:43
I can't say no because we are changing url. Try setting url from code behind & check what happens.
– CGPA6.4
Nov 21 at 13:46
@CGPA6.4 Same result, so I guess it is not the right way to play a play list from url. I will create another question. But as you were first who suggested a solution, would you like to make the replacement of & as an answer, so I could mark it as such? I will wait for 15 minutes before marking the answer. Thank you very much for your help.
– David Shochet
Nov 21 at 14:17
add a comment |
You might need to replace&
with&
In your URL
– CGPA6.4
Nov 21 at 13:38
@CGPA6.4 Thank you! I could run the application now, but the player shows: Error: Unsupported video type or invalid file path. Maybe it has nothing to do with my original question, or does it?
– David Shochet
Nov 21 at 13:43
I can't say no because we are changing url. Try setting url from code behind & check what happens.
– CGPA6.4
Nov 21 at 13:46
@CGPA6.4 Same result, so I guess it is not the right way to play a play list from url. I will create another question. But as you were first who suggested a solution, would you like to make the replacement of & as an answer, so I could mark it as such? I will wait for 15 minutes before marking the answer. Thank you very much for your help.
– David Shochet
Nov 21 at 14:17
You might need to replace
&
with &
In your URL– CGPA6.4
Nov 21 at 13:38
You might need to replace
&
with &
In your URL– CGPA6.4
Nov 21 at 13:38
@CGPA6.4 Thank you! I could run the application now, but the player shows: Error: Unsupported video type or invalid file path. Maybe it has nothing to do with my original question, or does it?
– David Shochet
Nov 21 at 13:43
@CGPA6.4 Thank you! I could run the application now, but the player shows: Error: Unsupported video type or invalid file path. Maybe it has nothing to do with my original question, or does it?
– David Shochet
Nov 21 at 13:43
I can't say no because we are changing url. Try setting url from code behind & check what happens.
– CGPA6.4
Nov 21 at 13:46
I can't say no because we are changing url. Try setting url from code behind & check what happens.
– CGPA6.4
Nov 21 at 13:46
@CGPA6.4 Same result, so I guess it is not the right way to play a play list from url. I will create another question. But as you were first who suggested a solution, would you like to make the replacement of & as an answer, so I could mark it as such? I will wait for 15 minutes before marking the answer. Thank you very much for your help.
– David Shochet
Nov 21 at 14:17
@CGPA6.4 Same result, so I guess it is not the right way to play a play list from url. I will create another question. But as you were first who suggested a solution, would you like to make the replacement of & as an answer, so I could mark it as such? I will wait for 15 minutes before marking the answer. Thank you very much for your help.
– David Shochet
Nov 21 at 14:17
add a comment |
2 Answers
2
active
oldest
votes
up vote
2
down vote
accepted
Error '=' is an unexpected token. The expected token is ';'
This is because you are using &
sign in xaml file which isn't supporting, so replace it to &
. For more information visit @Paul answer.
add a comment |
up vote
1
down vote
There is a bunch of characters that are illegal in XML properties or texts (XAML is an XML dialect), since they have a special meaning, see here. These are
<
>
"
' and
&
These characters will have to be escaped by the following sequences
< = <
> = >
" = "
' = '
& = &
Hence you should change your XAML to
<video:VideoPlayer x:Name="videoPlayer"
Grid.Row="0" Source="https://www.youtube.com/watch?v=Jwcgm5VYV-U&list=PLyjPaKJQuCEzqQKdA8FsQdsJ77XbjKkBH" />
Thank you! As I mentioned in my comment above, the player now shows: Error: Unsupported video type or invalid file path. Maybe it has nothing to do with my original question, or does it?
– David Shochet
Nov 21 at 13:45
@DavidShochet Seems to me as if that's an issue with the component and, yes, it seems unrelated to me.
– Paul Kertscher
Nov 21 at 13:46
Thank you very much. I marked CGPA6.4's answer, as he suggested the same first in his comment, but I really appreciate your help.
– David Shochet
Nov 21 at 14:25
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
Error '=' is an unexpected token. The expected token is ';'
This is because you are using &
sign in xaml file which isn't supporting, so replace it to &
. For more information visit @Paul answer.
add a comment |
up vote
2
down vote
accepted
Error '=' is an unexpected token. The expected token is ';'
This is because you are using &
sign in xaml file which isn't supporting, so replace it to &
. For more information visit @Paul answer.
add a comment |
up vote
2
down vote
accepted
up vote
2
down vote
accepted
Error '=' is an unexpected token. The expected token is ';'
This is because you are using &
sign in xaml file which isn't supporting, so replace it to &
. For more information visit @Paul answer.
Error '=' is an unexpected token. The expected token is ';'
This is because you are using &
sign in xaml file which isn't supporting, so replace it to &
. For more information visit @Paul answer.
answered Nov 21 at 14:23
CGPA6.4
2,4181929
2,4181929
add a comment |
add a comment |
up vote
1
down vote
There is a bunch of characters that are illegal in XML properties or texts (XAML is an XML dialect), since they have a special meaning, see here. These are
<
>
"
' and
&
These characters will have to be escaped by the following sequences
< = <
> = >
" = "
' = '
& = &
Hence you should change your XAML to
<video:VideoPlayer x:Name="videoPlayer"
Grid.Row="0" Source="https://www.youtube.com/watch?v=Jwcgm5VYV-U&list=PLyjPaKJQuCEzqQKdA8FsQdsJ77XbjKkBH" />
Thank you! As I mentioned in my comment above, the player now shows: Error: Unsupported video type or invalid file path. Maybe it has nothing to do with my original question, or does it?
– David Shochet
Nov 21 at 13:45
@DavidShochet Seems to me as if that's an issue with the component and, yes, it seems unrelated to me.
– Paul Kertscher
Nov 21 at 13:46
Thank you very much. I marked CGPA6.4's answer, as he suggested the same first in his comment, but I really appreciate your help.
– David Shochet
Nov 21 at 14:25
add a comment |
up vote
1
down vote
There is a bunch of characters that are illegal in XML properties or texts (XAML is an XML dialect), since they have a special meaning, see here. These are
<
>
"
' and
&
These characters will have to be escaped by the following sequences
< = <
> = >
" = "
' = '
& = &
Hence you should change your XAML to
<video:VideoPlayer x:Name="videoPlayer"
Grid.Row="0" Source="https://www.youtube.com/watch?v=Jwcgm5VYV-U&list=PLyjPaKJQuCEzqQKdA8FsQdsJ77XbjKkBH" />
Thank you! As I mentioned in my comment above, the player now shows: Error: Unsupported video type or invalid file path. Maybe it has nothing to do with my original question, or does it?
– David Shochet
Nov 21 at 13:45
@DavidShochet Seems to me as if that's an issue with the component and, yes, it seems unrelated to me.
– Paul Kertscher
Nov 21 at 13:46
Thank you very much. I marked CGPA6.4's answer, as he suggested the same first in his comment, but I really appreciate your help.
– David Shochet
Nov 21 at 14:25
add a comment |
up vote
1
down vote
up vote
1
down vote
There is a bunch of characters that are illegal in XML properties or texts (XAML is an XML dialect), since they have a special meaning, see here. These are
<
>
"
' and
&
These characters will have to be escaped by the following sequences
< = <
> = >
" = "
' = '
& = &
Hence you should change your XAML to
<video:VideoPlayer x:Name="videoPlayer"
Grid.Row="0" Source="https://www.youtube.com/watch?v=Jwcgm5VYV-U&list=PLyjPaKJQuCEzqQKdA8FsQdsJ77XbjKkBH" />
There is a bunch of characters that are illegal in XML properties or texts (XAML is an XML dialect), since they have a special meaning, see here. These are
<
>
"
' and
&
These characters will have to be escaped by the following sequences
< = <
> = >
" = "
' = '
& = &
Hence you should change your XAML to
<video:VideoPlayer x:Name="videoPlayer"
Grid.Row="0" Source="https://www.youtube.com/watch?v=Jwcgm5VYV-U&list=PLyjPaKJQuCEzqQKdA8FsQdsJ77XbjKkBH" />
answered Nov 21 at 13:43
Paul Kertscher
4,64541837
4,64541837
Thank you! As I mentioned in my comment above, the player now shows: Error: Unsupported video type or invalid file path. Maybe it has nothing to do with my original question, or does it?
– David Shochet
Nov 21 at 13:45
@DavidShochet Seems to me as if that's an issue with the component and, yes, it seems unrelated to me.
– Paul Kertscher
Nov 21 at 13:46
Thank you very much. I marked CGPA6.4's answer, as he suggested the same first in his comment, but I really appreciate your help.
– David Shochet
Nov 21 at 14:25
add a comment |
Thank you! As I mentioned in my comment above, the player now shows: Error: Unsupported video type or invalid file path. Maybe it has nothing to do with my original question, or does it?
– David Shochet
Nov 21 at 13:45
@DavidShochet Seems to me as if that's an issue with the component and, yes, it seems unrelated to me.
– Paul Kertscher
Nov 21 at 13:46
Thank you very much. I marked CGPA6.4's answer, as he suggested the same first in his comment, but I really appreciate your help.
– David Shochet
Nov 21 at 14:25
Thank you! As I mentioned in my comment above, the player now shows: Error: Unsupported video type or invalid file path. Maybe it has nothing to do with my original question, or does it?
– David Shochet
Nov 21 at 13:45
Thank you! As I mentioned in my comment above, the player now shows: Error: Unsupported video type or invalid file path. Maybe it has nothing to do with my original question, or does it?
– David Shochet
Nov 21 at 13:45
@DavidShochet Seems to me as if that's an issue with the component and, yes, it seems unrelated to me.
– Paul Kertscher
Nov 21 at 13:46
@DavidShochet Seems to me as if that's an issue with the component and, yes, it seems unrelated to me.
– Paul Kertscher
Nov 21 at 13:46
Thank you very much. I marked CGPA6.4's answer, as he suggested the same first in his comment, but I really appreciate your help.
– David Shochet
Nov 21 at 14:25
Thank you very much. I marked CGPA6.4's answer, as he suggested the same first in his comment, but I really appreciate your help.
– David Shochet
Nov 21 at 14:25
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53413001%2fsetting-source-for-xamarin-forms-videoplayer%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You might need to replace
&
with&
In your URL– CGPA6.4
Nov 21 at 13:38
@CGPA6.4 Thank you! I could run the application now, but the player shows: Error: Unsupported video type or invalid file path. Maybe it has nothing to do with my original question, or does it?
– David Shochet
Nov 21 at 13:43
I can't say no because we are changing url. Try setting url from code behind & check what happens.
– CGPA6.4
Nov 21 at 13:46
@CGPA6.4 Same result, so I guess it is not the right way to play a play list from url. I will create another question. But as you were first who suggested a solution, would you like to make the replacement of & as an answer, so I could mark it as such? I will wait for 15 minutes before marking the answer. Thank you very much for your help.
– David Shochet
Nov 21 at 14:17