Dynamic rich media component for ASP.Net Flash, Video and Audio controls for C# and VB.Net
Welcome Guest Search | Active Topics | Members | Log In | Register

Showing & Playing a transparent video on button click Options · View
adrianBC
Posted: Tuesday, July 06, 2010 7:21:47 AM
Rank: Member
Groups: Member

Joined: 7/6/2010
Posts: 11
Points: 33
Location: Vancouver
Hi... I will appreciate the help of any good coder out there to figure out something simple for you but really hard for a beginner VB.net coder like me :-)

I am using the Flash-Video control to create a simple page that has a "Video Tutorial" button. When the user clicks it, I need to load/play a video on client side; and then hide it upon completion or upon clicking a "Stop Video" button (using the GUI control).

If anybody has done something similar, I would appreciate to see some code for that. Thanks in advance to all.

Jake
Posted: Tuesday, July 06, 2010 10:00:25 AM
Rank: Administration
Groups: Administration

Joined: 7/26/2007
Posts: 676
Points: 1,728
Location: USA
adrianBC
Posted: Tuesday, July 06, 2010 3:48:00 PM
Rank: Member
Groups: Member

Joined: 7/6/2010
Posts: 11
Points: 33
Location: Vancouver
Hi Jake,

Your feedback for my last 2 posts has been great. Thanks for your prompt reply and for the information provided.

I got my code to play/stop the video on client side. I added the buttons:
<input type="button" value="PlayMedia" onclick='ASPNetMedia.FlashVideo("FlashVideo1").PlayMedia ()'/>
<input type="button" value="StopMedia" onclick='ASPNetMedia.FlashVideo("FlashVideo1").StopMedia ()'/>

Since it's a green screen/transparent video, when the video is stopped, the content in the background is not selectable. Therefore I am also using the following Javascript:

ASPNetMedia.FlashVideo("FlashVideo1").OnStop = function(object, position) {
document.getElementById('<%= FlashVideo1.ClientID %>').style.display = 'none';
}

ASPNetMedia.FlashVideo("FlashVideo1").OnPlay = function(object, position) {
document.getElementById('<%= FlashVideo1.ClientID %>').style.display = '';
}

When stopping, everything works fine (and I can select the background content), but I can't get the video to re-play the video again. Any ideas?

Thanks in advance :-)
Robert25
Posted: Thursday, September 09, 2010 8:47:01 AM
Rank: Newbie
Groups: Member

Joined: 8/13/2010
Posts: 1
Points: 3
Location: usa
460cc Complete Inertial Design

Proprietary technology creates maximum (cheap golf clubs for sale) perimeter weighting and more discretionary weight for precise positioning of the CG and exceptional stability on off-center hits, enabling ball flight customization for optimal individual performance. Most golfers may know that it is important to own good golf clubs. If you want to save your golf game, you should own the great golf clubs which may be bought from the r9 fairway wood online and the good golf swing skills. ishiner
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.