I've run into an issue with one of the cameras, however, and I'm not entirely sure how to display the feed.
The camera is sending down the stream in h264 but VLC Player is not recognizing what demux to use and so it sits trying to load the stream until you tell it to use something along the lines of h26x in which case you get the following response in the log:
Code: Select all
main debug: creating demux: access='http' demux='h26x' location='webaddress/video.web?s=0x2cb56d36&camera=1704448&format=5' file='\\webaddress:4502\video.web'
main debug: looking for demux module matching "h26x": 55 candidates
h26x error: this doesn't look like a h264 ES stream, continuing anyway
main debug: looking for packetizer module matching "any": 24 candidates
main debug: using packetizer module "h264"
main debug: using demux module "h26x"
Code: Select all
media.AddOption(":demux=h264");
Now when I tried to do the same in the Android project I just get a black screen with no video feed. I did try adding
Code: Select all
var configuration = new MediaConfiguration();
configuration.EnableHardwareDecoding();
media.AddOption(configuration);