home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
OnlineVideos
I need help developing a new site
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="doskabouter" data-source="post: 991376" data-attributes="member: 98267"><p>You can do with this [CODE]</p><p> public override string getUrl(VideoInfo video)</p><p> {</p><p> string webdata = GetWebData(video.VideoUrl);</p><p> Match m = regEx_FileUrl.Match(webdata);</p><p></p><p> if (!m.Success)</p><p> return String.Empty;</p><p></p><p> AMFArray renditions = GetResultsFromFindByMediaId(m, video.VideoUrl);</p><p></p><p> return FillPlaybackOptions(video, renditions);</p><p> }</p><p></p><p> protected AMFArray GetResultsFromFindByMediaId(Match m, string videoUrl)</p><p> {</p><p> AMFSerializer ser = new AMFSerializer();</p><p> object[] values = new object[4];</p><p> values[0] = hashValue;</p><p> values[1] = Convert.ToDouble(playerId);</p><p> values[2] = Convert.ToDouble(videoUrl.Substring(videoUrl.LastIndexOf("/") + 1));</p><p> values[3] = Convert.ToDouble(array4);</p><p> byte[] data = ser.Serialize2("com.brightcove.player.runtime.PlayerMediaFacade.findMediaById", values);</p><p> AMFObject obj = AMFObject.GetResponse(requestUrl, data);</p><p> return obj.GetArray("renditions");</p><p> }</p><p>[/CODE] if you derive your util from brightcove</p><p> </p><p>About the non-playing ones: I see there are (at least) 2 different sources:</p><p>rtmp://brightcove.fcod.llnwd.net/a500/e1/uds/rtmp/ondemand/&mp4:102076681001/102076681001_986249873001_26930-20110610-122117.mp4&1367784000000&9bdcf33601fa40b0ea32006cc832f24e</p><p>and</p><p>rtmp://cp101675.edgefcs.net/ondemand/&mp4:23/102076681001/201304/1675/102076681001_2331553361001_147262-20130427-102416.mp4?__nn__=1545806548001&slist=23/102076681001/201304/1675/;23/102076681001/201304/3147/;23/102076681001/201304/3299/&auth=daEcWb4cKbBbjadbUboakbLcTb0dhc4aoaT-brHP4G-bWG-GBDo_FEn_AFwE_HmB&aifp=rtmpeuds17</p><p> </p><p>I think one of those 2 need some further investigation as to why it's not playing. Perhaps it's missing some parameters.</p><p>Best check with rtmpdump (or google your site/rtmpurl with rtmpdump) and see if you can find the right params.</p><p>Then it's probably looping over the playbackoptions after the call to fillplaybackoptions and adding those params.</p><p>Or copy & modify fillplaybackoptions from the brightcoveutil.</p><p> </p><p>Good luck!</p></blockquote><p></p>
[QUOTE="doskabouter, post: 991376, member: 98267"] You can do with this [CODE] public override string getUrl(VideoInfo video) { string webdata = GetWebData(video.VideoUrl); Match m = regEx_FileUrl.Match(webdata); if (!m.Success) return String.Empty; AMFArray renditions = GetResultsFromFindByMediaId(m, video.VideoUrl); return FillPlaybackOptions(video, renditions); } protected AMFArray GetResultsFromFindByMediaId(Match m, string videoUrl) { AMFSerializer ser = new AMFSerializer(); object[] values = new object[4]; values[0] = hashValue; values[1] = Convert.ToDouble(playerId); values[2] = Convert.ToDouble(videoUrl.Substring(videoUrl.LastIndexOf("/") + 1)); values[3] = Convert.ToDouble(array4); byte[] data = ser.Serialize2("com.brightcove.player.runtime.PlayerMediaFacade.findMediaById", values); AMFObject obj = AMFObject.GetResponse(requestUrl, data); return obj.GetArray("renditions"); } [/CODE] if you derive your util from brightcove About the non-playing ones: I see there are (at least) 2 different sources: rtmp://brightcove.fcod.llnwd.net/a500/e1/uds/rtmp/ondemand/&mp4:102076681001/102076681001_986249873001_26930-20110610-122117.mp4&1367784000000&9bdcf33601fa40b0ea32006cc832f24e and rtmp://cp101675.edgefcs.net/ondemand/&mp4:23/102076681001/201304/1675/102076681001_2331553361001_147262-20130427-102416.mp4?__nn__=1545806548001&slist=23/102076681001/201304/1675/;23/102076681001/201304/3147/;23/102076681001/201304/3299/&auth=daEcWb4cKbBbjadbUboakbLcTb0dhc4aoaT-brHP4G-bWG-GBDo_FEn_AFwE_HmB&aifp=rtmpeuds17 I think one of those 2 need some further investigation as to why it's not playing. Perhaps it's missing some parameters. Best check with rtmpdump (or google your site/rtmpurl with rtmpdump) and see if you can find the right params. Then it's probably looping over the playbackoptions after the call to fillplaybackoptions and adding those params. Or copy & modify fillplaybackoptions from the brightcoveutil. Good luck! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
OnlineVideos
I need help developing a new site
Contact us
RSS
Top
Bottom