<div dir="ltr">It&#39;s mostly focused on broadcasting not playing youtube.  I remember getting it to work at least once but its a bit fragile because it has to parse all the dash manifests etc which keep changing.<div>I&#39;d recommend caching it by downloading it with youtube-dl first then playing it.</div><div>This will probably improve as the industry finally adopts all the streaming stuff.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 11, 2016 at 7:31 AM, Anonim Stefan <span dir="ltr">&lt;<a href="mailto:fanx07@gmail.com" target="_blank">fanx07@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I want to ask if sound/video playback of an youtube URL can be done with mod_vlc. Looking in freeswitch mod_vlc.c I can see &quot;vlc_file_supported_formats[<wbr>argc++] = &quot;youtube&quot;;&quot;.</div><div><br></div><div>I have tried &lt;action application=&quot;playback&quot; data=&quot;vlc://<a href="https://youtu.be/VoeCcCQuJrM" target="_blank">https://youtu.be/<wbr>VoeCcCQuJrM</a>&quot;/&gt; without success:</div><div><br></div><div>&quot;</div><div><div>EXECUTE sofia/internal/<a href="tel:7479572798" value="+17479572798" target="_blank">7479572798</a> playback(vlc://<a href="https://youtu.be/VoeCcCQuJrM" target="_blank">https://youtu.<wbr>be/VoeCcCQuJrM</a>)</div><div>2016-11-11 13:23:36.772643 [DEBUG] mod_vlc.c:832 VLC attempt to open <a href="https://youtu.be/VoeCcCQuJrM" target="_blank">https://youtu.be/VoeCcCQuJrM</a> read  </div><div>2016-11-11 13:23:36.772643 [DEBUG] mod_vlc.c:857 VLC open <a href="https://youtu.be/VoeCcCQuJrM" target="_blank">https://youtu.be/VoeCcCQuJrM</a> for reading</div><div>2016-11-11 13:23:36.772643 [NOTICE] mod_vlc.c:863 VLC Path is http <a href="https://youtu.be/VoeCcCQuJrM" target="_blank">https://youtu.be/VoeCcCQuJrM</a></div><div>2016-11-11 13:23:36.772643 [DEBUG] switch_ivr_play_say.c:1467 Codec Activated L16@8000hz 1 channels 20ms</div><div>2016-11-11 13:23:36.772643 [DEBUG] mod_vlc.c:242 Got a libvlc_MediaStateChanged callback. New state: 1</div><div>2016-11-11 13:23:37.472579 [DEBUG] mod_vlc.c:242 Got a libvlc_MediaStateChanged callback. New state: 3</div><div>2016-11-11 13:23:37.532634 [DEBUG] mod_vlc.c:242 Got a libvlc_MediaStateChanged callback. New state: 7</div><div>2016-11-11 13:23:37.532634 [DEBUG] mod_vlc.c:227 Got a libvlc_<wbr>MediaPlayerEncounteredError callback. mediaPlayer Status: 7</div><div>2016-11-11 13:23:37.532634 [ERR] mod_vlc.c:1094 VLC error</div><div>2016-11-11 13:23:37.532634 [DEBUG] switch_ivr_play_say.c:1910 done playing file vlc://<a href="https://youtu.be/VoeCcCQuJrM" target="_blank">https://youtu.be/<wbr>VoeCcCQuJrM</a></div><div>2016-11-11 13:23:37.572584 [DEBUG] mod_vlc.c:242 Got a libvlc_MediaStateChanged callback. New state: 5</div><div>2016-11-11 13:23:37.572584 [DEBUG] mod_python.c:286 Finished calling python script </div><div>2016-11-11 13:23:37.572584 [DEBUG] switch_cpp.cpp:1107 sofia/internal/<a href="tel:7479572798" value="+17479572798" target="_blank">7479572798</a> destroy/unlink session from object</div><div>EXECUTE sofia/internal/<a href="tel:7479572798" value="+17479572798" target="_blank">7479572798</a> hangup()</div></div><div>&quot;</div><div><br></div><div>Couldn&#39;t find any documentation/examples about youtube playback using mod_vlc. Can someone help me with some examples, please?</div><div><br></div><div>Thank you,</div><div>Stefan</div></div>
<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬<div><br><div>☞ <a href="http://freeswitch.org/" target="_blank">http://freeswitch.org/</a>  ☞ <a href="http://cluecon.com/" target="_blank">http://cluecon.com/</a>  ☞ <a href="http://twitter.com/FreeSWITCH" target="_blank">http://twitter.com/FreeSWITCH</a></div><div><div>☞ <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch ☞ <u><a href="http://freeswitch.org/g+" target="_blank">http://freeswitch.org/g+</a></u><br><br></div><div>ClueCon Weekly Development Call <br></div><div>☎ <a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a>  ☎ +19193869900 </div><div><br></div></div></div><div><a href="https://www.youtube.com/watch?v=9XXgW34t40s" style="color:rgb(17,85,204);font-size:12.8000001907349px" target="_blank">https://www.youtube.com/watch?v=9XXgW34t40s</a></div><div><a href="https://www.youtube.com/watch?v=NLaDpGQuZDA" target="_blank">https://www.youtube.com/watch?v=NLaDpGQuZDA</a><br></div></div></div></div></div></div></div>
</div>