I try to play video from my phone on Chromecast. Some MP4 videos are playing and some were not playing. After loading the media I am seeing the following error. Can any one help on this?
11-06 14:30:15.572: V/CastSampleActivity(6198): Getting channel after session start
11-06 14:30:15.572: V/CastSampleActivity(6198): Creating and attaching Message Stream
11-06 14:30:15.582: V/CastSampleActivity(6198): Loading selected media on device
11-06 14:30:15.582: V/CastSampleActivity(6198): cmd created, player state = null
11-06 14:30:15.582: V/CastSampleActivity(6198): Loading selected media Completed
11-06 14:30:16.763: E/MediaProtocolMessageStream(6198): error parsing message: {"type":"RESPONSE","cmd_id":1,"status":{"error":{"domain":"ramp","code":-2},"event_sequence":3931}} org.json.JSONException: No value for state
Error on Receiver:
[104.266s] [cast.receiver.ChannelOverWebSocket] Sending message: ["ramp",{"cmd_id":6,"type":"RESPONSE","status":{"event_sequence":145,"state":0,"content_id":"http://192.168.0.162:1234/storage/emulated/0/Video%20Highlight/Islandia.mp4","current_time":0,"duration":null,"volume":1,"muted":false,"time_progress":false,"title":"title"}}] from ws://localhost:8008/session?2
cast_receiver.js:66
[105.013s] [cast.receiver.RemoteMedia] Received error event from media element
cast_receiver.js:66
[105.030s] [cast.receiver.ChannelOverWebSocket] Sending message: ["ramp",{"cmd_id":1,"type":"RESPONSE","status":{"event_sequence":146,"error":{"domain":"ramp","code":-2}}}] from ws://localhost:8008/session?2
cast_receiver.js:66
[105.066s] [cast.receiver.RemoteMedia] getStatus
Problem was not with chromecast. Some MP4 video was not loading in chrome. After I try with webm format the video is getting loaded.
Related
I have an App that should play small sound files, and I get no error at the compilation state and the application runs successfully, but, unfortunately, it doesn't launch the sound.
At the same time I open the Logcat and see the following error message:
E/MediaPlayer: Should have subtitle controller already set
How can this be resolved?
As I am trying to get log files out of the camera in python console, would you guys say were the log files of camera gonna be and by following the onvif documentation, I tried using this code:
log=cam.devicemgmt.GetSystemLog({'Logtype': 'System'})
print(log)
errors:
The SystemLogType type doesn't accept collections as value
GetSystemLog() got an unexpected keyword argument 'LogIype'.
I connected camera using onvif in python console, now I need to retrieve log files from the camera using onvif
I use STT in my native service for speech recognition. But I getting error STT_RESULT_EVENT_ERROR /**< Event when the recognition has failed */ in my recognition_result_cb()
Inside this method stt_foreach_detailed_result() returns STT_ERROR_OPERATION_FAILED error.
I user target device with Tizen 2.3.2.3 for test.
STT created, prepared and started. And after recording end processing I getting this.
Why I getting this error?
Bot Info
Bot handle: Medibot_medibuddy
App ID: dcda60fe-72d4-4796-a728-de8fa3aef2a5
SDK Platform: Node.js
SDK Version: Latest
Active Channels: WebChat, Facebook, Skype
Deployment Environment: Azure App Service
Issue Description
Our bot (Medibot, https://medibotmb.azurewebsites.net) has suddenly stopped working on all channels including WebChat. It works perfectly on Emulator though. We've been trying to debug this issue since days and have not been successful with any solutions/suggestions online. I've tried using Log stream and debug console to catch exceptions but there aren't any.
Code Example
The code is hosted in https://github.com/nirmalrayan/medibot
Reproduction Steps
Visit medibotmb.azurewebsites.net. This should open WebChat channel's index.html document.
The page tries to load for a long time and throws HTTP status: 500, HTTP subStatus: 1001, HTTP Reason: Internal Server Errror.
Bot framework displays the error message 'There was an error sending this message to your bot: HTTP status code GatewayTimeout' for Facebook and Web Chat channels.
Expected Behavior
Render index.html page with Web Chat iframe.
After the user sends first message, the bot welcomes with a hero card.
Actual Results
Nothing happens. The page does not get rendered. No exception in thrown in log stream while testing. Even botframework 'Test' does not throw any error in Azure app service log stream.
node.js
I don't see the iframe code in the index.html of https://medibotmb.azurewebsites.net
I'm working on a Chromecast custom receiver which uses the Media Player Library to play HLS streams. Occasionally, the transcoder creating the streams creates a glitch which causes the media library to crash when it tries to load that media segment.
While I can't do anything directly about the stream or the Chromecast device, I have been trying to add a work-around in the customer receiver in the cast.api.player.Host object's onError handler.
Seeking ahead in the stream does not seem to work as it always generates "Uncaught InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable." errors from the media library. It appears that the initial error breaks something in the source handler.
Loading the stream from scratch (with an updated currentTime value) by manually invoking onLoad() on the cast.receiver.MediaManager object does seem to work; the stream begins playing again after the crash point.
// try to skip over the error
playPosition += 10.0;
console.log("attempting to seek to position: "+ playPosition);
// reuse the original load event with two changes:
// 1. the new start point is the position we want to "seek" to
loadEvent.data['currentTime'] = playPosition;
// 2. force autoload to begin playback as soon as possible
loadEvent.data['autoplay'] = true;
// fire the event
MediaManager.onLoad(loadEvent);
// what now?
The problem is that connected senders are not able to control this new media session. Sender attempts to stop, pause, or seek result in this warning: Unexpected command, player is in IDLE state so the media session ID is not valid yet.
What is the proper way of initiating playback of a stream from the receiver so that senders can be notified?
I'm using version 2.0.0 of cast_receiver.js and 0.6.0 of media_player.js