Hi All,
I am trying to broadcast one media (say A) for couple of seconds and pause it, and play a different media (say B). Once B is completed, I want to resume A from the point where it was paused. Its analogous to playing a movie and showing ads in between.
I am able to pause A, but when I play B, the streams get mixed up and it crashes the VLC on the client machine. Does anyone know how to signal vlc to pause playing A and stream just B. I tried using disable but it does not seem to work. Any good ideas are most welcome.
Here's my code :
del movie
new movie broadcast enabled
setup movie input file:///D:/tmp/thebestargument.wmv
setup movie output #standard{mux=ts,access=udp,raw,dst=239.255.1.1,sap,name="Movie 1"}:#duplicate{mux=asf,access=http,dst=192.168.13.1:9002/bc}
control movie play
control movie option --sout-keep
show movie
> > > > > > show
movie
type : broadcast
enabled : yes
loop : no
inputs
file:///D:/tmp/thebestargument.wmv
output : #standard{mux=ts,access=udp,raw,dst=239.255.1.1,sap,name="Movie 1"}:#duplicate{mux=asf,access=http,dst=192.168.13.1:9002/bc}
options
instances
instance
name : default
state : stopped
position : 0.000000
time : 0
length : 0
rate : 1000
title : 0
chapter : 0
seekable : 1
playlistindex : 1
> setup movie disabled
> del ad
new ad broadcast enabled
del : ad: media unksetup ad input file:///D:/tmp/2137.wmv
setup ad output #standard{mux=ts,access=udp,raw,dst=239.255.1.1,sap,name="Ad 1"}:#duplicate{mux=asf,access=http,dst=192.168.13.1:9002/bc}
control ad play
control ad option --sout-keep
nown
> > > > > > control movie seek 50%
setup movie enabled