Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No compatible source was found for this media. #7513

Closed
musajeeb opened this issue Nov 12, 2021 · 4 comments
Closed

No compatible source was found for this media. #7513

musajeeb opened this issue Nov 12, 2021 · 4 comments

Comments

@musajeeb
Copy link

I am Using this

  1. http://tv.hotflix.stream/live-tv/t-sports.html ( working )
  2. http://tv.hotflix.stream/live-tv/music-india.html ( Not Working )
  3. link: http://103.159.4.38:5868/BD-BANGLA-11/tracks-v1a1/mono.m3u8 ( working )
  4. link: http://65.2.4.240/jioo.php?c=Music_India&q=1200&e=junk.m3u8 ( not working )
    Anyone can help me with which needs to change for the working 2nd link?
db->get_where('config' , array('title'=>'site_name'))->row()->value; ?>
db->get_where('config' , array('title'=>'player_color_skin'))->row()->value; if(isset($_GET['key'])): $query = $this->db->get_where('live_tv_url', array('stream_key'=>$_GET['key']),1); $num_rows = $query->num_rows(); if($num_rows > 0): $video_file = $query->row(); $file_source = $video_file->source; $file_url = $video_file->url; else: $file_source = $watch_tv->stream_from; $file_url = $watch_tv->stream_url; endif; else: $file_source = $watch_tv->stream_from; $file_url = $watch_tv->stream_url; endif; if($file_source=='hls' || $file_source=='rtmp' || $file_source=='mpeg-dash'): ?> <script src="https://unpkg.com/videojs-flash/dist/videojs-flash.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/videojs-contrib-hls/5.14.1/videojs-contrib-hls.min.js"></script>
<?php endif; ?>
<?php  if($file_source=='mpeg-dash'): ?>
	<script src="<?php echo base_url(); ?>assets/player/plugins/dash-js/dash.all.min.js"></script>
    <script src="https://github.com/videojs/videojs-contrib-dash/releases/download/v2.9.1/videojs-dash.min.js"></script>
    <script src="https://unpkg.com/videojs-flash/dist/videojs-flash.js"></script>
<?php endif; ?>
    <video id="play" class="video-js vjs-big-play-centered skin-<?php echo $player_color_skin; ?> vjs-16-9" controls preload="none" width="640" height="265" poster="<?php echo $this->live_tv_model->get_tv_poster($watch_tv->poster); ?>" data-setup="{}">

        <!-- worning text if needed -->
        <p class="vjs-no-js"><?php echo trans('to_view_this_video_please_enable_javascript,_and_consider_upgrading_to_a_web_browser_that'); ?> <a href="http://videojs.com/html5-video-support/" target="_blank"><?php echo trans('supports_html5_video'); ?></a></p>
    </video>
    <script>
      var options;
      options = {
        "controls": true, 
        "autoplay": true, 
        "preload": "auto" ,
        techOrder: [ 'chromecast', 'html5' ],
        sources: [
            { src: '<?php echo $file_url; ?>', type: '<?php if($file_source =='mp4' || $file_source =='gdrive' || $file_source =='amazone'){echo 'video/mp4';}else if($file_source =='flv'){echo 'video/x-flv';}else if($file_source =='webm' || $file_source =='mkv'){echo 'video/webm';}else if($file_source =='m3u8'){echo 'application/x-mpegURL';} ?>'}
        ],
        
        
        chromecast: {               
              requestTitleFn: function(source) { // Not required
                return '<?php echo str_replace('"','',str_replace("'", "", $watch_tv->tv_name)); ?>';
              },
              requestSubtitleFn: function(source) { // Not required
                 return 'Watching Live TV';
              },
              requestCustomDataFn: function(source) { // Not required
                 return {
                    'live': false,
                }
              },
              requestPosterFn: function () {
                return [
                    {
                        'url': '<?php echo $this->common_model->get_video_thumb_url($watch_tv->live_tv_id); ?>'
                    }
                ];
            }
        },
        plugins: {
          chromecast: {
             customData: {
                    live: false
                }
          },
        }
      };
      var ovoo_player = videojs('play', options);
   </script>
<?php $this->load->view($theme_dir.'/tv_player_plugin'); ?>
<?php endif; ?>
<?php if($file_source=='youtube'): ?>
    <!-- play from youtube file -->
   <video id="play" class="video-js vjs-big-play-centered skin-<?php echo $player_color_skin; ?> vjs-16-9" poster="<?php echo $this->live_tv_model->get_tv_poster($watch_tv->poster); ?>">
       
   </video>
    <!-- youtube -->
    <script src="<?php echo base_url(); ?>assets/player/plugins/videojs-youtube/Youtube.min.js"></script>
   
    <script>
        videojs("play", { 
			            "controls": true, 
			            "autoplay": true, 
			            "preload": "auto" ,
			            "width": 640,
			            "height": 265,
			             "techOrder":  ["youtube"],
			             "sources": [{ "type": "video/youtube", "src": "<?php echo $file_url; ?>"}],
         		});
    </script>                                    
