RTMP/SMIL Parsing Question
looking @ smil files working with, noticed issue parsing.
for example - take smil file:
http://mediapm.edgesuite.net/ovp/content/demo/smil/elephants_dream.smil
which sets (for particular stream) (example a)
host = rtmp://cp67126.edgefcs.net/ondemand
stream = mp4:mediapm/ovp/content/demo/video/elephants_dream/elephants_dream_768x428_24.0fps_408kbp s.mp4
however, not smil files structured way cdns set same content as: (example b)
host = rtmp://cp67126.edgefcs.net/ondemand/mediapm/ovp/content/demo/video/elephants_dream
stream = mp4:elephants_dream_768x428_24.0fps_408kbps.mp4
now if set these straight rtmp streams standard osmf player :
only first example works.
rtmp://cp67126.edgefcs.net/ondemand/mp4:mediapm/ovp/content/demo/video/elephants_dream/ele phants_dream_768x428_24.0fps_408kbps.mp4
the second example not:
rtmp://cp67126.edgefcs.net/ondemand/mediapm/ovp/content/demo/video/elephants_dream/mp4:ele phants_dream_768x428_24.0fps_408kbps.mp4 (osmf player comes stream not found)
however, when plug these 2 examples(a/b) directly (as host/stream) netconnection/netstream/video group, both of above examples work. bug in osmf? or has addressed on cdn level?
thanks.
-will
i tested examples above , found don't work, apologize trying @ this.
however, believe i've found assumptions going on inside fmsurl class may causing issue.
first assumption - found in comments
// if "_definst_" in path , in right place, we'll assume after stream
second assumption is
if (_streamname.search(/^mp4:/i) > -1)
first, assumes _definst_ right infront of stream name, , that's should cut.
then assumes in streamname "mp4:" in front. in particular case; cdns mp4: might further inside stream name.
the cdn format i'm having issue (not examples above) uniformly passes in smil:
host: rtmp://some.fms.server.somewhere/myusername/_definst_/mydirectory/directory/directory/
stream: mp4:thestream.mp4
so when stitch standard rtmp - osmf cuts off after _definst_ , assumes stream name, , doesn't find mp4: in right place.
but when use smil file, assumes stream name still comes after "_definst_" (even though has seperate stream name) - , somehow doesn't see actual stream name @ all.
do have write custom smil parser , rtmp parser cdn, since it's not standard?
thanks.
-will
More discussions in Developers
adobe
Comments
Post a Comment