Announcement

Collapse
No announcement yet.

Problem casting audio-files: "namespace": "urn:x-cast:com.google.cast.receiver"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Problem casting audio-files: "namespace": "urn:x-cast:com.google.cast.receiver"

    Any tips for what to look for here?

    I had this problem, https://forums.homeseer.com/forum/me...ormatexception, but it dissapeared after an update. So now I can send text-strings to the speaker, but trying to send an mp3-results in the error below:

    nov-21 20:10:21 Chromecast DEBUG RX: { "sourceId": "8b201ee5-ea63-49d5-ad29-d9638921c068", "destinationId": "client-6940", "namespace": "urn:x-cast:com.google.cast.media", "payloadUtf8": "{"type":"MEDIA_STATUS","status":[],"requestId":867568412}" }
    nov-21 20:10:21 Chromecast DEBUG TX: { "sourceId": "client-6940", "destinationId": "8b201ee5-ea63-49d5-ad29-d9638921c068", "namespace": "urn:x-cast:com.google.cast.media", "payloadUtf8": "{"requestId":867568412,"type":"GET_STATUS"}" }
    nov-21 20:10:21 Chromecast DEBUG TX: { "sourceId": "client-6940", "destinationId": "8b201ee5-ea63-49d5-ad29-d9638921c068", "namespace": "urn:x-cast:com.google.cast.tp.connection", "payloadUtf8": "{"type":"CONNECT"}" }
    nov-21 20:10:21 Chromecast DEBUG Kontor & gæstetoilet: chromecast status changed
    nov-21 20:10:21 Chromecast DEBUG Kontor & gæstetoilet: application started Default Media Receiver
    nov-21 20:10:21 Chromecast DEBUG RX: { "sourceId": "receiver-0", "destinationId": "*", "namespace": "urn:x-cast:com.google.cast.receiver", "payloadUtf8": "{"requestId":0,"status":{"applications":[{"appId":"CC1AD845","displayName":"Default Media Receiver","iconUrl":"","isIdleScreen":false,"launche dFromCloud":false,"namespaces":[{"name":"urn:x-cast:com.google.cast.cac"},{"name":"urn:x-cast:com.google.cast.debugoverlay"},{"name":"urn:x-cast:com.google.cast.broadcast"},{"name":"urn:x-cast:com.google.cast.media"}],"sessionId":"8b201ee5-ea63-49d5-ad29-d9638921c068","statusText":"Default Media Receiver","transportId":"8b201ee5-ea63-49d5-ad29-d9638921c068"}],"userEq":{"high_shelf":{"frequency":4500.0,"gain_db\ ":0.0,"quality":0.707},"low_shelf":{"frequency":150.0, "gain_db":0.0,"quality":0.707},"max_peaking_eqs":0,"p eaking_eqs":[]},"volume":{"controlType":"master","level":0.1000076 3088464737,"muted":false,"stepInterval":0.01999999955296 5164}},"type":"RECEIVER_STATUS"}" }
    nov-21 20:10:21 Chromecast DEBUG Kontor & gæstetoilet: media status changed, player state = Idle
    nov-21 20:10:21 Chromecast DEBUG RX: { "sourceId": "8b201ee5-ea63-49d5-ad29-d9638921c068", "destinationId": "*", "namespace": "urn:x-cast:com.google.cast.media", "payloadUtf8": "{"type":"MEDIA_STATUS","status":[{"mediaSessionId":9,"playbackRate":1,"playerState":"I DLE","currentTime":0,"supportedMediaCommands":274447," volume":{"level":1,"muted":false},"currentItemId":1,\ "idleReason":"ERROR"}],"requestId":0}" }
    nov-21 20:10:21 Chromecast DEBUG RX: { "sourceId": "8b201ee5-ea63-49d5-ad29-d9638921c068", "destinationId": "client-6940", "namespace": "urn:x-cast:com.google.cast.media", "payloadUtf8": "{"type":"MEDIA_STATUS","status":[],"requestId":867568411}" }
    nov-21 20:10:21 Chromecast DEBUG RX: { "sourceId": "8b201ee5-ea63-49d5-ad29-d9638921c068", "destinationId": "client-6940", "namespace": "urn:x-cast:com.google.cast.media", "payloadUtf8": "{"requestId":867568410,"type":"LOAD_FAILED","detaile dErrorCode":104,"itemId":1}" }
    nov-21 20:10:21 Chromecast DEBUG TX: { "sourceId": "client-6940", "destinationId": "8b201ee5-ea63-49d5-ad29-d9638921c068", "namespace": "urn:x-cast:com.google.cast.media", "payloadUtf8": "{"requestId":867568411,"type":"GET_STATUS"}" }
    nov-21 20:10:21 Chromecast DEBUG TX: { "sourceId": "client-6940", "destinationId": "8b201ee5-ea63-49d5-ad29-d9638921c068", "namespace": "urn:x-cast:com.google.cast.tp.connection", "payloadUtf8": "{"type":"CONNECT"}" }
    nov-21 20:10:21 Chromecast DEBUG Kontor & gæstetoilet: chromecast status changed
    nov-21 20:10:21 Chromecast DEBUG Kontor & gæstetoilet: application started Default Media Receiver
    nov-21 20:10:21 Chromecast DEBUG RX: { "sourceId": "receiver-0", "destinationId": "*", "namespace": "urn:x-cast:com.google.cast.receiver", "payloadUtf8": "{"requestId":0,"status":{"applications":[{"appId":"CC1AD845","displayName":"Default Media Receiver","iconUrl":"","isIdleScreen":false,"launche dFromCloud":false,"namespaces":[{"name":"urn:x-cast:com.google.cast.cac"},{"name":"urn:x-cast:com.google.cast.debugoverlay"},{"name":"urn:x-cast:com.google.cast.broadcast"},{"name":"urn:x-cast:com.google.cast.media"}],"sessionId":"8b201ee5-ea63-49d5-ad29-d9638921c068","statusText":"Casting: HomeSeer","transportId":"8b201ee5-ea63-49d5-ad29-d9638921c068"}],"userEq":{"high_shelf":{"frequency":4500.0,"gain_db\ ":0.0,"quality":0.707},"low_shelf":{"frequency":150.0, "gain_db":0.0,"quality":0.707},"max_peaking_eqs":0,"p eaking_eqs":[]},"volume":{"controlType":"master","level":0.1000076 3088464737,"muted":false,"stepInterval":0.01999999955296 5164}},"type":"RECEIVER_STATUS"}" }
    nov-21 20:10:21 Chromecast DEBUG Kontor & gæstetoilet: media status changed, player state = Idle
    nov-21 20:10:21 Chromecast DEBUG RX: { "sourceId": "8b201ee5-ea63-49d5-ad29-d9638921c068", "destinationId": "*", "namespace": "urn:x-cast:com.google.cast.media", "payloadUtf8": "{"type":"MEDIA_STATUS","status":[{"mediaSessionId":9,"playbackRate":1,"playerState":"I DLE","currentTime":0,"supportedMediaCommands":274447," volume":{"level":1,"muted":false},"media":{"contentI d":"http://192.168.1.118:150/Media/HarIGlemtNoget.mp3","contentType":"audio/mpeg","metadata":{"images":[{"url":"http://192.168.1.118:150/images/Chromecast/hs3.jpg","height":0,"width":0}],"metadataType":0,"title":"HomeSeer"},"streamType":\ "BUFFERED","duration":0,"mediaCategory":"AUDIO"},"cu rrentItemId":1,"extendedStatus":{"playerState":"LOADIN G","media":{"contentId":"http://192.168.1.118:150/Media/HarIGlemtNoget.mp3","contentType":"audio/mpeg","metadata":{"images":[{"url":"http://192.168.1.118:150/images/Chromecast/hs3.jpg","height":0,"width":0}],"metadataType":0,"title":"HomeSeer"},"streamType":\ "BUFFERED","duration":0,"mediaCategory":"AUDIO"},"me diaSessionId":9},"repeatMode":"REPEAT_OFF"}],"requestId":0}" }
    nov-21 20:10:21 Chromecast DEBUG TX: { "sourceId": "client-6940", "destinationId": "8b201ee5-ea63-49d5-ad29-d9638921c068", "namespace": "urn:x-cast:com.google.cast.media", "payloadUtf8": "{"sessionId":"8b201ee5-ea63-49d5-ad29-d9638921c068","media":{"contentId":"http://192.168.1.118:150/Media/HarIGlemtNoget.mp3","contentType":"audio/mpeg","metadata":{"images":[{"url":"http://192.168.1.118:150/images/Chromecast/hs3.jpg","height":0,"width":0}],"metadataType":0,"title":"HomeSeer"},"streamType":\ "BUFFERED","duration":0.0},"autoplay":true,"currentTim e":0.0,"requestId":867568410,"type":"LOAD"}" }
    nov-21 20:10:21 Chromecast DEBUG Playing http://192.168.1.118:150/Media/HarIGlemtNoget.mp3 on Kontor & gæstetoilet
    nov-21 20:10:21 Event Event Trigger "Alarm-system Højtalere: Husk alarmen (1 aktiveret)"
    nov-21 20:10:21 Event Event Alarm-system Højtalere: Husk alarmen (1 aktiveret) triggered by the event page 'Run' button.
    This is the setup:
    Click image for larger version

Name:	Udklip.PNG
Views:	48
Size:	27.5 KB
ID:	1435265

    #2
    the error code you get 104 (MEDIA_SRC_NOT_SUPPORTED) means the codec used in your MP3 is not supported
    https://developers.google.com/cast/d...er/error_codes

    here is some more info about what format is supported:
    https://developers.google.com/cast/docs/media

    also, you can try to use audio/mp3 instead of audio/mpeg for the MIME type, but it's probably not the problem as I can cast some mp3 just fine with audio/mpeg

    Comment


      #3
      All of my notification sounds are WAV files, and I just use the "Play Audio File" action or hs.PlayWavFile() in scripts to send to my Google speakers. I believe that essentially initiates a cast under the hood, but is an easier, more convenient way to go about it.

      If you really need to play that particular MP3 file, as it is now, you could have HomeSeer programmatically launch VLC Media Player which can transcode and cast to your Google Devices. I have scripts to make this easier that I could share if you need to go that route.
      HomeSeer 3, Insteon, Z-wave, USB-UIRT, Google Hub/Chromecasts/Smart Speakers, Foscam cameras, Amcrest camera, RCA HSDB2a doorbell
      Plugins: BLLAN, BLOccupied, BLUSBUIRT, Chromecast, Insteon, Jon00 Homeseer/Echo Skill Helper, Jon00 DB Charting, MediaController, NetCAM, PHLocation2, Pushover 3P, weatherXML, Z-wave

      Comment

      Working...
      X