Description:
I have a youtube player in My Desktop Application. I implement it by using SWFLoader and using this url http://www.youtube.com/v/yd71LWhCO4s?version=3&autoplay=0&autohide=0&fs=1&showinfo=0 it works. 'yd71LWhCO4s' is a Video id, if I change it to FqJdzYY_Fas then it gives me an error.
`Error #2044: Unhandled adError:. text=Failed to load resource: Error
Load Never Completed. URL:
http://pagead2.googlesyndication.com/pagead/gadgets/overlay/OverlayTemplate.swf.
I get the url from the error message and i am interested to know about the swf at this URL. So i use this url directly in my browser, and my firewall blocked it due to advertising of Google. If I click on 'dismiss all' then the video playes.
I want to remove this error, how can I do that?
Related
(Instant apps can play video normally use webview, but videoview fail.
Use Android Videoview play video, The APK can play normally, but the Instant apps can not play. show error: Can't play this video.
java code:
Uri uri = Uri.parse("https://v1-tt.ixigua.com/40f0bfa756a159d27864bb70aeabdb8b/59f457f6/video/m/22033a84279cb1145a8bafee6279724505b1151dcf0000063157252c98c/");
VideoView videoView = (VideoView) findViewById(R.id.videoView);
videoView.setVideoURI(uri);
videoView.start();
logcat show:
10-28 06:31:01.952 21522-21522/? W/MediaPlayer: Couldn't open
https://v1-tt.ixigua.com/40f0bfa756a159d27864bb70aeabdb8b/59f457f6/video/m/22033a84279cb1145a8bafee6279724505b1151dcf0000063157252c98c/:
java.io.FileNotFoundException: No content provider:
https://v1-tt.ixigua.com/40f0bfa756a159d27864bb70aeabdb8b/59f457f6/video/m/22033a84279cb1145a8bafee6279724505b1151dcf0000063157252c98c/
10-28 06:31:01.953 21522-21522/? V/MediaHTTPService:
MediaHTTPService(android.media.MediaHTTPService#79aba57): Cookies:
null 10-28 06:31:01.954 21522-21522/? E/MediaPlayerNative: Unable to
create media player 10-28 06:31:01.958 21522-21522/? W/VideoView:
Unable to open content:
https://v1-tt.ixigua.com/40f0bfa756a159d27864bb70aeabdb8b/59f457f6/video/m/22033a84279cb1145a8bafee6279724505b1151dcf0000063157252c98c/
java.io.IOException: setDataSource failed.: status=0x80000000
at android.media.MediaPlayer.nativeSetDataSource(Native Method)
at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1153)
at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1141)
at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1059)
at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1080)
at android.widget.VideoView.openVideo(VideoView.java:399)
at android.widget.VideoView.-wrap0(Unknown Source:0)
at android.widget.VideoView$7.surfaceCreated(VideoView.java:678)
at android.view.SurfaceView.updateSurface(SurfaceView.java:664)
at android.view.SurfaceView$2.onPreDraw(SurfaceView.java:143)
at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:977)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2337)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1386)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6733)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:911)
at android.view.Choreographer.doCallbacks(Choreographer.java:723)
at android.view.Choreographer.doFrame(Choreographer.java:658)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:897)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) 10-28
06:31:01.958 21522-21522/? D/VideoView: Error: 1,0
The error does not seem to be related to Android Instant Apps, since playing a video in this manner works.
I'm getting a 403 error when trying to access the video you provided.
Make sure that accessing the video's file access is correct for the app's user.
I have an html5 receiver app that I'm writing for a client who already has a sender app. On playing a video for a second time, I get this error:
[cast.player.api.Player] error
[cast.player.api.Host] error: cast.player.api.ErrorCode.PLAYBACK/104
I can't tell if this error is coming from my implementation of the media library or from the sender app. Any guidance?
You can see in the Media Player Library Error Codes that this error means "The media element fired MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED error." The suggested solution from the docs is to Validate developer data segment, ensure the codecs are included in Cast supported formats. You can read more about the cast.player.api here.
I've been working on an Spring MVC application that has custom error pages, these pages return a generic error message and the stack trace as an HTML comment. I'm currently developing the offline funcitonalities of this application using HTML5's Appcache. My manifest is something like this:
CACHE MANIFEST
CACHE:
... my explicit entries (not relevant) ...
FALLBACK:
... some fallback entries (not relevant) ...
<!-- This next line is relevant --!>
/ pageNotFoundOffline.html
SETTINGS:
prefer-online
Which is supposed to serve a previously cached 404 page when the user can't connect to the server, the problem is that it also serves this 404 page when an error occurs, thus rendering completely useless the custom error page already implemented in the application.
Why i want to do this? i want that whenever a user tries to access any page on my application and the request fails with a 404 (either because the is no available internet connection or because the servers are down), that user is informed that the request failed and he or she is being redirected to our offline functionalities, also i want to inform the user when he or she succesfully reached our servers but an internal error occurred (through the custom error page).
Is there a workaroud for this problem?, what i would like to accomplish is the cached 404 page to be served only when there is a 404 exception and the custom error page returned by the server to be displayed when there was an internal error.
I'm afraid that it is not possible with appcache - the fallback intercepts all server errors. The specification for appcache says: "If this results in a redirect to a resource with another origin (indicative of a captive portal), or a 4xx or 5xx status code or equivalent, or if there were network errors (but not if the user canceled the download), then instead get, from the cache, the resource of the fallback entry corresponding to the fallback namespace f. Abort these steps."
If you can use the more modern way of doing things, Service Workers, I would recommend using that, as that will let you do what you want.
I use a simple SWF to load a image from a server, let's say the image isn't there, Flash then throws: Error opening URL 'http://...'
I catch this error with imageLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, infoIOErrorEvent); and just discard the error since i know it's ok.
Flash however still throws an error to the console. The function is called when the event hits so i still get it, what am i missing here?
How can i stop Flash from throwing the error even when i listen for it?
here is the link of my Flash application
http://www.asa.com.pk/
hit the above URL and click on the PostCard section shown.. This will show you image and button to download that image. Application works fine at above URL and it downloads the file too but when any user hits the alternate url , the file is not downloaded..
http//asa.com.pk/
My debugger shows:
Error #2044: SecurityErrorEvent no controlado: text=Error #2048: ViolaciĆ³n de la seguridad Sandbox: http://asa.com.pk/main.swf no puede cargar datos desde http://www.asa.com.pk/downloads/largeimage/mcb.gif.
at main_fla::MainTimeline/Download_Started()
Quick Google Search ended on:
Actionscript Error #2044: Unhandled SecurityErrorEvent:. text=Error #2047: Security sandbox violation: LocalConnection.send: 127.0.0.1 cannot access
http://www.actionscript.org/forums/showthread.php3?t=148714
I think you will get it after this, basically it's a crossdomain.xml thing.
I have tested your app, and the error it's exactly because of the flash player 10 sandbox feature, you need to use a crossdomain.xml file where you allow both domains to be cross-accessed.
There are a number of things you can do to fix security errors like this.
Create a valid crossdomain.xml file under both http://domain.com & http://www.domain.com
Set the DNS to forward http://domain.com to http://www.domain.com permanently
In your AS code add Secuirty.allowdomain( "*" );
Hope this helps.