Commit 828dc015 authored by Rémi Duraffort's avatar Rémi Duraffort

metachannels: force the use of the ffmpeg demuxer for mp4 (extension .m4v here).

(cherry picked from commit 11f64a07)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent 299eee9f
......@@ -28,6 +28,8 @@ end
function parse()
local webpage = ''
local options
while true do
local line = vlc.readline()
if line == nil then break end
......@@ -43,10 +45,12 @@ function parse()
if( item.name == 'item' ) then
simplexml.add_name_maps( item )
local url = string.gsub( item.children_map['link'][1].children[1], '&amp;', '&' )
if( string.match( url, '%.m4v' ) ) then options = { ':play-and-pause', ':demux=avformat,ffmpeg' }
else options = { ':play-and-pause' } end
table.insert( tracks, { path = url,
title = item.children_map['title'][1].children[1],
arturl = item.children_map['media:thumbnail'][1].attributes['url'],
options = {':play-and-pause'} } )
options = options } )
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment