AutoCast Youtube Video casted via AutoCast to Google Home randomly stops playing after a few seconds

Discussion in 'AutoApps' started by NovaViper, Mar 28, 2018.

  1. NovaViper

    NovaViper Member

    Joined:
    Jan 20, 2017
    Messages:
    43
    Likes Received:
    0
    I'm not sure why, but whenever I send a video link from my desktop via Join then have AutoCast send the video to my Google Home; it plays for a few seconds then suddenly stops and doesn't play anymore. I'm using AutoCast v1.5.0.bf1; Join v1.8.1.bf3; and Tasker v5.1.4b.bf4. My Google Home Cast firmware is 1.31.114510 and the system firmware is 114510

    Here's what my profile looks like:
    Code (Text):
    <TaskerData sr="" dvi="1" tv="5.1.4b.bf4">
        <Profile sr="prof100" ve="2">
            <cdate>1521681363027</cdate>
            <edate>1522203683346</edate>
            <id>100</id>
            <mid0>101</mid0>
            <nme>Cast YouTube Video To Home</nme>
            <Event sr="con0" ve="2">
                <code>18927444</code>
                <pri>0</pri>
                <Bundle sr="arg0">
                    <Vals sr="val">
                        <Command>castvideo=:=</Command>
                        <Command-type>java.lang.String</Command-type>
                        <CommandCaseInsensitive>false</CommandCaseInsensitive>
                        <CommandCaseInsensitive-type>java.lang.Boolean</CommandCaseInsensitive-type>
                        <CommandExact>false</CommandExact>
                        <CommandExact-type>java.lang.Boolean</CommandExact-type>
                        <CommandRegex>false</CommandRegex>
                        <CommandRegex-type>java.lang.Boolean</CommandRegex-type>
                        <VariableArray>false</VariableArray>
                        <VariableArray-type>java.lang.Boolean</VariableArray-type>
                        <VariableNames>videourl</VariableNames>
                        <VariableNames-type>java.lang.String</VariableNames-type>
                        <com.twofortyfouram.locale.intent.extra.BLURB>Command Filter: castvideo=:=
    Variable Names: videourl</com.twofortyfouram.locale.intent.extra.BLURB>
                        <com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
                        <config_CustomCommandsApp>&lt;null&gt;</config_CustomCommandsApp>
                        <config_CustomCommandsApp-type>java.lang.String</config_CustomCommandsApp-type>
                        <config_CustomCommandsCommand>&lt;null&gt;</config_CustomCommandsCommand>
                        <config_CustomCommandsCommand-type>java.lang.String</config_CustomCommandsCommand-type>
                        <net.dinglisch.android.tasker.EXTRA_NSR_DEPRECATED>true</net.dinglisch.android.tasker.EXTRA_NSR_DEPRECATED>
                        <net.dinglisch.android.tasker.EXTRA_NSR_DEPRECATED-type>java.lang.Boolean</net.dinglisch.android.tasker.EXTRA_NSR_DEPRECATED-type>
                        <net.dinglisch.android.tasker.extras.REQUESTED_TIMEOUT>20000</net.dinglisch.android.tasker.extras.REQUESTED_TIMEOUT>
                        <net.dinglisch.android.tasker.extras.REQUESTED_TIMEOUT-type>java.lang.Integer</net.dinglisch.android.tasker.extras.REQUESTED_TIMEOUT-type>
                        <net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>Command VariableNames plugininstanceid plugintypeid </net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>
                        <net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>java.lang.String</net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>
                        <net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
                        <net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
                        <plugininstanceid>7409ddb6-f16c-47b4-8734-77b0edfaf830</plugininstanceid>
                        <plugininstanceid-type>java.lang.String</plugininstanceid-type>
                        <plugintypeid>com.joaomgcd.autoappshub.intent.IntentCommand</plugintypeid>
                        <plugintypeid-type>java.lang.String</plugintypeid-type>
                    </Vals>
                </Bundle>
                <Str sr="arg1" ve="3">com.joaomgcd.autoappshub</Str>
                <Str sr="arg2" ve="3">com.joaomgcd.autoappshub.activity.ActivityConfigCommand</Str>
            </Event>
        </Profile>
        <Task sr="task101">
            <cdate>1521681369934</cdate>
            <edate>1522203681768</edate>
            <id>101</id>
            <nme>Cast Video</nme>
            <pri>6</pri>
            <Action sr="act0" ve="7">
                <code>548</code>
                <Str sr="arg0" ve="3">Casting</Str>
                <Int sr="arg1" val="0"/>
            </Action>
            <Action sr="act1" ve="7">
                <code>1094115366</code>
                <Bundle sr="arg0">
                    <Vals sr="val">
                        <com.twofortyfouram.locale.intent.extra.BLURB>Device: Nova Home
    Volume: 40</com.twofortyfouram.locale.intent.extra.BLURB>
                        <com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
                        <net.dinglisch.android.tasker.JSON_ENCODED_KEYS>parameters</net.dinglisch.android.tasker.JSON_ENCODED_KEYS>
                        <net.dinglisch.android.tasker.JSON_ENCODED_KEYS-type>java.lang.String</net.dinglisch.android.tasker.JSON_ENCODED_KEYS-type>
                        <net.dinglisch.android.tasker.RELEVANT_VARIABLES>&lt;StringArray sr=""&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;%acmute
    Mute
    Current Mute Status: true or false&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1&gt;%acvolume
    Volume
    Current Device Volume&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES2&gt;%err
    Error Code
    Only available if you select &amp;lt;b&amp;gt;Continue Task After Error&amp;lt;/b&amp;gt; and the action ends in error&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES2&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES3&gt;%errmsg
    Error Message
    Only available if you select &amp;lt;b&amp;gt;Continue Task After Error&amp;lt;/b&amp;gt; and the action ends in error&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES3&gt;&lt;/StringArray&gt;</net.dinglisch.android.tasker.RELEVANT_VARIABLES>
                        <net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>[Ljava.lang.String;</net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>
                        <net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>parameters plugininstanceid plugintypeid </net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>
                        <net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>java.lang.String</net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>
                        <net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
                        <net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
                        <parameters>{"deviceSettingsVolume":"40","speakAdvanced":{},"speakDevice":"com.google.android.gms/.cast.media.CastMediaRouteProviderService######4d2dd8118e0cd7e3d5a76f096bfe7e8c","generatedValues":{}}</parameters>
                        <parameters-type>java.lang.String</parameters-type>
                        <plugininstanceid>4174aed7-7c41-4588-a793-1cacd1621d28</plugininstanceid>
                        <plugininstanceid-type>java.lang.String</plugininstanceid-type>
                        <plugintypeid>com.joaomgcd.autocast.intent.IntentDeviceSettings</plugintypeid>
                        <plugintypeid-type>java.lang.String</plugintypeid-type>
                    </Vals>
                </Bundle>
                <Str sr="arg1" ve="3">com.joaomgcd.autocast</Str>
                <Str sr="arg2" ve="3">com.joaomgcd.autocast.activity.ActivityConfigDeviceSettings</Str>
                <Int sr="arg3" val="60"/>
            </Action>
            <Action sr="act2" ve="7">
                <code>1764880755</code>
                <Bundle sr="arg0">
                    <Vals sr="val">
                        <BestGuessType>&lt;null&gt;</BestGuessType>
                        <BestGuessType-type>java.lang.String</BestGuessType-type>
                        <BestGuessValue>%videourl</BestGuessValue>
                        <BestGuessValue-type>java.lang.String</BestGuessValue-type>
                        <CastDevice>com.google.android.gms/.cast.media.CastMediaRouteProviderService:4d2dd8118e0cd7e3d5a76f096bfe7e8c</CastDevice>
                        <CastDevice-type>java.lang.String</CastDevice-type>
                        <com.twofortyfouram.locale.intent.extra.BLURB>Cast Device: Nova Home
    Value to Cast: %videourl</com.twofortyfouram.locale.intent.extra.BLURB>
                        <com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
                        <net.dinglisch.android.tasker.RELEVANT_VARIABLES>&lt;StringArray sr=""&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;%err
    Error Code
    Only available if you select &amp;lt;b&amp;gt;Continue Task After Error&amp;lt;/b&amp;gt; and the action ends in error&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1&gt;%errmsg
    Error Message
    Only available if you select &amp;lt;b&amp;gt;Continue Task After Error&amp;lt;/b&amp;gt; and the action ends in error&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1&gt;&lt;/StringArray&gt;</net.dinglisch.android.tasker.RELEVANT_VARIABLES>
                        <net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>[Ljava.lang.String;</net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>
                        <net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>CastDevice BestGuessValue plugininstanceid plugintypeid </net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>
                        <net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>java.lang.String</net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>
                        <net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
                        <net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
                        <plugininstanceid>a538ba13-9868-41b5-a8bc-0f1e7835a0a4</plugininstanceid>
                        <plugininstanceid-type>java.lang.String</plugininstanceid-type>
                        <plugintypeid>com.joaomgcd.autocast.intent.IntentCastBestGuess</plugintypeid>
                        <plugintypeid-type>java.lang.String</plugintypeid-type>
                    </Vals>
                </Bundle>
                <Str sr="arg1" ve="3">com.joaomgcd.autocast</Str>
                <Str sr="arg2" ve="3">com.joaomgcd.autocast.activity.ActivityConfigCastBestGuess</Str>
                <Int sr="arg3" val="0"/>
            </Action>
        </Task>
    </TaskerData>
     
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Can you please export your task's description (not xml) so I can take a look? Long-click the task in Tasker->export description Thanks in advance
     
  3. NovaViper

    NovaViper Member

    Joined:
    Jan 20, 2017
    Messages:
    43
    Likes Received:
    0
    Here you go:

    Code (Text):
    Profile: Cast YouTube Video To Home (100)
        Event: AutoApps Command [ Configuration:Command Filter: castvideo=:=
    Variable Names: videourl ]
    Enter: Anon (101)
        A1: Flash [ Text:Casting Long:Off ]
        A2: [X] Variable Set [ Name:%videoPause To:pause Recurse Variables:Off Do Maths:Off Append:Off ]
        A3: [X] Variable Set [ Name:%videoPlay To:play Recurse Variables:Off Do Maths:Off Append:Off ]
        A4: [X] Variable Set [ Name:%videoEnd To:end Recurse Variables:Off Do Maths:Off Append:Off ]
        A5: [X] AutoTools Web Screen [ Configuration:Screen Preset: Floating Bar
    Display Mode: Overlay
    Close Overlay ID: video ui
    Source: /storage/emulated/0/AutoTools/floating_bar/page.html
    Toast Duration: 5000
    Background Color: #7B1FA2
    Width: 50
    Height: 50
    Gravity: Left
    Offset X: 50
    Offset Y: -100
    Animation: Zoom In
    Overlay Id: video ui
    Show Duration: 500
    Hide Duration: 250
    Drag: Draggable Anywhere
    Drag Movements: All Directions
    Fling To Dismiss: No Fling To Dismiss
    Update: true
    Icons: /storage/emulated/0/Tasker/icons/callui/dialpad.png,%volPath,%mutePath,/storage/emulated/0/Tasker/icons/callui/endcall.png
    Commands: dialer,%callSpeaker,%callMute,end
    Command Prefix: videomanage
    Visible Items: 4
    First Items: 3,4,2,5
    Item Padding: 16
    Animation Time: 400
    Circle When Collapsed: true
    Custom Expand Icon: /storage/emulated/0/Tasker/icons/callui/call.png
    Snap To Items: true
    Floating Bar Color: #1565C0
    Expander Color: black
    Expander Back Color: #0D47A1 Timeout (Seconds):30 ]
        A6: AutoCast Best Guess [ Configuration:Cast Device: Nova Home
    Value to Cast: %videourl Timeout (Seconds):0 ]
        A7: [X] AutoCast Control Media [ Configuration:
    Starting AutoCast
    Persistent Notification: true
    Cast Device: Nova Home
    Command: Toggle Play/Pause
    Seek: 0 Timeout (Seconds):1000 ]
     
     
  4. NovaViper

    NovaViper Member

    Joined:
    Jan 20, 2017
    Messages:
    43
    Likes Received:
    0
    I still haven't been able to get this fixed. This same thing happens to basically any video I load up onto the speaker via Tasker/Join.
     

Share This Page