will1971 / google-cast-sdk

Automatically exported from code.google.com/p/google-cast-sdk
0 stars 0 forks source link

Streaming URL not play with Chromecast - Android device #753

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
We are using below code to play the streaming URL with chrome cast.

Cast.CastApi.setMessageReceivedCallbacks(mApiClient, 
mRemoteMediaPlayer.getNamespace(), mRemoteMediaPlayer);

                                    mMediaMetadata = new MediaMetadata(MediaMetadata.MEDIA_TYPE_MOVIE);
                                    mMediaMetadata.putString(MediaMetadata.KEY_TITLE, "Demo Video");
                                    MediaInfo mediaInfo = new MediaInfo.Builder(
                                            "http://200.76.77.237/LIVE/H01/CANAL440/PROFILE03.m3u8?-1332%2F1499-20150816T153535.ts=-1")
                                            .setContentType("video/mp4")
                                            .setStreamType(MediaInfo.STREAM_TYPE_BUFFERED)
                                          //  .setStreamDuration(MediaInfo.STREAM_TYPE_LIVE)
                                            .setMetadata(mMediaMetadata)
                                            .build();
                                    try {
                                        mRemoteMediaPlayer.load(mApiClient, mediaInfo, true)
                                                .setResultCallback(new ResultCallback<RemoteMediaPlayer.MediaChannelResult>() {
                                                    @Override
                                                    public void onResult(RemoteMediaPlayer.MediaChannelResult mediaChannelResult) {
                                                        Status status = mediaChannelResult.getStatus();
                                                        if (status.isSuccess()) {
                                                            mPauseButton.setVisibility(View.VISIBLE);
                                                        }
                                                    }
                                                });
                                    } catch (Exception e) {
                                        Log.e(TAG, "Problem while loading media", e);
                                    }
                                } catch (IOException e) {
                                    e.printStackTrace();
                                }

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

Expected output is URL should play with chrome cast.
Right now blank screen display in Chromecast and not able to play Streaming URL.

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

We are using remote media player class with chrome cast.
We are using Android operating system.

https://developers.google.com/cast/docs/android_sender
https://github.com/dbaelz/ChromecastDemoStreaming

URL work for us:

http://iptvcanales.com/xw/peliculas.php?movie=009

URL not work for us:

http://200.76.77.237/LIVE/H01/CANAL440/PROFILE03.m3u8?-1332%2F1499-20150816T1535
35.ts=-1

Please find attached log with with this issue.

Please let us know if more details required.

Original issue reported on code.google.com by ankit.th...@gmail.com on 5 Feb 2016 at 9:22

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
any update on this issue,please look in to this .

Original comment by Sa.prith...@gmail.com on 9 Feb 2016 at 5:17

GoogleCodeExporter commented 8 years ago
ankit@, From the logs, we see the application is not able to join and is 
returning null because on the receiver side some other app is running. Please 
check the code flow on how your app is joining the session (check 
https://developers.google.com/cast/docs/android_sender). 

If problem still persist, please send us both receiver and sender logs.

Original comment by vinot...@google.com on 16 Feb 2016 at 6:33

GoogleCodeExporter commented 8 years ago
ankit@, please share receiver logs using Chrome Remote Debugger with the issue 
scenario. 

Original comment by vinot...@google.com on 17 Feb 2016 at 10:06