View RSS Feed

molendijk

Prevent users to open a video on the video-providing site (in a new window)

Rate this Entry
Inserting these two lines to your include code for video's:

<param name="allowScriptAccess" value="never">
<param name="allowNetworking" value="internal">

prevents flash apps from running scripts or having outbound links.

This is a very handy method for preventing users to open the video on the video-providing site (in a new window) when they accidentally click on the video screen.

Demo HERE (a click on the playing video will not cause it to open in a new window, but will simply pause it).

Arie Molendijk.

Submit "Prevent users to open a video on the video-providing site (in a new window)" to del.icio.us Submit "Prevent users to open a video on the video-providing site (in a new window)" to StumbleUpon Submit "Prevent users to open a video on the video-providing site (in a new window)" to Google Submit "Prevent users to open a video on the video-providing site (in a new window)" to Digg

Updated 11-19-2009 at 12:50 PM by molendijk

Tags: None Add / Edit Tags
Categories
Flash related

Comments

  1. Schmoopy's Avatar
    It's a good idea, since I come across this sort of thing all the time. The only thing is, after pausing the video and then pressing play again, it either seems to restart from the beginning, or just sort of freeze.
    Don't know if this is the fault of the youtube video or the options that you changed.
    But when viewing the video directly, it doesn't seem to happen.
  2. molendijk's Avatar
    I think it's YouTiube's fault, since it never happens on DailyMotion and sometimes only on YouTube.
    I developed the thing a little bit further here. In the (main-)menu, scroll down and click on Bach/Loussier: Air on the G-string . Its a DailyMotion-video. You'll see there's no problem there.

    Thanks for the comment.
    ===
    Arie.