play video formats on Flash

Discussion in 'PHP' started by mark103, Oct 4, 2013.

  1. #1
    Hi guys,

    I need your urgent help. I got a problem with playing the video formats on flash. I can't be able to play some type of protocols in flash. I can play rtmp, but not most of all. I can't be able to play the http, rtsp, rtmpe, mms, m3u8 and flv.

    I used something like this to play the video in the ur: http://www.mysite.com/flowplayer-3.2.1-dev.swf?src=mms://stream1.france24.yacast.net/f24_liveen


    It will not let me to play those formats. I tried to play those formats on vlc, simpletv and media player which it is working fine. I guess that flash doesn't support those formats type.

    I want to play those formats in flash, because they are working much faster which it doesn't freeze or stop, they got less buffering rather than any video players.

    Does anyone know how I can play those formats in flash or if you know what plugin is the best to support those formats?
     
    mark103, Oct 4, 2013 IP
  2. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #2
    Flash is not recommended. I suggest you look into HTML 5s videofunctionality - then everyone will be able to watch the videos, including all of the users using an iOS device.
     
    PoPSiCLe, Oct 4, 2013 IP
  3. mark103

    mark103 Active Member

    Messages:
    110
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #3
    @PoPSiCLe: Thanks for your help. Does HTML5 video player support those type of protocols such as rtmp, rtmpe, rtsp, http, mms, m3u8 and flv?

    If they do support it, can you please advise me if it possible to hide/remove the loading external by modifying on the HTML5 video player scripts and if it possible to hide the text of the full screen mode?

    And also I would like know how I can add a frame to display them in front of HTML video player using PHP when I press on the up or down arrow buttons of the keyboard?

    If they does support in my needs, can you please post the link where I can get it from with an example project using jquery so hopefully I will be happy to go through with it. :)
     
    Last edited: Oct 4, 2013
    mark103, Oct 4, 2013 IP
  4. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #4
    Well, the HTML 5 video-tag is not really a player, per se. It's more of an API, or functionality within modern browsers.
    Take a look here for a quick and dirty explanation: http://www.w3schools.com/html/html5_video.asp
    And perhaps take a look here for a js-lib that promises to build on the HTML 5 video functionality, and expand upon it: http://www.videojs.com/

    I'm a little unsure as to the file-types you mention - some are very proprietary, and some aren't even video formats. Since you haven't really provided any info on what you're trying to accomplish, my first instinct is to tell you to rethink what you're trying to do, and go with open standards instead of proprietary items.
     
    PoPSiCLe, Oct 4, 2013 IP
  5. mark103

    mark103 Active Member

    Messages:
    110
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #5
    I understand what you said about HTML 5, but some of the things I don't really like is the full screen mode. Do you know how to remove/hide the box of the full screen mode?

    does videojs support rtmp, rtmpe rtsp, http, mms, m3u8 and flv?

    how i can hide the video control?

    you did not say how i can display the frame of a box in front of the video player when i press on the enter button of the keyboard using jquery?
     

    Attached Files:

    mark103, Oct 5, 2013 IP
  6. mark103

    mark103 Active Member

    Messages:
    110
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #6
    @PoPSiCLe: Please answer my questions.
     
    mark103, Oct 5, 2013 IP
  7. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #7
    I'm not entirely sure why you'd want to hide the controls of the player? And I don't know videojs, I just read about it and found what they're doing interesting, I have not used it myself. As for displaying something in front of the video when pressing enter, that's a fairly basic jquery-question, and would probably get a better answer if you post that in the jquery-section after you've decided on what player to use.

    The first thing you should do, however, is come up with a precise plan of what you want to achieve, how you're gonna achieve it, and then look for the best implementations.

    And, please don't repost asking for answers - I provide my point of view, and maybe I don't really have anything more to say on the subject. Hassling is never cool. Just FYI.
     
    PoPSiCLe, Oct 5, 2013 IP
  8. VideoWhisper.com

    VideoWhisper.com Well-Known Member

    Messages:
    330
    Likes Received:
    6
    Best Answers:
    2
    Trophy Points:
    113
    Digital Goods:
    2
    #8
    HTML5 players can't play rtmp, rtmpe protocols or flv files.
    A flash player is required for RTMP, RTMPE . Flash also supports fullscreen mode.

    HTML5 player can only play over HTTP and certain video files / formats depending on browser (most browsers currently support MP4).
    Safari is currently the only browser that supports HLS (HTTP Live Streaming).

    To test multiple players and delivery methods you can try this free WP plugin http://videosharevod.com/ that supports both HTML5 and Flash playback (allows setting these up depending on browser detection) and distribution using RTMP(E/S), HTTP(S), HLS ... depending on hosting capabilities.
     
    VideoWhisper.com, Aug 5, 2014 IP