NPAPI:CancelSourceStream: Difference between revisions

Jump to navigation Jump to search
Line 15: Line 15:
* Contributors: Eric Carlson (Apple), Kevin Decker (Apple)
* Contributors: Eric Carlson (Apple), Kevin Decker (Apple)


Before the browser tries to load the stream for the "src" attribute, it will call NPP_GetValue for "NPPVpluginCancelSrcStream", passing a pointer to an NPBool as the value.
Before the browser tries to load the stream for the "src" attribute, it will call NPP_GetValue for "NPPVpluginCancelSrcStream" (assigned enum value 20), passing a pointer to an NPBool as the value.


If the plug-in returns an error or sets the pointed to value to false, the stream will be loaded. If the plug-in sets the pointed to vale to true, the stream will not be loaded.
If the plug-in returns an error or sets the pointed to value to false, the stream will be loaded. If the plug-in sets the pointed to vale to true, the stream will not be loaded.


For full-frame plug-ins, where a load has already started, the browser will cancel the load if the plug-in indicates that the src stream should be skipped.
For full-frame plug-ins, where a load has already started, the browser will cancel the load if the plug-in indicates that the src stream should be skipped.
24

edits

Navigation menu