wildside96 / bst-player

Automatically exported from code.google.com/p/bst-player
0 stars 0 forks source link

YoutubePlayer not firing error events #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Initialize a YoutubePlayer with a private or deleted video address
2. Add a debug handler
3. Start the video

What is the expected output? What do you see instead?

Expect to fire and catch a debug event with the message "Video not found" or 
"Video playback not allowed." 

Instead no event is fired.

What version of the product are you using? On what operating system? On
what browser/version?

bst-player-api-1.3.jar
Browser: Chrome Version 25.0.1364.172 m

Original issue reported on code.google.com by rplo...@gmail.com on 29 Mar 2013 at 5:21

Attachments:

GoogleCodeExporter commented 9 years ago
Can you provide a sample code to replicate this issue?

Original comment by sbrah...@gmail.com on 24 Apr 2013 at 11:44

GoogleCodeExporter commented 9 years ago
        videoPlayer = new YouTubePlayer("p93XOlLoFws", "320px", "240px");

        videoPlayer.addDebugHandler(new DebugHandler() {
            @Override
            public void onDebug(DebugEvent event) {

                if (event.getMessage().contains("Video not found")) {

                    System.out.println("This should print something here");

                } else if (event.getMessage().contains("Video playback not allowed")) {

                    System.out.println("This should print something here");
                }
            }
        });

        videoPlayer.playMedia();

Original comment by rplo...@gmail.com on 29 Apr 2013 at 1:43

GoogleCodeExporter commented 9 years ago
This issue is with the YouTube player.  It does not issue any documented error 
code in this scenario.

Original comment by sbrah...@gmail.com on 14 May 2013 at 1:47

GoogleCodeExporter commented 9 years ago
Added an default message for undocumented error codes:
- An unknown error has occured - API Error Code(xxx)

Original comment by sbrah...@gmail.com on 14 May 2013 at 1:51