Reputation: 100
I want to play mp4 in my android app, but when I set my file to a URL in the server the app pushes the message "cannot play this video"
Sometimes I had anerror in eclipse "app can not find this directory"
And I sometimes had this error "status: RTSP/1.0 401 unauthorized"
Here's the code I'm using to set the url:
objItem.setVideoUrl("rtsp://ipserver:1935/live/mp4:sample.mp4");
How can I get this to play properly?
Upvotes: 1
Views: 258
Reputation: 100
after an hour spent about this i found that answer i forgot to set "none" in this this node value
<PublishMethod>digest</PublishMethod>
<PlayMethod>none</PlayMethod>
Upvotes: 1