Thank you very much for testing Shardik !

Based on your tests, I think it would be safest to use the approach with standardUserDefaults since it doesn't use any private methods.
I also enabled javascript in the last two code examples so it might be possible YouTube fullscreen will also work with that approach on OSX 10.6.8 .
Could you try that one also ? (this code on OSX 10.6.8 )
Code: Select all
standardUserDefaults = CocoaMessage(0, 0, "NSUserDefaults standardUserDefaults")
CocoaMessage(0, standardUserDefaults, "setBool:", #YES, "forKey:$", @"WebKitJavaScriptEnabled")
CocoaMessage(0, standardUserDefaults, "setBool:", #YES, "forKey:$", @"WebKitFullScreenEnabled")
OpenWindow(0, 0, 0, 800, 500, "WebGadget FullScreenEnabled", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
WebGadget(0, 5, 5, 790, 490, "http://www.youtube.com")
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
In the same way you can also enable WebAudio
Code: Select all
standardUserDefaults = CocoaMessage(0, 0, "NSUserDefaults standardUserDefaults")
CocoaMessage(0, standardUserDefaults, "setBool:", #YES, "forKey:$", @"WebKitJavaScriptEnabled")
CocoaMessage(0, standardUserDefaults, "setBool:", #YES, "forKey:$", @"WebKitFullScreenEnabled")
CocoaMessage(0, standardUserDefaults, "setBool:", #YES, "forKey:$", @"WebKitWebAudioEnabled")
OpenWindow(0, 0, 0, 800, 500, "WebGadget FullScreenEnabled", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
WebGadget(0, 5, 5, 790, 490, "http://webaudioapi.com/samples/")
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
My favorite is the "Visualizer" example.
These WebAudio examples work well on OSX 10.11 ; should work on OSX 10.10 I believe and might work on OSX 10.9 depending on what version of Safari is installed.