{"id":201,"date":"2010-12-30T18:14:23","date_gmt":"2010-12-30T18:14:23","guid":{"rendered":"http:\/\/hosting-marketers.com\/news\/?p=201"},"modified":"2010-12-30T18:14:23","modified_gmt":"2010-12-30T18:14:23","slug":"getting-event-cue-points-to-work-with-red5-0-8-and-red5-0-9-1","status":"publish","type":"post","link":"https:\/\/hosting-marketers.com\/news\/2010\/12\/30\/getting-event-cue-points-to-work-with-red5-0-8-and-red5-0-9-1\/","title":{"rendered":"Getting Event Cue Points to work with Red5 0.8 and Red5 0.9.1"},"content":{"rendered":"<p>I&#8217;ve  written a flash app (in AS3) that streams video to a red5 server (over  RMTP of course) and embeds event cue points into the stream. The red5  server is using the OFLA demo that comes with red5, which converts the  streams to FLV files. I then have another flash app that reads the FLV  (over HTTP in this case not RTMP) and calls a function when an event cue  point is reached while playing the FLV.<br \/>\nNow  &#8211; the code you need to write to ensure that the cue points get properly  written into the FLV depends on what RED5 version you are running. The  code I&#8217;m talking about is the AS3 code in the app that streams the  video. When you want to insert an event cuepoint you need to format the  &#8220;send&#8221; function call with the following code (where ns is the netstream  object): <strong><\/strong><\/p>\n<p><strong><br \/>\n<\/strong> <strong>For Red5 0.8<\/strong><\/p>\n<blockquote><p>ns.send(&#8220;onCuePoint&#8221;, cueData);\u00a0  <strong><br \/>\n<\/strong><\/p><\/blockquote>\n<p><strong>For Red5 0.9.1<\/strong><\/p>\n<blockquote><p>ns.send(&#8220;@setDataFrame&#8221;, \u00a0&#8220;onCuePoint&#8221;, cueData);<\/p><\/blockquote>\n<p>And  thats pretty much it. And the other thing you need to ensure is  that when you are setting up your netconnection, make sure you are using  AMF0 encoding. I noticed this is needed for cue points to be added  successfully in the right format.<\/p>\n<blockquote><p>nc.objectEncoding = flash.net.ObjectEncoding.AMF0<\/p><\/blockquote>\n<p>Jeremy is the webmaster of <a href=\"http:\/\/builderscrack.co.nz\/\" target=\"_blank\" rel=\"noopener\">http:\/\/builderscrack.co.nz<\/a><br \/>\n<a href=\"http:\/\/builderscrack.co.nz\/\" target=\"_blank\" rel=\"noopener\"><\/a><\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve written a flash app (in AS3) that streams video to a red5 server (over RMTP of course) and embeds event cue points into the stream. The red5 server is using the OFLA demo that comes with red5, which converts the streams to FLV files. I then have another flash app that reads the FLV [&hellip;]<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[40],"tags":[144],"class_list":["post-201","post","type-post","status-publish","format-standard","hentry","category-rtmp-and-video-streaming","tag-event-cue-points"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p9Yxzd-3f","jetpack-related-posts":[{"id":449,"url":"https:\/\/hosting-marketers.com\/news\/2014\/01\/12\/comparison-between-wowza-media-server-vs-red5-and-vs-adobe-flash-media-server\/","url_meta":{"origin":201,"position":0},"title":"Comparison between Wowza Media Server vs Red5 and vs Adobe Flash Media Server","author":"Admin","date":"January 12, 2014","format":false,"excerpt":"UPDATE 2021: As of this year 2021, Adobe Flash has been disabled for all Browsers, so Red5 and FMS (flash media server) do not work. Video chats using flash have stopped working. The only way at this moment is to use HTML5 players. We at Hosting Marketers have setup a\u2026","rel":"","context":"In &quot;Hosting Marketers News&quot;","block_context":{"text":"Hosting Marketers News","link":"https:\/\/hosting-marketers.com\/news\/category\/hosting-marketers-news\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":220,"url":"https:\/\/hosting-marketers.com\/news\/2011\/06\/07\/using-ffmpeg-to-create-a-single-thumbnail-image-from-a-red5-recorded-flv-file\/","url_meta":{"origin":201,"position":1},"title":"Using ffmpeg to create a single thumbnail image from a red5 recorded flv file","author":"Admin","date":"June 7, 2011","format":false,"excerpt":"Below is a simple php code to manipulate with ffmpeg and create a thumbnail image from a recorded flv file. Assuming that we used oflaDemo to record the video and we want the image to be the frame on the 4th second of the video: <?php \/\/Set video flv path\u2026","rel":"","context":"In &quot;Hosting Marketers News&quot;","block_context":{"text":"Hosting Marketers News","link":"https:\/\/hosting-marketers.com\/news\/category\/hosting-marketers-news\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":736,"url":"https:\/\/hosting-marketers.com\/news\/2019\/02\/22\/rtmp-hosting-providing-red5-rtmp-wowza-rtmp-and-rtmp-server\/","url_meta":{"origin":201,"position":2},"title":"RTMP Hosting, providing red5 rtmp, wowza rtmp  AND rtmp server","author":"Admin","date":"February 22, 2019","format":false,"excerpt":"Hosting Marketers since 2005 have supported red5 hosting and rtmp servers, but now we also added wowza rtmp and adobe media server for rtmp support. Red5 rtmp although mostly used for flash player is still an integral part of video chat scripts, like for example the famous Visichat, which were\u2026","rel":"","context":"In &quot;rtmp hosting&quot;","block_context":{"text":"rtmp hosting","link":"https:\/\/hosting-marketers.com\/news\/category\/rtmp-hosting\/"},"img":{"alt_text":"rtmp hosting","src":"https:\/\/i0.wp.com\/hosting-marketers.com\/news\/wp-content\/uploads\/2019\/02\/rtmp-hosting.gif?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":170,"url":"https:\/\/hosting-marketers.com\/news\/2010\/08\/26\/red5-and-ffmpeg\/","url_meta":{"origin":201,"position":3},"title":"red5 and ffmpeg","author":"Admin","date":"August 26, 2010","format":false,"excerpt":"One of our customers asked if he could stream through the ffmpeg folder. FFmpeg is a software which converts video files in different formats to video files in flv format this videos are then streamed through a swf player just like the streaming of red5 videos, which are also on\u2026","rel":"","context":"In &quot;Hosting Marketers News&quot;","block_context":{"text":"Hosting Marketers News","link":"https:\/\/hosting-marketers.com\/news\/category\/hosting-marketers-news\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":666,"url":"https:\/\/hosting-marketers.com\/news\/2018\/03\/31\/what-is-the-use-of-red5\/","url_meta":{"origin":201,"position":4},"title":"what is the use of red5?","author":"Admin","date":"March 31, 2018","format":false,"excerpt":"Well there are 2 red5's, the open source red5 which is the one we use on our servers and red5pro, which is very expensive but still does not do what Wowza Streaming Engine does. Red5 the open source can be used for ondemand streaming which is video streaming, you upload\u2026","rel":"","context":"In &quot;Hosting Marketers News&quot;","block_context":{"text":"Hosting Marketers News","link":"https:\/\/hosting-marketers.com\/news\/category\/hosting-marketers-news\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":141,"url":"https:\/\/hosting-marketers.com\/news\/2010\/01\/08\/red5-hosting-or-rtmp-hosting\/","url_meta":{"origin":201,"position":5},"title":"red5 hosting or Real Time Messaging Protocol (RTMP) hosting","author":"Admin","date":"January 8, 2010","format":false,"excerpt":"Real Time Messaging Protocol (RTMP) is a protocol for streaming audio, video and data over the Internet, between a Flash player and a server. A special software is required to run on server side for accepting and serving the rtmp connections from flash clients. We provide managed RTMP hosting based\u2026","rel":"","context":"In &quot;rtmp hosting&quot;","block_context":{"text":"rtmp hosting","link":"https:\/\/hosting-marketers.com\/news\/category\/rtmp-hosting\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/posts\/201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/comments?post=201"}],"version-history":[{"count":2,"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/posts\/201\/revisions"}],"predecessor-version":[{"id":203,"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/posts\/201\/revisions\/203"}],"wp:attachment":[{"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/media?parent=201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/categories?post=201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hosting-marketers.com\/news\/wp-json\/wp\/v2\/tags?post=201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}