Discussion:
How to reproduce video
(too old to reply)
Skynet
2006-01-30 12:53:38 UTC
Permalink
I created a skin for WMP.
When a video is playng in extended view, when toggling to skin view i see
audio visual effects and not the video. If i instead start to play a video
in skin view, it is correctly shown. What i must write in the script file to
let the skin understand that a video is played and show it instead the
visual effects?
Sorry for the bad english.
Thanks
zachd [ms]
2006-01-31 07:24:07 UTC
Permalink
Sounds like you're only checking for video on file switch/open events, as
opposed to when the skin first starts/opens.
--
(speaking for myself and doing this in my free time)
Following up to your post with the resolution is good netiquette.
This posting is provided "AS IS" with no warranties, and confers no rights.
All e-mail to this account will bounce or be deleted - *use the newsgroups*.
--
Post by Skynet
I created a skin for WMP.
When a video is playng in extended view, when toggling to skin view i see
audio visual effects and not the video. If i instead start to play a video
in skin view, it is correctly shown. What i must write in the script file
to let the skin understand that a video is played and show it instead the
visual effects?
Sorry for the bad english.
Thanks
Bizzare
2006-01-31 15:03:29 UTC
Permalink
Yes, Zach is right - you need to check what sort of media is playing then
switch your views on/off accordingly.

You can check the type of media by using some code you call when the player
openState changes:

if (player.currentmedia != null) {

if (player.currentmedia.getiteminfo "mediatype") == "video") {
[code to display video view]
} else {
[code to display visualisation view]
}

}

That's it!
Hope that helps.

Cheers
--
<Biz>
Post by Skynet
I created a skin for WMP.
When a video is playng in extended view, when toggling to skin view i see
audio visual effects and not the video. If i instead start to play a video
in skin view, it is correctly shown. What i must write in the script file to
let the skin understand that a video is played and show it instead the
visual effects?
Sorry for the bad english.
Thanks
Skynet
2006-01-31 15:24:56 UTC
Permalink
Post by Bizzare
Yes, Zach is right - you need to check what sort of media is playing then
switch your views on/off accordingly.
You can check the type of media by using some code you call when the player
if (player.currentmedia != null) {
if (player.currentmedia.getiteminfo "mediatype") == "video") {
[code to display video view]
} else {
[code to display visualisation view]
}
}
That's it!
Hope that helps.
Cheers
--
<Biz>
Thank you very much!!!
I'm going to test the code!
Skynet
2006-02-01 10:25:25 UTC
Permalink
Post by Skynet
Thank you very much!!!
I'm going to test the code!
It works!
Thank you!
Bizzare
2006-02-01 11:15:27 UTC
Permalink
Cool!

You're welcome =)


<Biz>
Post by Skynet
Post by Skynet
Thank you very much!!!
I'm going to test the code!
It works!
Thank you!
Loading...