<?php endif; ?>
<?php if($file_source=='embed'): ?>
    <!-- play from embed url  -->
    <style type="text/css">
        .video-embed-container {
            position: relative;
            padding-bottom: 56.25%;
            padding-top: 30px; height: 0; overflow: hidden;
            }
            .video-embed-container iframe,
            .video-embed-container object,
            .video-embed-container embed {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
            }
    </style>
   <div class="video-embed-container">
        <iframe class="responsive-embed-item" src="<?php echo $file_url; ?>" frameborder="0" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe>
    </div>
<?php endif; ?>
    <div class="media row channel-title">
        <div class="media-left col-md-2 col-sm-12 col-xs-6">
            <img src="<?php echo $this->live_tv_model->get_tv_thumbnail($watch_tv->thumbnail); ?>" class="media-object">
        </div>
        <div class="col-md-6 col-sm-12 hidden-xs">
            <h5 class="media-heading"><?php echo $watch_tv->tv_name; ?></h5>
            <div class="media-content">
                <p class="live"><?php echo trans("watching_live_on").' '.$site_name; ?></p>
            </div>
        </div>
        <div class="media-right col-md-4 col-sm-12 col-xs-6">
            <div class="btn-group" style="float: right;">
                <a href="<?php echo base_url('live-tv/').$watch_tv->slug.'.html';?>" class="btn btn-sm btn-default"><?php echo $watch_tv->stream_label;?></a>
                <?php
                if($this->live_tv_model->get_stream_url($watch_tv->live_tv_id,'opt1') !=''):
                ?>
                <a href="<?php echo base_url('live-tv/').$this->live_tv_model->get_slug_by_live_tv_id($watch_tv->live_tv_id).'.html?key='.$this->live_tv_model->get_stream_key($watch_tv->live_tv_id,'opt1');?>" class="btn btn-sm btn-default"><?php echo $this->live_tv_model->get_stream_label($watch_tv->live_tv_id,'opt1');?></a>
                <?php endif; ?>
                <?php
                if($this->live_tv_model->get_stream_url($watch_tv->live_tv_id,'opt2') !=''):
                ?>
                <a href="<?php echo base_url('live-tv/').$this->live_tv_model->get_slug_by_live_tv_id($watch_tv->live_tv_id).'.html?key='.$this->live_tv_model->get_stream_key($watch_tv->live_tv_id,'opt2');?>" class="btn btn-sm btn-default"><?php echo $this->live_tv_model->get_stream_label($watch_tv->live_tv_id,'opt2');?></a>
                <?php endif; ?>
            </div>
        </div>
    </div>
<style type="text/css"> .media:first-child { margin-top: 20px; } .channel-title .media { padding: 10px 0; } .media-left{ padding-right: 10px; } .channel-title .media-heading { margin-top: 10px; margin-bottom: 10px; font-size: 18px; padding-left: 16px; color: #999; } .channel-title .media-content .live { font-size: 15px; line-height: 1.3; vertical-align: middle; position: relative; display: inline; padding-left: 10px; color: #777; } .channel-title .media-content .live:before { content: "\00B7"; color: red; font-size: 60px; vertical-align: middle; position: relative; display: inline; line-height: 1; padding-right: 10px; } .media-right { display: table-cell; vertical-align: top; min-width: 30%; width: 200px; max-width: 50%; float: right; } </style>
@welcome
Copy link

welcome bot commented Nov 12, 2021

👋 Thanks for opening your first issue here! 👋

If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.

@video-archivist-bot
Copy link

Hey! We've detected some video files in a comment on this issue. If you'd like to permanently archive these videos and tie them to this project, a maintainer of the project can reply to this issue with the following commands:

@mister-ben
Copy link
Contributor

No type is given. For the first example, the type is inferred from the .m3u8 file extension, but since the file ext of the second one is .php that doesn't work.

sources: [
    { src: 'http://65.2.4.240/jioo.php?c=Music_India&q=1200&e=junk.m3u8', type: ''}
],

@video-archivist-bot
Copy link

Hey! We've detected some video files in a comment on this issue. If you'd like to permanently archive these videos and tie them to this project, a maintainer of the project can reply to this issue with the following commands:

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants